Searched refs:peek_write (Results 1 – 8 of 8) sorted by relevance
/system/keymaster/key_blob_utils/ |
D | auth_encrypted_key_blob.cpp | 49 random.GenerateRandom(nonce.peek_write(), size); in generate_nonce() 64 uint8_t* buf = info.peek_write(); in BuildAesGcmInfo() 65 const uint8_t* end = info.peek_write() + info.available_write(); in BuildAesGcmInfo() 70 if (!buf || buf != end || !info.advance_write(buf - info.peek_write())) { in BuildAesGcmInfo() 88 if (!HKDF_extract(prk.peek_write(), &out_len, EVP_sha256(), master_key.key_material, in DeriveAesGcmKeyEncryptionKey() 103 if (!HKDF_expand(keyEncryptionKey.peek_write(), keyEncryptionKey.available_write(), // in DeriveAesGcmKeyEncryptionKey() 149 retval.tag.peek_write()))) { in AesGcmEncryptKey()
|
D | ocb_utils.cpp | 134 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 | 349 bytes_encrypted = RSA_private_encrypt(key_len, to_encrypt, output->peek_write(), rsa.get(), in SignUndigested() 361 output->peek_write(), rsa.get(), RSA_PKCS1_PADDING); in SignUndigested() 380 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0) in SignDigested() 563 if (EVP_PKEY_encrypt(ctx.get(), output->peek_write(), &outlen, to_encrypt, to_encrypt_len) <= 0) in Finish() 606 if (EVP_PKEY_decrypt(ctx.get(), output->peek_write(), &outlen, to_decrypt, to_decrypt_len) <= 0) in Finish()
|
D | ecdsa_operation.cpp | 151 output->peek_write(), &siglen_tmp, ecdsa.get())) in Finish() 158 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0) in Finish()
|
D | ecdh_operation.cpp | 78 if (EVP_PKEY_derive(ctx.get(), output->peek_write(), &sharedSecretLen) != 1) { in Finish()
|
D | block_cipher_operation.cpp | 199 if (!EVP_CipherFinal_ex(&ctx_, output->peek_write(), &output_written)) { in Finish() 375 if (!EVP_CipherUpdate(&ctx_, output->peek_write(), &output_written, input, input_length)) { in InternalUpdate() 435 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 | 252 uint8_t* peek_write() { return buffer_.get() + write_position_; } in peek_write() function
|