Home
last modified time | relevance | path

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

/system/keymaster/
Dauth_encrypted_key_blob.cpp66 if (!nonce->reserve(OCB_NONCE_LENGTH) || !tag->reserve(OCB_TAG_LENGTH)) in DeserializeUnversionedBlob()
69 if (!copy_from_buf(buf_ptr, end, nonce->peek_write(), OCB_NONCE_LENGTH) || in DeserializeUnversionedBlob()
77 if (!nonce->advance_write(OCB_NONCE_LENGTH) || !tag->advance_write(OCB_TAG_LENGTH)) in DeserializeUnversionedBlob()
99 !nonce->Deserialize(buf_ptr, end) || nonce->available_read() != OCB_NONCE_LENGTH || in DeserializeAuthEncryptedBlob()
Docb_utils.cpp109 if (ae_init(ctx->get(), derived_key.get(), AES_BLOCK_SIZE /* key length */, OCB_NONCE_LENGTH, in InitializeKeyWrappingContext()
125 if (nonce.available_read() != OCB_NONCE_LENGTH) in OcbEncryptKey()
161 if (nonce.available_read() != OCB_NONCE_LENGTH || tag.available_read() != OCB_TAG_LENGTH) in OcbDecryptKey()
Docb_utils.h31 static const int OCB_NONCE_LENGTH = 12; variable
Dkey_blob_test.cpp60 nonce_.reserve(OCB_NONCE_LENGTH); in KeyBlobTest()
61 EXPECT_EQ(1, RAND_bytes(nonce_.peek_write(), OCB_NONCE_LENGTH)); in KeyBlobTest()
62 nonce_.advance_write(OCB_NONCE_LENGTH); in KeyBlobTest()
Dsoft_keymaster_context.cpp525 if (nonce.available_read() != OCB_NONCE_LENGTH || tag.available_read() != OCB_TAG_LENGTH) in ParseOcbAuthEncryptedBlob()