Home
last modified time | relevance | path

Searched refs:writable_data (Results 1 – 12 of 12) sorted by relevance

/system/keymaster/key_blob_utils/
Dauth_encrypted_key_blob.cpp144 EVP_EncryptUpdate(ctx.get(), retval.ciphertext.writable_data(), &ciphertext_len, in AesGcmEncryptKey()
146 EVP_EncryptFinal_ex(ctx.get(), retval.ciphertext.writable_data() /* not written to */, in AesGcmEncryptKey()
182 EVP_DecryptUpdate(ctx.get(), plaintext.writable_data(), &plaintext_len, in AesGcmDecryptKey()
191 if (!EVP_DecryptFinal_ex(ctx.get(), plaintext.writable_data() /* not written to */, in AesGcmDecryptKey()
223 uint8_t* buf = retval.writable_data(); in SerializeAuthEncryptedBlob()
Docb_utils.cpp133 0 /* additional data length */, ciphertext->writable_data(), in OcbEncryptKey()
165 0 /* additional data length */, plaintext->writable_data(), in OcbDecryptKey()
Dintegrity_assured_key_blob.cpp88 uint8_t* p = key_blob->writable_data(); in SerializeIntegrityAssuredBlob()
Dsoftware_keyblobs.cpp228 memcpy(key_material->writable_data(), key_start, privateLen); in ParseOldSoftkeymasterBlob()
/system/keymaster/km_openssl/
Dwrapped_key.cpp71 uint8_t* p = der_wrapped_key->writable_data(); in build_wrapped_key()
124 uint8_t* p = wrapped_key_description->writable_data(); in parse_wrapped_key()
Dsymmetric_key.cpp54 error = random_source_.GenerateRandom(key_material.writable_data(), key_data_size); in GenerateKey()
Dopenssl_utils.cpp116 uint8_t* tmp = key_blob->writable_data(); in EvpKeyToKeyMaterial()
Dsoft_keymaster_enforcement.cpp115 if (!HMAC_Final(ctx.get(), output->writable_data(), &digest_len)) { in hmacSha256()
Dblock_cipher_operation.cpp446 if (RAND_bytes(iv_.writable_data(), iv_.data_length) != 1) return TranslateLastOpenSslError(); in GenerateIv()
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h203 uint8_t* writable_data() { return const_cast<uint8_t*>(accessBlobData(this)); } in writable_data() function
/system/keymaster/tests/
Dkey_blob_test.cpp147 serialized_blob_.writable_data()[1 /* version */ + 4 /* nonce len */ + 12 /* nonce */ + 3]++; in TEST_F()
/system/keymaster/contexts/
Dpure_soft_keymaster_context.cpp465 key_material.writable_data()[i] ^= masking_key.key_material[i]; in UnwrapKey()