• Home
  • Raw
  • Download

Lines Matching refs:rsa

164     unique_ptr<RSA, RSA_Delete> rsa(RSA_new_method(engine_));  in BlobToRsaKey()  local
165 if (!rsa) in BlobToRsaKey()
169 if (!blob_copy->key_material || !RSA_set_ex_data(rsa.get(), rsa_index_, blob_copy)) in BlobToRsaKey()
179 rsa->n = BN_dup(public_rsa->n); in BlobToRsaKey()
180 rsa->e = BN_dup(public_rsa->e); in BlobToRsaKey()
181 if (!rsa->n || !rsa->e) in BlobToRsaKey()
184 return rsa.release(); in BlobToRsaKey()
213 const keymaster_key_blob_t* Keymaster0Engine::RsaKeyToBlob(const RSA* rsa) const { in RsaKeyToBlob()
214 return reinterpret_cast<keymaster_key_blob_t*>(RSA_get_ex_data(rsa, rsa_index_)); in RsaKeyToBlob()
245 int Keymaster0Engine::rsa_private_transform(RSA* rsa, uint8_t* out, const uint8_t* in, size_t len) { in rsa_private_transform() argument
246 ALOGV("rsa_private_transform(%p, %p, %p, %u)", rsa, out, in, (unsigned)len); in rsa_private_transform()
249 return instance_->RsaPrivateTransform(rsa, out, in, len); in rsa_private_transform()
293 static bool data_too_large_for_public_modulus(const uint8_t* data, size_t len, const RSA* rsa) { in data_too_large_for_public_modulus() argument
296 return input_as_bn && BN_ucmp(input_as_bn.get(), rsa->n) >= 0; in data_too_large_for_public_modulus()
299 int Keymaster0Engine::RsaPrivateTransform(RSA* rsa, uint8_t* out, const uint8_t* in, in RsaPrivateTransform() argument
301 const keymaster_key_blob_t* key_blob = RsaKeyToBlob(rsa); in RsaPrivateTransform()
311 if (data_too_large_for_public_modulus(in, len, rsa)) { in RsaPrivateTransform()
339 ALOGV("rsa=%p keystore_rsa_priv_dec successful", rsa); in RsaPrivateTransform()