Searched refs:aes_ctx (Results 1 – 7 of 7) sorted by relevance
/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | aes_ecb.c | 24 mbedtls_aes_context aes_ctx; member 47 mbedtls_aes_init(&c->aes_ctx); in mbed_aes_ecb_init() 51 mbed_res = mbedtls_aes_setkey_enc(&c->aes_ctx, key1, in mbed_aes_ecb_init() 55 mbed_res = mbedtls_aes_setkey_dec(&c->aes_ctx, key1, in mbed_aes_ecb_init() 78 if (mbedtls_aes_crypt_ecb(&c->aes_ctx, c->mbed_mode, in mbed_aes_ecb_update() 88 mbedtls_aes_free(&to_aes_ecb_ctx(ctx)->aes_ctx); in mbed_aes_ecb_final() 103 mbed_copy_mbedtls_aes_context(&dst->aes_ctx, &src->aes_ctx); in mbed_aes_ecb_copy_state()
|
A D | aes_cbc.c | 24 mbedtls_aes_context aes_ctx; member 51 mbedtls_aes_init(&c->aes_ctx); in mbed_aes_cbc_init() 55 mbed_res = mbedtls_aes_setkey_enc(&c->aes_ctx, key1, in mbed_aes_cbc_init() 59 mbed_res = mbedtls_aes_setkey_dec(&c->aes_ctx, key1, in mbed_aes_cbc_init() 76 if (mbedtls_aes_crypt_cbc(&c->aes_ctx, c->mbed_mode, len, c->iv, in mbed_aes_cbc_update() 85 mbedtls_aes_free(&to_aes_cbc_ctx(ctx)->aes_ctx); in mbed_aes_cbc_final() 101 mbed_copy_mbedtls_aes_context(&dst->aes_ctx, &src->aes_ctx); in mbed_aes_cbc_copy_state()
|
A D | aes_ctr.c | 23 mbedtls_aes_context aes_ctx; member 51 mbedtls_aes_init(&c->aes_ctx); in mbed_aes_ctr_init() 54 if (mbedtls_aes_setkey_enc(&c->aes_ctx, key1, key1_len * 8)) in mbed_aes_ctr_init() 67 if (mbedtls_aes_crypt_ctr(&c->aes_ctx, len, &c->nc_off, c->counter, in mbed_aes_ctr_update() 78 mbedtls_aes_free(&c->aes_ctx); in mbed_aes_ctr_final() 96 mbed_copy_mbedtls_aes_context(&dst->aes_ctx, &src->aes_ctx); in mbed_aes_ctr_copy_state()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | ctr_drbg.c | 75 mbedtls_aes_free( &ctx->aes_ctx ); in mbedtls_ctr_drbg_free() 134 mbedtls_aes_context aes_ctx; in block_cipher_df() local 145 mbedtls_aes_init( &aes_ctx ); in block_cipher_df() 166 if( ( ret = mbedtls_aes_setkey_enc( &aes_ctx, key, in block_cipher_df() 189 if( ( ret = mbedtls_aes_crypt_ecb( &aes_ctx, MBEDTLS_AES_ENCRYPT, in block_cipher_df() 207 if( ( ret = mbedtls_aes_setkey_enc( &aes_ctx, tmp, in block_cipher_df() 217 if( ( ret = mbedtls_aes_crypt_ecb( &aes_ctx, MBEDTLS_AES_ENCRYPT, in block_cipher_df() 226 mbedtls_aes_free( &aes_ctx ); in block_cipher_df() 290 if( ( ret = mbedtls_aes_setkey_enc( &ctx->aes_ctx, tmp, in ctr_drbg_update_internal() 464 mbedtls_aes_init( &ctx->aes_ctx ); in mbedtls_ctr_drbg_seed() [all …]
|
A D | pem.c | 200 mbedtls_aes_context aes_ctx; in pem_aes_decrypt() local 204 mbedtls_aes_init( &aes_ctx ); in pem_aes_decrypt() 209 if( ( ret = mbedtls_aes_setkey_dec( &aes_ctx, aes_key, keylen * 8 ) ) != 0 ) in pem_aes_decrypt() 211 ret = mbedtls_aes_crypt_cbc( &aes_ctx, MBEDTLS_AES_DECRYPT, buflen, in pem_aes_decrypt() 215 mbedtls_aes_free( &aes_ctx ); in pem_aes_decrypt()
|
/optee_os-3.20.0/core/drivers/crypto/se050/core/ |
A D | ctr.c | 17 sss_se05x_symmetric_t aes_ctx; member 67 st = sss_se05x_symmetric_context_init(&c->aes_ctx, se050_session, in se050_aes_ctr_init() 74 st = sss_se05x_cipher_init(&c->aes_ctx, (uint8_t *)NULL, 0); in se050_aes_ctr_init() 97 st = sss_se05x_cipher_update(&c->aes_ctx, in se050_aes_ctr_update() 128 sss_se05x_symmetric_context_free(&c->aes_ctx); in do_final()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | ctr_drbg.h | 196 mbedtls_aes_context aes_ctx; /*!< The AES context. */ member
|
Completed in 22 milliseconds