Searched refs:ctx_ (Results 1 – 7 of 7) sorted by relevance
/system/keymaster/ |
D | hmac_operation.cpp | 97 HMAC_CTX_init(&ctx_); in HmacOperation() 138 HMAC_Init_ex(&ctx_, key_data, key_data_size, md, NULL /* engine */); in HmacOperation() 142 HMAC_CTX_cleanup(&ctx_); in ~HmacOperation() 153 if (!HMAC_Update(&ctx_, input.peek_read(), input.available_read())) in Update() 168 if (!HMAC_Final(&ctx_, digest, &digest_len)) in Finish()
|
D | ocb_utils.cpp | 36 AeCtx() : ctx_(ae_allocate(NULL)) {} in AeCtx() 38 ae_clear(ctx_); in ~AeCtx() 39 ae_free(ctx_); in ~AeCtx() 42 ae_ctx* get() { return ctx_; } in get() 45 ae_ctx* ctx_; member in keymaster::AeCtx
|
D | aes_operation.cpp | 175 EVP_CIPHER_CTX_init(&ctx_); in AesEvpOperation() 179 EVP_CIPHER_CTX_cleanup(&ctx_); in ~AesEvpOperation() 229 if (!EVP_CipherFinal_ex(&ctx_, output->peek_write(), &output_written)) { in Finish() 324 if (!EVP_CipherInit_ex(&ctx_, cipher, NULL /* engine */, key_, iv_.get(), evp_encrypt_mode())) in InitializeCipher() 329 EVP_CIPHER_CTX_set_padding(&ctx_, 0 /* disable padding */); in InitializeCipher() 418 if (EVP_CipherUpdate(&ctx_, nullptr /* out */, &output_written, aad_block_buf_.get(), in ProcessBufferedAadBlock() 430 if (EVP_CipherUpdate(&ctx_, nullptr /* out */, &output_written, data, blocks * AES_BLOCK_SIZE)) in ProcessAadBlocks() 462 if (!EVP_CipherUpdate(&ctx_, output->peek_write(), &output_written, input, input_length)) { in InternalUpdate() 507 if (!EVP_CIPHER_CTX_ctrl(&ctx_, EVP_CTRL_GCM_GET_TAG, tag_length_, output->peek_write())) in Finish() 619 !EVP_CIPHER_CTX_ctrl(&ctx_, EVP_CTRL_GCM_SET_TAG, tag_length_, tag_buf_.get())) in Finish()
|
D | integrity_assured_key_blob.cpp | 45 HmacCleanup(HMAC_CTX* ctx) : ctx_(ctx) {} in HmacCleanup() 46 ~HmacCleanup() { HMAC_CTX_cleanup(ctx_); } in ~HmacCleanup() 49 HMAC_CTX* ctx_; member in keymaster::HmacCleanup
|
D | keymaster_enforcement.cpp | 369 EvpMdCtx() { EVP_MD_CTX_init(&ctx_); } in EvpMdCtx() 370 ~EvpMdCtx() { EVP_MD_CTX_cleanup(&ctx_); } in ~EvpMdCtx() 372 EVP_MD_CTX* get() { return &ctx_; } in get() 375 EVP_MD_CTX ctx_; member in keymaster::EvpMdCtx
|
D | hmac_operation.h | 45 HMAC_CTX ctx_;
|
D | aes_operation.h | 90 EVP_CIPHER_CTX ctx_; variable
|