/system/keymaster/ |
auth_encrypted_key_blob.cpp | 69 if (!copy_from_buf(buf_ptr, end, nonce->peek_write(), OCB_NONCE_LENGTH) || 71 !copy_from_buf(buf_ptr, end, tag->peek_write(), OCB_TAG_LENGTH) ||
|
ecies_kem.cpp | 119 if (!kdf_->GenerateKey(nullptr /* info */, 0 /* info length */, output_clear_key->peek_write(), 175 if (!kdf_->GenerateKey(nullptr /* info */, 0 /* info_len */, output_key->peek_write(),
|
ecdsa_operation.cpp | 158 output->peek_write(), &siglen_tmp, ecdsa.get())) 166 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0)
|
rsa_operation.cpp | 344 bytes_encrypted = RSA_private_encrypt(key_len, to_encrypt, output->peek_write(), rsa.get(), 356 output->peek_write(), rsa.get(), RSA_PKCS1_PADDING); 378 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0) 565 if (EVP_PKEY_encrypt(ctx.get(), output->peek_write(), &outlen, to_encrypt, to_encrypt_len) <= 0) 618 if (EVP_PKEY_decrypt(ctx.get(), output->peek_write(), &outlen, to_decrypt, to_decrypt_len) <= 0)
|
aes_operation.cpp | 228 if (!EVP_CipherFinal_ex(&ctx_, output->peek_write(), &output_written)) { 461 if (!EVP_CipherUpdate(&ctx_, output->peek_write(), &output_written, input, input_length)) { 523 if (!EVP_CIPHER_CTX_ctrl(&ctx_, EVP_CTRL_GCM_GET_TAG, tag_length_, output->peek_write()))
|
ocb_utils.cpp | 143 tag->peek_write(), 1 /* final */);
|
key_blob_test.cpp | 61 EXPECT_EQ(1, RAND_bytes(nonce_.peek_write(), OCB_NONCE_LENGTH));
|
/system/keymaster/include/keymaster/ |
serializable.h | 237 uint8_t* peek_write() { return buffer_.get() + write_position_; } function in class:keymaster::Buffer
|