Home
last modified time | relevance | path

Searched refs:cipher_info (Results 1 – 20 of 20) sorted by relevance

/optee_os/lib/libmbedtls/mbedtls/library/
A Dcipher.c222 dst->cipher_info = src->cipher_info; in mbedtls_cipher_clone()
247 if( cipher_info == NULL ) in mbedtls_cipher_setup()
255 ctx->cipher_info = cipher_info; in mbedtls_cipher_setup()
297 ctx->cipher_info = cipher_info; in mbedtls_cipher_setup_psa()
308 ctx->cipher_info = cipher_info; in mbedtls_cipher_setup_info()
321 if( ctx->cipher_info == NULL ) in mbedtls_cipher_setkey()
418 if( ctx->cipher_info == NULL ) in mbedtls_cipher_set_iv()
469 if( ctx->cipher_info == NULL ) in mbedtls_cipher_reset()
492 if( ctx->cipher_info == NULL ) in mbedtls_cipher_update_ad()
548 if( ctx->cipher_info == NULL ) in mbedtls_cipher_update()
[all …]
A Dcmac.c128 block_size = ctx->cipher_info->block_size; in cmac_generate_subkeys()
207 if( ctx == NULL || ctx->cipher_info == NULL || key == NULL ) in mbedtls_cipher_cmac_starts()
214 type = ctx->cipher_info->type; in mbedtls_cipher_cmac_starts()
247 block_size = ctx->cipher_info->block_size; in mbedtls_cipher_cmac_update()
318 block_size = ctx->cipher_info->block_size; in mbedtls_cipher_cmac_finish()
423 const mbedtls_cipher_info_t *cipher_info; in mbedtls_aes_cmac_prf_128() local
431 if( cipher_info == NULL ) in mbedtls_aes_cmac_prf_128()
764 const mbedtls_cipher_info_t *cipher_info; in cmac_test_subkeys() local
769 if( cipher_info == NULL ) in cmac_test_subkeys()
857 const mbedtls_cipher_info_t *cipher_info; in cmac_test_wth_cipher() local
[all …]
A Dssl_ticket.c133 const mbedtls_cipher_info_t *cipher_info; in mbedtls_ssl_ticket_setup() local
140 cipher_info = mbedtls_cipher_info_from_type( cipher); in mbedtls_ssl_ticket_setup()
141 if( cipher_info == NULL ) in mbedtls_ssl_ticket_setup()
144 if( cipher_info->mode != MBEDTLS_MODE_GCM && in mbedtls_ssl_ticket_setup()
145 cipher_info->mode != MBEDTLS_MODE_CCM ) in mbedtls_ssl_ticket_setup()
150 if( cipher_info->key_bitlen > 8 * MAX_KEY_BYTES ) in mbedtls_ssl_ticket_setup()
155 cipher_info, TICKET_AUTH_TAG_BYTES ); in mbedtls_ssl_ticket_setup()
162 if( ( ret = mbedtls_cipher_setup( &ctx->keys[0].ctx, cipher_info ) ) != 0 ) in mbedtls_ssl_ticket_setup()
167 cipher_info, TICKET_AUTH_TAG_BYTES ); in mbedtls_ssl_ticket_setup()
172 if( ( ret = mbedtls_cipher_setup( &ctx->keys[1].ctx, cipher_info ) ) != 0 ) in mbedtls_ssl_ticket_setup()
A Dpkcs12.c178 const mbedtls_cipher_info_t *cipher_info; in mbedtls_pkcs12_pbe() local
182 cipher_info = mbedtls_cipher_info_from_type( cipher_type ); in mbedtls_pkcs12_pbe()
183 if( cipher_info == NULL ) in mbedtls_pkcs12_pbe()
186 keylen = cipher_info->key_bitlen / 8; in mbedtls_pkcs12_pbe()
190 iv, cipher_info->iv_size ) ) != 0 ) in mbedtls_pkcs12_pbe()
197 if( ( ret = mbedtls_cipher_setup( &cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_pkcs12_pbe()
203 if( ( ret = mbedtls_cipher_set_iv( &cipher_ctx, iv, cipher_info->iv_size ) ) != 0 ) in mbedtls_pkcs12_pbe()
A Dpkcs5.c122 const mbedtls_cipher_info_t *cipher_info; in mbedtls_pkcs5_pbes2() local
169 cipher_info = mbedtls_cipher_info_from_type( cipher_alg ); in mbedtls_pkcs5_pbes2()
170 if( cipher_info == NULL ) in mbedtls_pkcs5_pbes2()
177 keylen = cipher_info->key_bitlen / 8; in mbedtls_pkcs5_pbes2()
180 enc_scheme_params.len != cipher_info->iv_size ) in mbedtls_pkcs5_pbes2()
199 if( ( ret = mbedtls_cipher_setup( &cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_pkcs5_pbes2()
A Dccm.c73 const mbedtls_cipher_info_t *cipher_info; in mbedtls_ccm_setkey() local
78 cipher_info = mbedtls_cipher_info_from_values( cipher, keybits, in mbedtls_ccm_setkey()
80 if( cipher_info == NULL ) in mbedtls_ccm_setkey()
83 if( cipher_info->block_size != 16 ) in mbedtls_ccm_setkey()
88 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_ccm_setkey()
A Dnist_kw.c115 const mbedtls_cipher_info_t *cipher_info; in mbedtls_nist_kw_setkey() local
117 cipher_info = mbedtls_cipher_info_from_values( cipher, in mbedtls_nist_kw_setkey()
120 if( cipher_info == NULL ) in mbedtls_nist_kw_setkey()
123 if( cipher_info->block_size != 16 ) in mbedtls_nist_kw_setkey()
140 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_nist_kw_setkey()
A Dgcm.c167 const mbedtls_cipher_info_t *cipher_info; in mbedtls_gcm_setkey() local
173 cipher_info = mbedtls_cipher_info_from_values( cipher, keybits, in mbedtls_gcm_setkey()
175 if( cipher_info == NULL ) in mbedtls_gcm_setkey()
178 if( cipher_info->block_size != 16 ) in mbedtls_gcm_setkey()
183 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_gcm_setkey()
A Dssl_tls.c929 const mbedtls_cipher_info_t *cipher_info; in ssl_populate_transform() local
964 if( cipher_info == NULL ) in ssl_populate_transform()
1019 keylen = cipher_info->key_bitlen / 8; in ssl_populate_transform()
1024 if( cipher_info->mode == MBEDTLS_MODE_GCM || in ssl_populate_transform()
1025 cipher_info->mode == MBEDTLS_MODE_CCM || in ssl_populate_transform()
1026 cipher_info->mode == MBEDTLS_MODE_CHACHAPOLY ) in ssl_populate_transform()
1065 if( cipher_info->mode == MBEDTLS_MODE_STREAM || in ssl_populate_transform()
1066 cipher_info->mode == MBEDTLS_MODE_CBC ) in ssl_populate_transform()
1100 transform->ivlen = cipher_info->iv_size; in ssl_populate_transform()
1103 if( cipher_info->mode == MBEDTLS_MODE_STREAM ) in ssl_populate_transform()
[all …]
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dcipher.h526 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_block_size()
529 return ctx->cipher_info->block_size; in mbedtls_cipher_get_block_size()
545 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_cipher_mode()
548 return ctx->cipher_info->mode; in mbedtls_cipher_get_cipher_mode()
565 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_iv_size()
587 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_type()
590 return ctx->cipher_info->type; in mbedtls_cipher_get_type()
606 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_name()
609 return ctx->cipher_info->name; in mbedtls_cipher_get_name()
626 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_key_bitlen()
[all …]
A Dcmac.h193 int mbedtls_cipher_cmac( const mbedtls_cipher_info_t *cipher_info,
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dcipher.h526 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_block_size()
529 return ctx->cipher_info->block_size; in mbedtls_cipher_get_block_size()
545 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_cipher_mode()
548 return ctx->cipher_info->mode; in mbedtls_cipher_get_cipher_mode()
565 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_iv_size()
587 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_type()
590 return ctx->cipher_info->type; in mbedtls_cipher_get_type()
606 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_name()
609 return ctx->cipher_info->name; in mbedtls_cipher_get_name()
626 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_key_bitlen()
[all …]
A Dcmac.h193 int mbedtls_cipher_cmac( const mbedtls_cipher_info_t *cipher_info,
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dcipher.h526 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_block_size()
529 return ctx->cipher_info->block_size; in mbedtls_cipher_get_block_size()
545 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_cipher_mode()
548 return ctx->cipher_info->mode; in mbedtls_cipher_get_cipher_mode()
565 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_iv_size()
587 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_type()
590 return ctx->cipher_info->type; in mbedtls_cipher_get_type()
606 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_name()
609 return ctx->cipher_info->name; in mbedtls_cipher_get_name()
626 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_key_bitlen()
[all …]
A Dcmac.h193 int mbedtls_cipher_cmac( const mbedtls_cipher_info_t *cipher_info,
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dcipher.h526 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_block_size()
529 return ctx->cipher_info->block_size; in mbedtls_cipher_get_block_size()
545 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_cipher_mode()
548 return ctx->cipher_info->mode; in mbedtls_cipher_get_cipher_mode()
565 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_iv_size()
587 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_type()
590 return ctx->cipher_info->type; in mbedtls_cipher_get_type()
606 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_name()
609 return ctx->cipher_info->name; in mbedtls_cipher_get_name()
626 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_key_bitlen()
[all …]
A Dcmac.h193 int mbedtls_cipher_cmac( const mbedtls_cipher_info_t *cipher_info,
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dcipher.h526 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_block_size()
529 return ctx->cipher_info->block_size; in mbedtls_cipher_get_block_size()
545 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_cipher_mode()
548 return ctx->cipher_info->mode; in mbedtls_cipher_get_cipher_mode()
565 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_iv_size()
587 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_type()
590 return ctx->cipher_info->type; in mbedtls_cipher_get_type()
606 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_name()
609 return ctx->cipher_info->name; in mbedtls_cipher_get_name()
626 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_key_bitlen()
[all …]
A Dcmac.h193 int mbedtls_cipher_cmac( const mbedtls_cipher_info_t *cipher_info,
/optee_os/lib/libmbedtls/core/
A Dcmac.c40 const mbedtls_cipher_info_t *cipher_info = NULL; in mbed_cmac_init() local
42 cipher_info = mbedtls_cipher_info_from_values(c->cipher_id, in mbed_cmac_init()
45 if (!cipher_info) in mbed_cmac_init()
48 if (mbedtls_cipher_setup_info(&c->cipher_ctx, cipher_info)) in mbed_cmac_init()
133 const mbedtls_cipher_info_t *cipher_info = NULL; in crypto_cmac_alloc_ctx() local
143 cipher_info = mbedtls_cipher_info_from_values(cipher_id, key_bitlen, in crypto_cmac_alloc_ctx()
145 if (!cipher_info) in crypto_cmac_alloc_ctx()
156 mbed_res = mbedtls_cipher_setup(&c->cipher_ctx, cipher_info); in crypto_cmac_alloc_ctx()

Completed in 49 milliseconds