crypto_bignum_deinit - Free bignum @n: Bignum from crypto_bignum_init() or crypto_bignum_init_set() @clear: Whether to clear the value from memory
crypto_bignum_to_bin - Set binary buffer to unsigned bignum @a: Bignum @buf: Buffer for the binary number @len: Length of @buf in octets @padlen: Length in octets to pad the result to or 0 to indicate no padding Returns: Number of octets written on success, -1 on failure
crypto_bignum_mulmod - d = a * b (mod c) @a: Bignum @b: Bignum @c: Bignum @d: Bignum; used to store the result of (a * b) % c Returns: 0 on success, -1 on failure
crypto_bignum_sub - c = a - b @a: Bignum @b: Bignum @c: Bignum; used to store the result of a - b Returns: 0 on success, -1 on failure
crypto_bignum_exptmod - Modular exponentiation: d = a^b (mod c) @a: Bignum; base @b: Bignum; exponent @c: Bignum; modulus @d: Bignum; used to store the result of a^b (mod c) Returns: 0 on success, -1 on failure
crypto_bignum_is_one - Is the given bignum one @a: Bignum Returns: 1 if @a is one or 0 if not
crypto_bignum_is_zero - Is the given bignum zero @a: Bignum Returns: 1 if @a is zero or 0 if not
crypto_bignum_add - c = a + b @a: Bignum @b: Bignum @c: Bignum; used to store the result of a + b Returns: 0 on success, -1 on failure
crypto_bignum_mod - c = a % b @a: Bignum @b: Bignum @c: Bignum; used to store the result of a % b Returns: 0 on success, -1 on failure
crypto_bignum_addmod - d = a + b (mod c) @a: Bignum @b: Bignum @c: Bignum @d: Bignum; used to store the result of (a + b) % c Returns: 0 on success, -1 on failure
crypto_bignum_mul - res = b * p @e: EC context from crypto_ec_init() @p: EC point @b: Bignum @res: EC point; used to store the result of b * p Returns: 0 on success, -1 on failure
crypto_ec_point_compute_y_sqr - Compute y^2 = x^3 + ax + b @e: EC context from crypto_ec_init() @x: x coordinate Returns: y^2 on success, %NULL failure
crypto_bignum_rand - Create a random number in range of modulus @r: Bignum; set to a random value @m: Bignum; modulus Returns: 0 on success, -1 on failure
crypto_bignum_inverse - Inverse a bignum so that a * c = 1 (mod b) @a: Bignum @b: Bignum @c: Bignum; used to store the result Returns: 0 on success, -1 on failure
crypto_bignum_rshift - r = a >> n @a: Bignum @n: Number of bits @r: Bignum; used to store the result of a >> n Returns: 0 on success, -1 on failure
crypto_bignum_legendre - Compute the Legendre symbol (a/p) @a: Bignum @p: Bignum Returns: Legendre symbol -1,0,1 on success; -2 on calculation failure
crypto_bignum_div - c = a / b @a: Bignum @b: Bignum @c: Bignum; used to store the result of a / b Returns: 0 on success, -1 on failure
crypto_bignum_sqrmod - c = a^2 (mod b) @a: Bignum @b: Bignum @c: Bignum; used to store the result of a^2 % b Returns: 0 on success, -1 on failure
crypto_ec_get_affine_coordinates : get affine coordinate of ec curve @e: ec curve @pt: point @x: x coordinate @y: y coordinate Return : 0 if success
crypto_bignum_is_odd - Is the given bignum odd @a: Bignum Returns: 1 if @a is odd or 0 if not
crypto_ec_point_solve_y_coord - Solve y coordinate for an x coordinate @e: EC context from crypto_ec_init() @p: EC point to use for the returning the result @x: x coordinate @y_bit: y-bit (0 or 1) for selecting the y value to use Returns: 0 on success, -1 on failure
crypto_ecdsa_get_sign: get crypto ecdsa signed hash @hash: signed hash @r: ecdsa r @s: ecdsa s @csign: csign @hash_len: length of hash Return: 0 if success else negative value
crypto_get_order: free crypto key Return : None
crypto_bignum_bits - Get size of a bignum in bits @a: Bignum Returns: Number of bits in the bignum
crypto_bignum_to_string: get big number in ascii format @a: big number @buf: buffer in which number will written to @buflen: buffer length @padlen: padding length Return : 0 if success
crypto_bignum_sqrtmod - returns sqrt(a) (mod b) @a: Bignum @b: Bignum @c: Bignum; used to store the result Returns: 0 on success, -1 on failure