Home
last modified time | relevance | path

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

/aosp12/system/keymaster/km_openssl/
H A Drsa_operation.cpp340 const uint8_t* to_encrypt = data_.peek_read(); in SignUndigested() local
347 to_encrypt = zero_padded.get(); in SignUndigested()
349 bytes_encrypted = RSA_private_encrypt(key_len, to_encrypt, output->peek_write(), rsa.get(), in SignUndigested()
553 const uint8_t* to_encrypt = data_.peek_read(); in Finish() local
559 to_encrypt = zero_padded.get(); in Finish()
563 if (EVP_PKEY_encrypt(ctx.get(), output->peek_write(), &outlen, to_encrypt, to_encrypt_len) <= 0) in Finish()
/aosp12/system/security/keystore2/src/
H A Dsuper_key.rs183 fn new(key: &[u8], to_encrypt: &Arc<SuperKey>) -> Result<Self> { in new()
184 let (mut ciphertext, nonce, mut tag) = aes_gcm_encrypt(&to_encrypt.key, key)?; in new()
186 Ok(LockedKey { algorithm: to_encrypt.algorithm, id: to_encrypt.id, nonce, ciphertext }) in new()
/aosp12/hardware/interfaces/security/keymint/aidl/vts/functional/
H A DKeyMintAidlTestBase.cpp869 const uint8_t* to_encrypt = reinterpret_cast<const uint8_t*>(message.data()); in LocalRsaEncryptMessage() local
877 to_encrypt = reinterpret_cast<const uint8_t*>(zero_padded_message->data()); in LocalRsaEncryptMessage()
883 if (EVP_PKEY_encrypt(ctx.get(), reinterpret_cast<uint8_t*>(output.data()), &outlen, to_encrypt, in LocalRsaEncryptMessage()