Searched refs:newKey (Results 1 - 1 of 1) sorted by relevance
/developtools/hdc/src/common/ |
H A D | auth.cpp | 336 RSA *newKey = RSA_new(); in RSAPublicKey2RSA() local 337 if (!newKey) { in RSAPublicKey2RSA() 350 newKey->n = BN_bin2bn(modulusBuffer, sizeof(modulusBuffer), nullptr); in RSAPublicKey2RSA() 351 newKey->e = BN_new(); in RSAPublicKey2RSA() 352 if (!newKey->e || !BN_set_word(newKey->e, keyStruct->exponent) || !newKey->n) { in RSAPublicKey2RSA() 358 RSA_set0_key(newKey, BN_bin2bn(modulusBuffer, sizeof(modulusBuffer), nullptr), BN_new(), BN_new()); in RSAPublicKey2RSA() 360 newKey->n = BN_bin2bn(modulusBuffer, sizeof(modulusBuffer), nullptr); in RSAPublicKey2RSA() 361 newKey in RSAPublicKey2RSA() [all...] |
Completed in 1 milliseconds