Home
last modified time | relevance | path

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

/system/keymaster/
Docb_utils.cpp85 UniquePtr<uint8_t[]> derived_key(new (std::nothrow) uint8_t[AES_BLOCK_SIZE]); in InitializeKeyWrappingContext() local
86 if (!derived_key.get()) in InitializeKeyWrappingContext()
88 Eraser derived_key_eraser(derived_key.get(), AES_BLOCK_SIZE); in InitializeKeyWrappingContext()
90 if (!ctx->get() || !hash_buf.get() || !derived_key.get()) in InitializeKeyWrappingContext()
106 AES_encrypt(hash_buf.get(), derived_key.get(), &aes_key); in InitializeKeyWrappingContext()
109 if (ae_init(ctx->get(), derived_key.get(), AES_BLOCK_SIZE /* key length */, OCB_NONCE_LENGTH, in InitializeKeyWrappingContext()