Searched refs:cipher_info (Results 1 – 12 of 12) sorted by relevance
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | cipher.c | 202 dst->cipher_info = src->cipher_info; in mbedtls_cipher_clone() 227 if( cipher_info == NULL ) in mbedtls_cipher_setup() 235 ctx->cipher_info = cipher_info; in mbedtls_cipher_setup() 277 ctx->cipher_info = cipher_info; in mbedtls_cipher_setup_psa() 288 ctx->cipher_info = cipher_info; in mbedtls_cipher_setup_info() 301 if( ctx->cipher_info == NULL ) in mbedtls_cipher_setkey() 398 if( ctx->cipher_info == NULL ) in mbedtls_cipher_set_iv() 460 if( ctx->cipher_info == NULL ) in mbedtls_cipher_reset() 483 if( ctx->cipher_info == NULL ) in mbedtls_cipher_update_ad() 539 if( ctx->cipher_info == NULL ) in mbedtls_cipher_update() [all …]
|
A D | cmac.c | 128 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 D | ssl_ticket.c | 135 const mbedtls_cipher_info_t *cipher_info; in mbedtls_ssl_ticket_setup() local 142 cipher_info = mbedtls_cipher_info_from_type( cipher); in mbedtls_ssl_ticket_setup() 143 if( cipher_info == NULL ) in mbedtls_ssl_ticket_setup() 146 if( cipher_info->mode != MBEDTLS_MODE_GCM && in mbedtls_ssl_ticket_setup() 147 cipher_info->mode != MBEDTLS_MODE_CCM ) in mbedtls_ssl_ticket_setup() 152 if( cipher_info->key_bitlen > 8 * MAX_KEY_BYTES ) in mbedtls_ssl_ticket_setup() 157 cipher_info, TICKET_AUTH_TAG_BYTES ); in mbedtls_ssl_ticket_setup() 164 if( ( ret = mbedtls_cipher_setup( &ctx->keys[0].ctx, cipher_info ) ) != 0 ) in mbedtls_ssl_ticket_setup() 169 cipher_info, TICKET_AUTH_TAG_BYTES ); in mbedtls_ssl_ticket_setup() 174 if( ( ret = mbedtls_cipher_setup( &ctx->keys[1].ctx, cipher_info ) ) != 0 ) in mbedtls_ssl_ticket_setup()
|
A D | pkcs12.c | 178 const mbedtls_cipher_info_t *cipher_info; in mbedtls_pkcs12_pbe() local 185 cipher_info = mbedtls_cipher_info_from_type( cipher_type ); in mbedtls_pkcs12_pbe() 186 if( cipher_info == NULL ) in mbedtls_pkcs12_pbe() 189 keylen = cipher_info->key_bitlen / 8; in mbedtls_pkcs12_pbe() 193 iv, cipher_info->iv_size ) ) != 0 ) in mbedtls_pkcs12_pbe() 200 if( ( ret = mbedtls_cipher_setup( &cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_pkcs12_pbe() 206 if( ( ret = mbedtls_cipher_set_iv( &cipher_ctx, iv, cipher_info->iv_size ) ) != 0 ) in mbedtls_pkcs12_pbe()
|
A D | pkcs5.c | 122 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 D | ccm.c | 73 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 D | nist_kw.c | 76 const mbedtls_cipher_info_t *cipher_info; in mbedtls_nist_kw_setkey() local 78 cipher_info = mbedtls_cipher_info_from_values( cipher, in mbedtls_nist_kw_setkey() 81 if( cipher_info == NULL ) in mbedtls_nist_kw_setkey() 84 if( cipher_info->block_size != 16 ) in mbedtls_nist_kw_setkey() 101 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_nist_kw_setkey()
|
A D | gcm.c | 144 const mbedtls_cipher_info_t *cipher_info; in mbedtls_gcm_setkey() local 150 cipher_info = mbedtls_cipher_info_from_values( cipher, keybits, in mbedtls_gcm_setkey() 152 if( cipher_info == NULL ) in mbedtls_gcm_setkey() 155 if( cipher_info->block_size != 16 ) in mbedtls_gcm_setkey() 160 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_gcm_setkey()
|
A D | ssl_tls.c | 997 const mbedtls_cipher_info_t *cipher_info; in ssl_populate_transform() local 1033 if( cipher_info == NULL ) in ssl_populate_transform() 1088 keylen = cipher_info->key_bitlen / 8; in ssl_populate_transform() 1093 if( cipher_info->mode == MBEDTLS_MODE_GCM || in ssl_populate_transform() 1094 cipher_info->mode == MBEDTLS_MODE_CCM || in ssl_populate_transform() 1095 cipher_info->mode == MBEDTLS_MODE_CHACHAPOLY ) in ssl_populate_transform() 1134 if( cipher_info->mode == MBEDTLS_MODE_STREAM || in ssl_populate_transform() 1135 cipher_info->mode == MBEDTLS_MODE_CBC ) in ssl_populate_transform() 1169 transform->ivlen = cipher_info->iv_size; in ssl_populate_transform() 1172 if( cipher_info->mode == MBEDTLS_MODE_STREAM ) in ssl_populate_transform() [all …]
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | cipher.h | 534 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_block_size() 537 return ctx->cipher_info->block_size; in mbedtls_cipher_get_block_size() 553 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_cipher_mode() 556 return ctx->cipher_info->mode; in mbedtls_cipher_get_cipher_mode() 573 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_iv_size() 595 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_type() 598 return ctx->cipher_info->type; in mbedtls_cipher_get_type() 614 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_name() 617 return ctx->cipher_info->name; in mbedtls_cipher_get_name() 634 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_key_bitlen() [all …]
|
A D | cmac.h | 211 int mbedtls_cipher_cmac( const mbedtls_cipher_info_t *cipher_info,
|
/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | cmac.c | 40 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 46 milliseconds