Searched refs:OCB_NONCE_LENGTH (Results 1 – 5 of 5) sorted by relevance
/system/keymaster/ |
D | auth_encrypted_key_blob.cpp | 66 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()
|
D | ocb_utils.cpp | 109 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()
|
D | ocb_utils.h | 31 static const int OCB_NONCE_LENGTH = 12; variable
|
D | key_blob_test.cpp | 60 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()
|
D | soft_keymaster_context.cpp | 525 if (nonce.available_read() != OCB_NONCE_LENGTH || tag.available_read() != OCB_TAG_LENGTH) in ParseOcbAuthEncryptedBlob()
|