Searched refs:peek_write (Results 1 – 8 of 8) sorted by relevance
/system/keymaster/key_blob_utils/ |
D | auth_encrypted_key_blob.cpp | 69 if (!copy_from_buf(buf_ptr, end, nonce->peek_write(), OCB_NONCE_LENGTH) || in DeserializeUnversionedBlob() 71 !copy_from_buf(buf_ptr, end, tag->peek_write(), OCB_TAG_LENGTH) || in DeserializeUnversionedBlob()
|
D | ocb_utils.cpp | 142 tag->peek_write(), 1 /* final */); in OcbEncryptKey()
|
/system/keymaster/km_openssl/ |
D | ecies_kem.cpp | 119 if (!kdf_->GenerateKey(nullptr /* info */, 0 /* info length */, output_clear_key->peek_write(), in Encrypt() 175 if (!kdf_->GenerateKey(nullptr /* info */, 0 /* info_len */, output_key->peek_write(), in Decrypt()
|
D | rsa_operation.cpp | 348 bytes_encrypted = RSA_private_encrypt(key_len, to_encrypt, output->peek_write(), rsa.get(), in SignUndigested() 360 output->peek_write(), rsa.get(), RSA_PKCS1_PADDING); in SignUndigested() 382 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0) in SignDigested() 569 if (EVP_PKEY_encrypt(ctx.get(), output->peek_write(), &outlen, to_encrypt, to_encrypt_len) <= 0) in Finish() 622 if (EVP_PKEY_decrypt(ctx.get(), output->peek_write(), &outlen, to_decrypt, to_decrypt_len) <= 0) in Finish()
|
D | ecdsa_operation.cpp | 158 output->peek_write(), &siglen_tmp, ecdsa.get())) in Finish() 166 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0) in Finish()
|
D | block_cipher_operation.cpp | 198 if (!EVP_CipherFinal_ex(&ctx_, output->peek_write(), &output_written)) { in Finish() 372 if (!EVP_CipherUpdate(&ctx_, output->peek_write(), &output_written, input, input_length)) { in InternalUpdate() 432 if (!EVP_CIPHER_CTX_ctrl(&ctx_, EVP_CTRL_GCM_GET_TAG, tag_length_, output->peek_write())) in Finish()
|
/system/keymaster/include/keymaster/ |
D | serializable.h | 241 uint8_t* peek_write() { return buffer_.get() + write_position_; } in peek_write() function
|
/system/keymaster/tests/ |
D | key_blob_test.cpp | 61 EXPECT_EQ(1, RAND_bytes(nonce_.peek_write(), OCB_NONCE_LENGTH)); in KeyBlobTest()
|