Home
last modified time | relevance | path

Searched defs:nonce (Results 1 – 20 of 20) sorted by relevance

/system/keymint/common/src/crypto/
Daes.rs110 let nonce: [u8; BLOCK_SIZE] = in new() localVariable
130 let nonce: [u8; BLOCK_SIZE] = in new() localVariable
143 let nonce: [u8; GCM_NONCE_SIZE] = nonce(GCM_NONCE_SIZE, caller_nonce, rng)? in new() localVariable
Ddes.rs79 let nonce: [u8; BLOCK_SIZE] = nonce(BLOCK_SIZE, caller_nonce, rng)? in new() localVariable
/system/keymint/wire/src/
Dsharedsecret.rs17 pub nonce: Vec<u8>, field
/system/keymaster/key_blob_utils/
Dauth_encrypted_key_blob.cpp43 Buffer nonce; in generate_nonce() local
131 Buffer nonce) { in AesGcmEncryptKey()
311 auto nonce = generate_nonce(random, OCB_NONCE_LENGTH); in EncryptKey() local
326 auto nonce = generate_nonce(random, kAesGcmNonceLength); in EncryptKey() local
Docb_utils.cpp115 const KeymasterKeyBlob& plaintext, const Buffer& nonce, in OcbEncryptKey()
147 const KeymasterKeyBlob& ciphertext, const Buffer& nonce, in OcbDecryptKey()
Docb.c761 static block gen_offset_from_nonce(ae_ctx* ctx, const void* nonce) { in gen_offset_from_nonce()
938 int ae_encrypt(ae_ctx* ctx, const void* nonce, const void* pt, int pt_len, const void* ad, in ae_encrypt()
1155 int ae_decrypt(ae_ctx* ctx, const void* nonce, const void* ct, int ct_len, const void* ad, in ae_decrypt()
/system/keymaster/cppcose/
Dcppcose.cpp40 const bytevec& nonce, in aesGcmInitAndProcessAad()
457 ErrMsgOr<bytevec> createCoseEncryptCiphertext(const bytevec& key, const bytevec& nonce, in createCoseEncryptCiphertext()
472 ErrMsgOr<cppbor::Array> constructCoseEncrypt(const bytevec& key, const bytevec& nonce, in constructCoseEncrypt()
608 auto& nonce = unprotParms->asMap()->get(IV); in decryptCoseEncrypt() local
703 ErrMsgOr<bytevec> aesGcmEncrypt(const bytevec& key, const bytevec& nonce, const bytevec& aad, in aesGcmEncrypt()
729 ErrMsgOr<bytevec> aesGcmDecrypt(const bytevec& key, const bytevec& nonce, const bytevec& aad, in aesGcmDecrypt()
/system/keymint/ta/src/
Dsecret.rs12 let mut nonce = vec_try![0u8; 32]?; in get_shared_secret_params() localVariable
/system/keymaster/include/keymaster/key_blob_utils/
Dauth_encrypted_key_blob.h72 Buffer nonce; member
/system/keymint/common/src/keyblob/
Dlegacy.rs47 pub nonce: Vec<u8>, field
123 let nonce = consume_vec(&mut data)?; in deserialize() localVariable
/system/security/keystore2/tests/
Dkeystore2_client_import_keys_tests.rs422 let mut nonce = [0; 12]; in keystore2_create_wrapped_key_and_import_wrapped_key_success() localVariable
479 let mut nonce = [0; 12]; in keystore2_create_wrapped_key_with_invalid_aad_and_import_wrapped_key_fail() localVariable
Dkeystore2_client_aes_key_tests.rs454 let mut nonce = Some(vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); in keystore2_aes_key_op_fails_nonce_prohibited() localVariable
/system/security/keystore2/test_utils/
Dauthorizations.rs138 pub fn nonce(mut self, b: Vec<u8>) -> Self { in nonce() method
/system/core/trusty/utils/rpmb_dev/
Drpmb_protocol.h53 struct rpmb_nonce nonce; member
/system/vold/
DKeyStorage.cpp384 std::string nonce(nonceBlob.value().get().begin(), nonceBlob.value().get().end()); in encryptWithKeystoreKey() local
399 const std::string nonce = ciphertext.substr(0, GCM_NONCE_BYTES); in decryptWithKeystoreKey() local
/system/keymint/common/src/
Dcrypto.rs426 pub fn nonce( in nonce() function
Dtag.rs969 let nonce = get_opt_tag_value!(params, Nonce)?; in check_begin_params() localVariable
/system/keymaster/android_keymaster/
Dandroid_keymaster.cpp518 std::vector<uint8_t> nonce(kAesGcmNonceLength, 0 /* value */); in GenerateCsr() local
/system/security/keystore2/src/
Dsuper_key.rs180 nonce: Vec<u8>, field
/system/keymaster/include/keymaster/
Dandroid_keymaster_messages.h815 uint8_t nonce[32]; member