Home
last modified time | relevance | path

Searched refs:key_buffer (Results 1 – 5 of 5) 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/tests/
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.h165 uint32_t ratelimit, uint8_t* key_buffer,
170 size_t key_blob_size, uint8_t* key_buffer,
DKeymaster.cpp289 uint32_t ratelimit, uint8_t* key_buffer, in keymaster_create_key_for_cryptfs_scrypt() argument
301 if (!write_string_to_buf(key, key_buffer, key_buffer_size, key_out_size)) return -1; in keymaster_create_key_for_cryptfs_scrypt()
307 size_t key_blob_size, uint8_t* key_buffer, in keymaster_upgrade_key_for_cryptfs_scrypt() argument
321 if (!write_string_to_buf(new_key, key_buffer, key_buffer_size, key_out_size)) return -1; in keymaster_upgrade_key_for_cryptfs_scrypt()