Home
last modified time | relevance | path

Searched refs:cipher_ctx (Results 1 – 11 of 11) sorted by relevance

/mbedtls-development/programs/aes/
A Dcrypt_and_hash.c99 mbedtls_cipher_context_t cipher_ctx; in main() local
110 mbedtls_cipher_init( &cipher_ctx ); in main()
312 if( mbedtls_cipher_setkey( &cipher_ctx, in main()
320 if( mbedtls_cipher_set_iv( &cipher_ctx, IV, 16 ) != 0 ) in main()
325 if( mbedtls_cipher_reset( &cipher_ctx ) != 0 ) in main()
404 if( mbedtls_cipher_get_block_size( &cipher_ctx ) == 0 ) in main()
453 if( mbedtls_cipher_setkey( &cipher_ctx, in main()
462 if( mbedtls_cipher_set_iv( &cipher_ctx, IV, 16 ) != 0 ) in main()
468 if( mbedtls_cipher_reset( &cipher_ctx ) != 0 ) in main()
532 mbedtls_cipher_finish( &cipher_ctx, output, &olen ); in main()
[all …]
/mbedtls-development/library/
A Dcipher.c178 if( ctx->cipher_ctx != NULL ) in mbedtls_cipher_free()
181 (mbedtls_cipher_context_psa *) ctx->cipher_ctx; in mbedtls_cipher_free()
207 if( ctx->cipher_ctx ) in mbedtls_cipher_free()
208 ctx->cipher_info->base->ctx_free_func( ctx->cipher_ctx ); in mbedtls_cipher_free()
266 ctx->cipher_ctx = cipher_psa; in mbedtls_cipher_setup_psa()
289 (mbedtls_cipher_context_psa *) ctx->cipher_ctx; in mbedtls_cipher_setkey()
1276 (mbedtls_cipher_context_psa *) ctx->cipher_ctx; in mbedtls_cipher_crypt()
1368 (mbedtls_cipher_context_psa *) ctx->cipher_ctx; in mbedtls_cipher_aead_encrypt()
1448 (mbedtls_cipher_context_psa *) ctx->cipher_ctx; in mbedtls_cipher_aead_decrypt()
1478 ret = mbedtls_gcm_auth_decrypt( ctx->cipher_ctx, ilen, in mbedtls_cipher_aead_decrypt()
[all …]
A Dpkcs12.c134 mbedtls_cipher_context_t cipher_ctx; in mbedtls_pkcs12_pbe() local
150 mbedtls_cipher_init( &cipher_ctx ); in mbedtls_pkcs12_pbe()
152 if( ( ret = mbedtls_cipher_setup( &cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_pkcs12_pbe()
155 …if( ( ret = mbedtls_cipher_setkey( &cipher_ctx, key, 8 * keylen, (mbedtls_operation_t) mode ) ) !=… in mbedtls_pkcs12_pbe()
158 if( ( ret = mbedtls_cipher_set_iv( &cipher_ctx, iv, cipher_info->iv_size ) ) != 0 ) in mbedtls_pkcs12_pbe()
161 if( ( ret = mbedtls_cipher_reset( &cipher_ctx ) ) != 0 ) in mbedtls_pkcs12_pbe()
164 if( ( ret = mbedtls_cipher_update( &cipher_ctx, data, len, in mbedtls_pkcs12_pbe()
170 if( ( ret = mbedtls_cipher_finish( &cipher_ctx, output + olen, &olen ) ) != 0 ) in mbedtls_pkcs12_pbe()
176 mbedtls_cipher_free( &cipher_ctx ); in mbedtls_pkcs12_pbe()
A Dpkcs5.c125 mbedtls_cipher_context_t cipher_ctx; in mbedtls_pkcs5_pbes2() local
186 mbedtls_cipher_init( &cipher_ctx ); in mbedtls_pkcs5_pbes2()
199 if( ( ret = mbedtls_cipher_setup( &cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_pkcs5_pbes2()
202 if( ( ret = mbedtls_cipher_setkey( &cipher_ctx, key, 8 * keylen, in mbedtls_pkcs5_pbes2()
206 if( ( ret = mbedtls_cipher_crypt( &cipher_ctx, iv, enc_scheme_params.len, in mbedtls_pkcs5_pbes2()
212 mbedtls_cipher_free( &cipher_ctx ); in mbedtls_pkcs5_pbes2()
A Dnist_kw.c118 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_nist_kw_setkey()
120 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_nist_kw_setkey()
123 if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits, in mbedtls_nist_kw_setkey()
139 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_nist_kw_free()
240 ret = mbedtls_cipher_update( &ctx->cipher_ctx, in mbedtls_nist_kw_wrap()
265 ret = mbedtls_cipher_update( &ctx->cipher_ctx, in mbedtls_nist_kw_wrap()
333 ret = mbedtls_cipher_update( &ctx->cipher_ctx, in unwrap()
430 ret = mbedtls_cipher_update( &ctx->cipher_ctx, in mbedtls_nist_kw_unwrap()
A Dccm.c75 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_ccm_setkey()
77 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_ccm_setkey()
80 if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits, in mbedtls_ccm_setkey()
96 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_ccm_free()
120 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->ctr, 16, tmp_buf, in mbedtls_ccm_crypt()
194 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->y, 16, ctx->y, &olen ) ) != 0 ) in ccm_calculate_first_block_if_ready()
322 … if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->y, 16, ctx->y, &olen ) ) != 0 ) in mbedtls_ccm_update_ad()
389 … if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->y, 16, ctx->y, &olen ) ) != 0 ) in mbedtls_ccm_update()
422 … if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->y, 16, ctx->y, &olen ) ) != 0 ) in mbedtls_ccm_update()
A Dgcm.c87 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, h, 16, h, &olen ) ) != 0 ) in gcm_gen_table()
158 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_gcm_setkey()
160 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_gcm_setkey()
163 if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits, in mbedtls_gcm_setkey()
303 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->y, 16, in mbedtls_gcm_starts()
404 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->y, 16, ectr, in gcm_mask()
651 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_gcm_free()
/mbedtls-development/include/mbedtls/
A Dnist_kw.h65 mbedtls_cipher_context_t MBEDTLS_PRIVATE(cipher_ctx); /*!< The cipher context used. */
A Dgcm.h62 mbedtls_cipher_context_t MBEDTLS_PRIVATE(cipher_ctx); /*!< The cipher context used. */
A Dccm.h81 mbedtls_cipher_context_t MBEDTLS_PRIVATE(cipher_ctx); /*!< The cipher context used. */
A Dcipher.h356 void *MBEDTLS_PRIVATE(cipher_ctx);

Completed in 17 milliseconds