bits2ints

Function bits2ints 

Source
pub fn bits2ints(num: &[u8], qlen: usize) -> Result<BigNum, ErrorStack>
Expand description

Converts a sequence of blen bits to a non-negative integer that is less than 2^qlen as specified in Section 2.3.2 of [RFC6979]

§Arguments

  • num: an octet slice representing the number to be converted
  • qlen: the length of the output BigNum

§Returns:

  • a BigNum representing the conversion.