Home
last modified time | relevance | path

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

/aosp12/system/vold/
H A DKeyStorage.cpp60 static constexpr size_t GCM_MAC_BYTES = 16; variable
146 .GcmModeMinMacLen(GCM_MAC_BYTES * 8) in generateKeyStorageKey()
178 .GcmModeMacLen(GCM_MAC_BYTES * 8) in beginParams()
399 if (!checkSize("mac", mac.size(), GCM_MAC_BYTES)) return false; in encryptWithKeymasterKey()
488 ciphertext->resize(GCM_NONCE_BYTES + plaintext.size() + GCM_MAC_BYTES); in encryptWithoutKeymaster()
511 if (1 != EVP_CIPHER_CTX_ctrl(ctx.get(), EVP_CTRL_GCM_GET_TAG, GCM_MAC_BYTES, in encryptWithoutKeymaster()
522 if (ciphertext.size() < GCM_NONCE_BYTES + GCM_MAC_BYTES) { in decryptWithoutKeymaster()
541 *plaintext = KeyBuffer(ciphertext.size() - GCM_NONCE_BYTES - GCM_MAC_BYTES); in decryptWithoutKeymaster()
553 if (1 != EVP_CIPHER_CTX_ctrl(ctx.get(), EVP_CTRL_GCM_SET_TAG, GCM_MAC_BYTES, in decryptWithoutKeymaster()