Lines Matching refs:bn
25 BIGNUM* bn = BN_bin2bn(bytes, length, NULL); in BytesToHexString() local
26 char* hex = BN_bn2hex(bn); in BytesToHexString()
28 BN_free(bn); in BytesToHexString()
36 BIGNUM* bn = NULL; in HexStringToBytes() local
37 BN_hex2bn(&bn, hex_string.c_str()); in HexStringToBytes()
38 int length = BN_num_bytes(bn); in HexStringToBytes()
40 BN_bn2bin(bn, &bytes[0]); in HexStringToBytes()
41 BN_free(bn); in HexStringToBytes()
48 BIGNUM* bn = BN_new(); in IntToBigEndianBytes() local
49 BN_add_word(bn, value); in IntToBigEndianBytes()
58 int length = BN_num_bytes(bn); in IntToBigEndianBytes()
59 BN_bn2bin(bn, &bytes[4 - length]); in IntToBigEndianBytes()
60 BN_free(bn); in IntToBigEndianBytes()
66 BIGNUM* bn = BN_bin2bn(bytes, 4, NULL); in BigEndianBytesToInt() local
67 BN_ULONG value = bn->d[0]; in BigEndianBytesToInt()
68 BN_free(bn); in BigEndianBytesToInt()