Searched refs:writable_data (Results 1 – 12 of 12) sorted by relevance
/system/keymaster/key_blob_utils/ |
D | auth_encrypted_key_blob.cpp | 144 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()
|
D | ocb_utils.cpp | 133 0 /* additional data length */, ciphertext->writable_data(), in OcbEncryptKey() 165 0 /* additional data length */, plaintext->writable_data(), in OcbDecryptKey()
|
D | integrity_assured_key_blob.cpp | 88 uint8_t* p = key_blob->writable_data(); in SerializeIntegrityAssuredBlob()
|
D | software_keyblobs.cpp | 228 memcpy(key_material->writable_data(), key_start, privateLen); in ParseOldSoftkeymasterBlob()
|
/system/keymaster/km_openssl/ |
D | wrapped_key.cpp | 71 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()
|
D | symmetric_key.cpp | 54 error = random_source_.GenerateRandom(key_material.writable_data(), key_data_size); in GenerateKey()
|
D | openssl_utils.cpp | 116 uint8_t* tmp = key_blob->writable_data(); in EvpKeyToKeyMaterial()
|
D | soft_keymaster_enforcement.cpp | 115 if (!HMAC_Final(ctx.get(), output->writable_data(), &digest_len)) { in hmacSha256()
|
D | block_cipher_operation.cpp | 446 if (RAND_bytes(iv_.writable_data(), iv_.data_length) != 1) return TranslateLastOpenSslError(); in GenerateIv()
|
/system/keymaster/include/keymaster/ |
D | android_keymaster_utils.h | 203 uint8_t* writable_data() { return const_cast<uint8_t*>(accessBlobData(this)); } in writable_data() function
|
/system/keymaster/tests/ |
D | key_blob_test.cpp | 147 serialized_blob_.writable_data()[1 /* version */ + 4 /* nonce len */ + 12 /* nonce */ + 3]++; in TEST_F()
|
/system/keymaster/contexts/ |
D | pure_soft_keymaster_context.cpp | 465 key_material.writable_data()[i] ^= masking_key.key_material[i]; in UnwrapKey()
|