Home
last modified time | relevance | path

Searched refs:BignumPointer (Results 1 – 11 of 11) sorted by relevance

/third_party/node/src/crypto/
Dcrypto_random.h50 BignumPointer prime;
51 BignumPointer rem;
52 BignumPointer add;
87 BignumPointer candidate;
Dcrypto_dh.cc145 bool DiffieHellman::Init(BignumPointer&& bn_p, int g) { in Init()
148 BignumPointer bn_g(BN_new()); in Init()
211 BignumPointer InstantiateStandardizedGroup() { in InstantiateStandardizedGroup()
212 return BignumPointer(p(nullptr)); in InstantiateStandardizedGroup()
215 typedef BignumPointer (*StandardizedGroupInstantiator)();
399 BignumPointer key(BN_bin2bn(key_buf.data(), key_buf.size(), nullptr)); in ComputeSecret()
535 params->params.prime = BignumPointer( in AdditionalConfig()
549 if (BignumPointer* prime_fixed_value = in Setup()
550 std::get_if<BignumPointer>(&params->params.prime)) { in Setup()
556 BignumPointer bn_g(BN_new()); in Setup()
Dcrypto_aes.cc182 BignumPointer GetCounter(const AESCipherConfig& params) { in GetCounter()
188 return BignumPointer(BN_bin2bn( in GetCounter()
202 return BignumPointer(BN_bin2bn(counter.data(), counter.size(), nullptr)); in GetCounter()
272 BignumPointer num_counters(BN_new()); in AES_CTR_Cipher()
276 BignumPointer current_counter = GetCounter(params); in AES_CTR_Cipher()
278 BignumPointer num_output(BN_new()); in AES_CTR_Cipher()
288 BignumPointer remaining_until_reset(BN_new()); in AES_CTR_Cipher()
Dcrypto_dh.h23 bool Init(BignumPointer&& bn_p, int g);
66 std::variant<BignumPointer, int> prime;
Dcrypto_ec.cc301 BignumPointer priv(BN_bin2bn( in SetPrivateKey()
373 bool ECDH::IsKeyValidForCurve(const BignumPointer& private_key) { in IsKeyValidForCurve()
381 BignumPointer order(BN_new()); in IsKeyValidForCurve()
774 BignumPointer x(BN_new()); in ExportJWKEcKey()
775 BignumPointer y(BN_new()); in ExportJWKEcKey()
1013 BignumPointer order(BN_new()); in GroupOrderSize()
Dcrypto_ec.h52 bool IsKeyValidForCurve(const BignumPointer& private_key);
Dcrypto_util.h68 using BignumPointer = DeleteFnPtr<BIGNUM, BN_free>; variable
276 BignumPointer ToBN() const { in ToBN()
277 return BignumPointer(BN_bin2bn(data<unsigned char>(), size(), nullptr)); in ToBN()
Dcrypto_random.cc185 BignumPointer(BN_bin2bn( in AdditionalConfig()
Dcrypto_rsa.cc51 BignumPointer bn(BN_new()); in Setup()
DREADME.md85 using BignumPointer = DeleteFnPtr<BIGNUM, BN_free>;
Dcrypto_common.cc513 BignumPointer bn(ASN1_INTEGER_to_BN(serial_number, nullptr)); in GetSerialNumber()