Home
last modified time | relevance | path

Searched refs:buffer_offs (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/external/security/rk_tee_user/v1/ta/rk_public_api/
H A Drk_crypto_api.c603 ctx->buffer_offs = 0; in rk_cipher_begin()
630 ctx->buffer_offs, ctx->algo); in rk_cipher_buffer_update()
636 buf_offs = ctx->buffer_offs; in rk_cipher_buffer_update()
638 if ((ctx->buffer_offs + in_len) <= AES_BLOCK_SIZE) { in rk_cipher_buffer_update()
639 TEE_MemMove(ctx->buffer + ctx->buffer_offs, in, in_len); in rk_cipher_buffer_update()
640 ctx->buffer_offs += in_len; in rk_cipher_buffer_update()
642 if ((ctx->buffer_offs == AES_BLOCK_SIZE) && in rk_cipher_buffer_update()
648 res = TEE_CipherUpdate(ctx->op, ctx->buffer, ctx->buffer_offs, out, in rk_cipher_buffer_update()
654 ctx->buffer_offs = 0; in rk_cipher_buffer_update()
659 real_in_len = ((ctx->buffer_offs + in_len) / AES_BLOCK_SIZE) * AES_BLOCK_SIZE; in rk_cipher_buffer_update()
[all …]
H A Drk_crypto_api.h51 uint32_t buffer_offs; member
/OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/rk_public_api/
H A Drk_crypto_api.c629 ctx->buffer_offs = 0; in rk_cipher_begin()
656 ctx->buffer_offs, ctx->algo); in rk_cipher_buffer_update()
662 buf_offs = ctx->buffer_offs; in rk_cipher_buffer_update()
664 if ((ctx->buffer_offs + in_len) <= AES_BLOCK_SIZE) { in rk_cipher_buffer_update()
665 TEE_MemMove(ctx->buffer + ctx->buffer_offs, in, in_len); in rk_cipher_buffer_update()
666 ctx->buffer_offs += in_len; in rk_cipher_buffer_update()
668 if ((ctx->buffer_offs == AES_BLOCK_SIZE) && in rk_cipher_buffer_update()
674 res = TEE_CipherUpdate(ctx->op, ctx->buffer, ctx->buffer_offs, out, in rk_cipher_buffer_update()
680 ctx->buffer_offs = 0; in rk_cipher_buffer_update()
685 real_in_len = ((ctx->buffer_offs + in_len) / AES_BLOCK_SIZE) * AES_BLOCK_SIZE; in rk_cipher_buffer_update()
[all …]
H A Drk_crypto_api.h53 uint32_t buffer_offs; member