Lines Matching refs:bn
774 auto bn = BIGNUM_Ptr(BN_bin2bn(key.data(), key.size(), nullptr)); in signEcDsaDigest() local
775 if (bn.get() == nullptr) { in signEcDsaDigest()
781 if (EC_KEY_set_private_key(ec_key.get(), bn.get()) != 1) { in signEcDsaDigest()
1044 auto bn = BIGNUM_Ptr(BN_bin2bn(privateKey.data(), privateKey.size(), nullptr)); in ecPrivateKeyToKeyPair() local
1045 if (bn.get() == nullptr) { in ecPrivateKeyToKeyPair()
1051 if (EC_KEY_set_private_key(ecKey.get(), bn.get()) != 1) { in ecPrivateKeyToKeyPair()
1224 auto bn = BIGNUM_Ptr(BN_bin2bn(signingKey.data(), signingKey.size(), nullptr)); in ecPublicKeyGenerateCertificate() local
1225 if (bn.get() == nullptr) { in ecPublicKeyGenerateCertificate()
1230 if (EC_KEY_set_private_key(privEcKey.get(), bn.get()) != 1) { in ecPublicKeyGenerateCertificate()
1381 auto bn = BIGNUM_Ptr(BN_bin2bn(privateKey.data(), privateKey.size(), nullptr)); in ecdh() local
1382 if (bn.get() == nullptr) { in ecdh()
1387 if (EC_KEY_set_private_key(privEcKey.get(), bn.get()) != 1) { in ecdh()