Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
Dwrapped_key.cpp72 uint8_t* p = der_wrapped_key->writable_data(); in build_wrapped_key()
125 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.cpp120 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.cpp443 if (RAND_bytes(iv_.writable_data(), iv_.data_length) != 1) return TranslateLastOpenSslError(); in GenerateIv()
/system/keymaster/key_blob_utils/
Docb_utils.cpp142 0 /* additional data length */, ciphertext->writable_data(), in OcbEncryptKey()
178 0 /* additional data length */, plaintext->writable_data(), in OcbDecryptKey()
Dauth_encrypted_key_blob.cpp42 uint8_t* buf = key_blob->writable_data(); in SerializeAuthEncryptedBlob()
Dintegrity_assured_key_blob.cpp93 uint8_t* p = key_blob->writable_data(); in SerializeIntegrityAssuredBlob()
Dsoftware_keyblobs.cpp235 memcpy(key_material->writable_data(), key_start, privateLen); in ParseOldSoftkeymasterBlob()
/system/keymaster/contexts/
Dpure_soft_keymaster_context.cpp326 key_material.writable_data()[i] ^= masking_key.key_material[i]; in UnwrapKey()
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h374 uint8_t* writable_data() { return const_cast<uint8_t*>(accessBlobData(this)); } in writable_data() function
/system/keymaster/tests/
Dkey_blob_test.cpp132 serialized_blob_.writable_data()[1 /* version */ + 4 /* nonce len */ + 12 /* nonce */ + 3]++; in TEST_F()