Searched defs:nonce (Results 1 - 4 of 4) sorted by relevance
/system/keymaster/ |
H A D | google_softkeymaster.h | 45 void GenerateNonce(uint8_t* nonce, size_t length) { argument 47 nonce[i] = 0;
|
H A D | key_blob.cpp | 48 const keymaster_key_blob_t& master_key, const uint8_t nonce[NONCE_LENGTH]) 83 memcpy(nonce_.get(), nonce, NONCE_LENGTH); 122 buf = append_to_buf(buf, end, nonce(), NONCE_LENGTH); 46 KeyBlob(const AuthorizationSet& enforced, const AuthorizationSet& unenforced, const AuthorizationSet& hidden, const keymaster_key_blob_t& key, const keymaster_key_blob_t& master_key, const uint8_t nonce[NONCE_LENGTH]) argument
|
H A D | ocb.c | 747 static block gen_offset_from_nonce(ae_ctx* ctx, const void* nonce) { argument 760 /* Replace cached nonce Top if needed */ 772 tmp.u32[1] = ((uint32_t*)nonce)[0]; 773 tmp.u32[2] = ((uint32_t*)nonce)[1]; 774 tmp.u32[3] = ((uint32_t*)nonce)[2]; 775 idx = (unsigned)(tmp.u8[15] & 0x3f); /* Get low 6 bits of nonce */ 776 tmp.u8[15] = tmp.u8[15] & 0xc0; /* Zero low 6 bits of nonce */ 918 int ae_encrypt(ae_ctx* ctx, const void* nonce, const void* pt, int pt_len, const void* ad, argument 930 /* Non-null nonce means start of new message, init per-message values */ 931 if (nonce) { 1129 ae_decrypt(ae_ctx* ctx, const void* nonce, const void* ct, int ct_len, const void* ad, int ad_len, void* pt, const void* tag, int final) argument [all...] |
/system/keymaster/include/keymaster/ |
H A D | key_blob.h | 46 * encryption with \p nonce. It is critically important that nonces NEVER be reused. The most 59 const keymaster_key_blob_t& master_key, const uint8_t nonce[NONCE_LENGTH]); 109 inline const uint8_t* nonce() const { return nonce_.get(); } function in class:keymaster::KeyBlob
|
Completed in 127 milliseconds