Home
last modified time | relevance | path

Searched refs:derived_key (Results 1 – 2 of 2) sorted by relevance

/system/keymaster/key_blob_utils/
Docb_utils.cpp80 UniquePtr<uint8_t[]> derived_key(new (std::nothrow) uint8_t[AES_BLOCK_SIZE]); in InitializeKeyWrappingContext() local
81 if (!derived_key.get()) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in InitializeKeyWrappingContext()
82 Eraser derived_key_eraser(derived_key.get(), AES_BLOCK_SIZE); in InitializeKeyWrappingContext()
84 if (!ctx->get() || !hash_buf.get() || !derived_key.get()) in InitializeKeyWrappingContext()
100 AES_encrypt(hash_buf.get(), derived_key.get(), &aes_key); in InitializeKeyWrappingContext()
103 if (ae_init(ctx->get(), derived_key.get(), AES_BLOCK_SIZE /* key length */, OCB_NONCE_LENGTH, in InitializeKeyWrappingContext()
/system/security/keystore2/src/
Dsuper_key.rs665 let derived_key = pw in encrypt_with_password() localVariable
671 let (encrypted_key, iv, tag) = aes_gcm_encrypt(super_key, &derived_key) in encrypt_with_password()