Home
last modified time | relevance | path

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

/system/keymaster/
Dkey_blob.cpp43 const size_t KeyBlob::NONCE_LENGTH; member in keymaster::KeyBlob
48 const keymaster_key_blob_t& master_key, const uint8_t nonce[NONCE_LENGTH]) in KeyBlob() argument
49 : error_(KM_ERROR_OK), nonce_(new uint8_t[NONCE_LENGTH]), tag_(new uint8_t[TAG_LENGTH]), in KeyBlob()
83 memcpy(nonce_.get(), nonce, NONCE_LENGTH); in KeyBlob()
90 : nonce_(new uint8_t[NONCE_LENGTH]), tag_(new uint8_t[TAG_LENGTH]), hidden_(hidden) { in KeyBlob()
104 : nonce_(new uint8_t[NONCE_LENGTH]), tag_(new uint8_t[TAG_LENGTH]) { in KeyBlob()
116 return NONCE_LENGTH + sizeof(uint32_t) + key_material_length() + TAG_LENGTH + in SerializedSize()
122 buf = append_to_buf(buf, end, nonce(), NONCE_LENGTH); in Serialize()
133 if (!copy_from_buf(buf_ptr, end, nonce_.get(), NONCE_LENGTH) || in Deserialize()
229 if (ae_init(ctx->get(), derived_key.get(), AES_BLOCK_SIZE, NONCE_LENGTH, TAG_LENGTH) == in InitializeKeyWrappingContext()
Dkey_blob_test.cpp44 const uint8_t nonce[KeyBlob::NONCE_LENGTH]{12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
106 serialized_blob[KeyBlob::NONCE_LENGTH]++; in TEST_F()
Dgoogle_keymaster.cpp320 uint8_t nonce[KeyBlob::NONCE_LENGTH]; in SerializeKey()
/system/keymaster/include/keymaster/
Dkey_blob.h40 static const size_t NONCE_LENGTH = 12;
59 const keymaster_key_blob_t& master_key, const uint8_t nonce[NONCE_LENGTH]);
86 memset_s(nonce_.get(), 0, NONCE_LENGTH); in ~KeyBlob()