Home
last modified time | relevance | path

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

/system/core/libcrypto_utils/include/crypto_utils/
Dandroid_pubkey.h47 bool android_pubkey_decode(const uint8_t* key_buffer, size_t size, RSA** key);
55 bool android_pubkey_encode(const RSA* key, uint8_t* key_buffer, size_t size);
/system/core/libcrypto_utils/
Dandroid_pubkey.c64 bool android_pubkey_decode(const uint8_t* key_buffer, size_t size, RSA** key) { in android_pubkey_decode() argument
65 const RSAPublicKey* key_struct = (RSAPublicKey*)key_buffer; in android_pubkey_decode()
122 bool android_pubkey_encode(const RSA* key, uint8_t* key_buffer, size_t size) { in android_pubkey_encode() argument
123 RSAPublicKey* key_struct = (RSAPublicKey*)key_buffer; in android_pubkey_encode()
/system/keymaster/
Dhmac_test.cpp67 Buffer key_buffer(key.data(), key.size()); in TEST() local
68 ASSERT_TRUE(hmac.Init(key_buffer)); in TEST()
/system/vold/
DKeymaster.cpp212 uint8_t* key_buffer, in keymaster_create_key_for_cryptfs_scrypt() argument
222 if (!key_buffer || !key_out_size) { in keymaster_create_key_for_cryptfs_scrypt()
254 std::copy(key.data(), key.data() + key.size(), key_buffer); in keymaster_create_key_for_cryptfs_scrypt()
DKeymaster.h133 uint8_t* key_buffer,
/system/tpm/attestation/common/
Dcrypto_utility_impl.cc324 unsigned char* key_buffer = StringAsOpenSSLBuffer(&mutable_key); in AesEncrypt() local
335 if (!EVP_EncryptInit_ex(&encryption_context, cipher, nullptr, key_buffer, in AesEncrypt()
375 unsigned char* key_buffer = StringAsOpenSSLBuffer(&mutable_key); in AesDecrypt() local
385 if (!EVP_DecryptInit_ex(&decryption_context, cipher, nullptr, key_buffer, in AesDecrypt()