Searched refs:to_encrypt (Results 1 – 3 of 3) sorted by relevance
/aosp12/system/keymaster/km_openssl/ |
H A D | rsa_operation.cpp | 340 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 D | super_key.rs | 183 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 D | KeyMintAidlTestBase.cpp | 869 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()
|