Home
last modified time | relevance | path

Searched refs:peek_write (Results 1 – 8 of 8) sorted by relevance

/system/keymaster/key_blob_utils/
Dauth_encrypted_key_blob.cpp69 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()
Docb_utils.cpp143 tag->peek_write(), 1 /* final */); in OcbEncryptKey()
/system/keymaster/km_openssl/
Decies_kem.cpp119 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()
Drsa_operation.cpp345 bytes_encrypted = RSA_private_encrypt(key_len, to_encrypt, output->peek_write(), rsa.get(), in SignUndigested()
357 output->peek_write(), rsa.get(), RSA_PKCS1_PADDING); in SignUndigested()
379 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0) in SignDigested()
566 if (EVP_PKEY_encrypt(ctx.get(), output->peek_write(), &outlen, to_encrypt, to_encrypt_len) <= 0) in Finish()
619 if (EVP_PKEY_decrypt(ctx.get(), output->peek_write(), &outlen, to_decrypt, to_decrypt_len) <= 0) in Finish()
Decdsa_operation.cpp156 output->peek_write(), &siglen_tmp, ecdsa.get())) in Finish()
164 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0) in Finish()
Dblock_cipher_operation.cpp198 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/
Dserializable.h241 uint8_t* peek_write() { return buffer_.get() + write_position_; } in peek_write() function
/system/keymaster/tests/
Dkey_blob_test.cpp61 EXPECT_EQ(1, RAND_bytes(nonce_.peek_write(), OCB_NONCE_LENGTH)); in KeyBlobTest()