Home
last modified time | relevance | path

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

/system/keymaster/key_blob_utils/
Docb_utils.cpp139 int ae_err = ae_encrypt(ctx.get(), nonce.peek_read(), plaintext.key_material, in OcbEncryptKey() local
143 if (ae_err < 0) { in OcbEncryptKey()
144 LOG_E("Error %d while encrypting key", ae_err); in OcbEncryptKey()
149 assert(ae_err == static_cast<int>(plaintext.key_material_size)); in OcbEncryptKey()
175 int ae_err = ae_decrypt(ctx.get(), nonce.peek_read(), ciphertext.key_material, in OcbDecryptKey() local
179 if (ae_err == AE_INVALID) { in OcbDecryptKey()
185 } else if (ae_err < 0) { in OcbDecryptKey()
186 LOG_E("Failed to decrypt key, error: %d", ae_err); in OcbDecryptKey()
189 assert(ae_err == static_cast<int>(ciphertext.key_material_size)); in OcbDecryptKey()