Home
last modified time | relevance | path

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

/system/security/ondevice-signing/
DCertUtils.cpp59 bssl::UniquePtr<RSA> rsaPubkey(RSA_new()); in getRsa() local
60 rsaPubkey->n = BN_new(); in getRsa()
61 rsaPubkey->e = BN_new(); in getRsa()
63 BN_bin2bn(publicKey.data(), publicKey.size(), rsaPubkey->n); in getRsa()
64 BN_set_word(rsaPubkey->e, kRsaKeyExponent); in getRsa()
66 return rsaPubkey; in getRsa()
101 auto rsaPubkey = getRsa(publicKey); in createSelfSignedCertificate() local
104 EVP_PKEY_assign_RSA(public_key, rsaPubkey->release()); in createSelfSignedCertificate()