Home
last modified time | relevance | path

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

/AliOS-Things-master/components/mbedtls/programs/aes/
A Dcrypt_and_hash.c115 mbedtls_cipher_context_t cipher_ctx; in main() local
126 mbedtls_cipher_init( &cipher_ctx ); in main()
334 if( mbedtls_cipher_set_iv( &cipher_ctx, IV, 16 ) != 0 ) in main()
339 if( mbedtls_cipher_reset( &cipher_ctx ) != 0 ) in main()
418 if( mbedtls_cipher_get_block_size( &cipher_ctx ) == 0 ) in main()
432 mbedtls_cipher_get_block_size( &cipher_ctx )); in main()
474 if( mbedtls_cipher_set_iv( &cipher_ctx, IV, 16 ) != 0 ) in main()
480 if( mbedtls_cipher_reset( &cipher_ctx ) != 0 ) in main()
499 mbedtls_cipher_get_block_size( &cipher_ctx ) ); in main()
544 mbedtls_cipher_finish( &cipher_ctx, output, &olen ); in main()
[all …]
/AliOS-Things-master/components/mbedtls/library/
A Dcipher.c176 if( ctx->cipher_ctx ) in mbedtls_cipher_free()
177 ctx->cipher_info->base->ctx_free_func( ctx->cipher_ctx ); in mbedtls_cipher_free()
190 if( NULL == ( ctx->cipher_ctx = cipher_info->base->ctx_alloc_func() ) ) in mbedtls_cipher_setup()
372 if( 0 != ( ret = ctx->cipher_info->base->ecb_func( ctx->cipher_ctx, in mbedtls_cipher_update()
507 if( 0 != ( ret = ctx->cipher_info->base->cfb_func( ctx->cipher_ctx, in mbedtls_cipher_update()
559 ret = ctx->cipher_info->base->xts_func( ctx->cipher_ctx, in mbedtls_cipher_update()
1063 return( mbedtls_ccm_encrypt_and_tag( ctx->cipher_ctx, ilen, in mbedtls_cipher_auth_encrypt()
1079 return( mbedtls_chachapoly_encrypt_and_tag( ctx->cipher_ctx, in mbedtls_cipher_auth_encrypt()
1111 ret = mbedtls_gcm_auth_decrypt( ctx->cipher_ctx, ilen, in mbedtls_cipher_auth_decrypt()
1127 ret = mbedtls_ccm_auth_decrypt( ctx->cipher_ctx, ilen, in mbedtls_cipher_auth_decrypt()
[all …]
A Dpkcs12.c184 mbedtls_cipher_context_t cipher_ctx; in mbedtls_pkcs12_pbe() local
200 mbedtls_cipher_init( &cipher_ctx ); in mbedtls_pkcs12_pbe()
202 if( ( ret = mbedtls_cipher_setup( &cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_pkcs12_pbe()
205 …if( ( ret = mbedtls_cipher_setkey( &cipher_ctx, key, 8 * keylen, (mbedtls_operation_t) mode ) ) !=… in mbedtls_pkcs12_pbe()
208 if( ( ret = mbedtls_cipher_set_iv( &cipher_ctx, iv, cipher_info->iv_size ) ) != 0 ) in mbedtls_pkcs12_pbe()
211 if( ( ret = mbedtls_cipher_reset( &cipher_ctx ) ) != 0 ) in mbedtls_pkcs12_pbe()
214 if( ( ret = mbedtls_cipher_update( &cipher_ctx, data, len, in mbedtls_pkcs12_pbe()
220 if( ( ret = mbedtls_cipher_finish( &cipher_ctx, output + olen, &olen ) ) != 0 ) in mbedtls_pkcs12_pbe()
226 mbedtls_cipher_free( &cipher_ctx ); in mbedtls_pkcs12_pbe()
A Dpkcs5.c129 mbedtls_cipher_context_t cipher_ctx; in mbedtls_pkcs5_pbes2() local
189 mbedtls_cipher_init( &cipher_ctx ); in mbedtls_pkcs5_pbes2()
202 if( ( ret = mbedtls_cipher_setup( &cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_pkcs5_pbes2()
205 …if( ( ret = mbedtls_cipher_setkey( &cipher_ctx, key, 8 * keylen, (mbedtls_operation_t) mode ) ) !=… in mbedtls_pkcs5_pbes2()
208 if( ( ret = mbedtls_cipher_crypt( &cipher_ctx, iv, enc_scheme_params.len, in mbedtls_pkcs5_pbes2()
214 mbedtls_cipher_free( &cipher_ctx ); in mbedtls_pkcs5_pbes2()
A Dnist_kw.c143 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_nist_kw_setkey()
145 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_nist_kw_setkey()
148 if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits, in mbedtls_nist_kw_setkey()
164 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_nist_kw_free()
267 ret = mbedtls_cipher_update( &ctx->cipher_ctx, in mbedtls_nist_kw_wrap()
289 ret = mbedtls_cipher_update( &ctx->cipher_ctx, in mbedtls_nist_kw_wrap()
356 ret = mbedtls_cipher_update( &ctx->cipher_ctx, in unwrap()
453 ret = mbedtls_cipher_update( &ctx->cipher_ctx, in mbedtls_nist_kw_unwrap()
A Dccm.c90 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_ccm_setkey()
92 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_ccm_setkey()
95 if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits, in mbedtls_ccm_setkey()
111 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_ccm_free()
128 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, y, 16, y, &olen ) ) != 0 ) \
137 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctr, 16, b, &olen ) ) != 0 ) \
A Dgcm.c115 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, h, 16, h, &olen ) ) != 0 ) in gcm_gen_table()
185 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_gcm_setkey()
187 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_gcm_setkey()
190 if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits, in mbedtls_gcm_setkey()
338 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->y, 16, ctx->base_ectr, in mbedtls_gcm_starts()
400 if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, ctx->y, 16, ectr, in mbedtls_gcm_update()
546 mbedtls_cipher_free( &ctx->cipher_ctx ); in mbedtls_gcm_free()
/AliOS-Things-master/components/mbedtls/include/mbedtls/
A Dnist_kw.h64 mbedtls_cipher_context_t cipher_ctx; /*!< The cipher context used. */ member
A Dccm.h74 mbedtls_cipher_context_t cipher_ctx; /*!< The cipher context used. */ member
A Dgcm.h61 mbedtls_cipher_context_t cipher_ctx; /*!< The cipher context used. */ member
A Dcipher.h319 void *cipher_ctx; member

Completed in 19 milliseconds