/AliOS-Things-master/components/mbedtls/library/ |
A D | cipher.c | 185 if( cipher_info == NULL ) in mbedtls_cipher_setup() 193 ctx->cipher_info = cipher_info; in mbedtls_cipher_setup() 218 if( ctx->cipher_info == NULL ) in mbedtls_cipher_setkey() 257 if( ctx->cipher_info == NULL ) in mbedtls_cipher_set_iv() 299 if( ctx->cipher_info == NULL ) in mbedtls_cipher_reset() 313 if( ctx->cipher_info == NULL ) in mbedtls_cipher_update_ad() 359 if( ctx->cipher_info == NULL ) in mbedtls_cipher_update() 768 if( ctx->cipher_info == NULL ) in mbedtls_cipher_finish() 858 if( NULL == ctx->cipher_info || MBEDTLS_MODE_CBC != ctx->cipher_info->mode ) in mbedtls_cipher_set_padding_mode() 908 if( ctx->cipher_info == NULL ) in mbedtls_cipher_write_tag() [all …]
|
A D | cmac.c | 145 block_size = ctx->cipher_info->block_size; in cmac_generate_subkeys() 209 if( ctx == NULL || ctx->cipher_info == NULL || key == NULL ) in mbedtls_cipher_cmac_starts() 216 type = ctx->cipher_info->type; in mbedtls_cipher_cmac_starts() 255 block_size = ctx->cipher_info->block_size; in mbedtls_cipher_cmac_update() 326 block_size = ctx->cipher_info->block_size; in mbedtls_cipher_cmac_finish() 431 const mbedtls_cipher_info_t *cipher_info; in mbedtls_aes_cmac_prf_128() local 439 if( cipher_info == NULL ) in mbedtls_aes_cmac_prf_128() 772 const mbedtls_cipher_info_t *cipher_info; in cmac_test_subkeys() local 777 if( cipher_info == NULL ) in cmac_test_subkeys() 852 const mbedtls_cipher_info_t *cipher_info; in cmac_test_wth_cipher() local [all …]
|
A D | ssl_ticket.c | 124 const mbedtls_cipher_info_t *cipher_info; in mbedtls_ssl_ticket_setup() local 131 cipher_info = mbedtls_cipher_info_from_type( cipher); in mbedtls_ssl_ticket_setup() 132 if( cipher_info == NULL ) in mbedtls_ssl_ticket_setup() 135 if( cipher_info->mode != MBEDTLS_MODE_GCM && in mbedtls_ssl_ticket_setup() 136 cipher_info->mode != MBEDTLS_MODE_CCM ) in mbedtls_ssl_ticket_setup() 141 if( cipher_info->key_bitlen > 8 * MAX_KEY_BYTES ) in mbedtls_ssl_ticket_setup() 144 if( ( ret = mbedtls_cipher_setup( &ctx->keys[0].ctx, cipher_info ) ) != 0 || in mbedtls_ssl_ticket_setup() 145 ( ret = mbedtls_cipher_setup( &ctx->keys[1].ctx, cipher_info ) ) != 0 ) in mbedtls_ssl_ticket_setup()
|
A D | pkcs12.c | 183 const mbedtls_cipher_info_t *cipher_info; in mbedtls_pkcs12_pbe() local 187 cipher_info = mbedtls_cipher_info_from_type( cipher_type ); in mbedtls_pkcs12_pbe() 188 if( cipher_info == NULL ) in mbedtls_pkcs12_pbe() 191 keylen = cipher_info->key_bitlen / 8; in mbedtls_pkcs12_pbe() 195 iv, cipher_info->iv_size ) ) != 0 ) in mbedtls_pkcs12_pbe() 202 if( ( ret = mbedtls_cipher_setup( &cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_pkcs12_pbe() 208 if( ( ret = mbedtls_cipher_set_iv( &cipher_ctx, iv, cipher_info->iv_size ) ) != 0 ) in mbedtls_pkcs12_pbe()
|
A D | pkcs5.c | 126 const mbedtls_cipher_info_t *cipher_info; in mbedtls_pkcs5_pbes2() local 172 cipher_info = mbedtls_cipher_info_from_type( cipher_alg ); in mbedtls_pkcs5_pbes2() 173 if( cipher_info == NULL ) in mbedtls_pkcs5_pbes2() 180 keylen = cipher_info->key_bitlen / 8; in mbedtls_pkcs5_pbes2() 183 enc_scheme_params.len != cipher_info->iv_size ) in mbedtls_pkcs5_pbes2() 202 if( ( ret = mbedtls_cipher_setup( &cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_pkcs5_pbes2()
|
A D | ccm.c | 78 const mbedtls_cipher_info_t *cipher_info; in mbedtls_ccm_setkey() local 83 cipher_info = mbedtls_cipher_info_from_values( cipher, keybits, MBEDTLS_MODE_ECB ); in mbedtls_ccm_setkey() 84 if( cipher_info == NULL ) in mbedtls_ccm_setkey() 87 if( cipher_info->block_size != 16 ) in mbedtls_ccm_setkey() 92 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_ccm_setkey()
|
A D | nist_kw.c | 120 const mbedtls_cipher_info_t *cipher_info; in mbedtls_nist_kw_setkey() local 122 cipher_info = mbedtls_cipher_info_from_values( cipher, in mbedtls_nist_kw_setkey() 125 if( cipher_info == NULL ) in mbedtls_nist_kw_setkey() 128 if( cipher_info->block_size != 16 ) in mbedtls_nist_kw_setkey() 145 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_nist_kw_setkey()
|
A D | gcm.c | 172 const mbedtls_cipher_info_t *cipher_info; in mbedtls_gcm_setkey() local 178 cipher_info = mbedtls_cipher_info_from_values( cipher, keybits, MBEDTLS_MODE_ECB ); in mbedtls_gcm_setkey() 179 if( cipher_info == NULL ) in mbedtls_gcm_setkey() 182 if( cipher_info->block_size != 16 ) in mbedtls_gcm_setkey() 187 if( ( ret = mbedtls_cipher_setup( &ctx->cipher_ctx, cipher_info ) ) != 0 ) in mbedtls_gcm_setkey()
|
A D | ssl_tls.c | 621 const mbedtls_cipher_info_t *cipher_info; in mbedtls_ssl_derive_keys() local 631 if( cipher_info == NULL ) in mbedtls_ssl_derive_keys() 807 transform->keylen = cipher_info->key_bitlen / 8; in mbedtls_ssl_derive_keys() 809 if( cipher_info->mode == MBEDTLS_MODE_GCM || in mbedtls_ssl_derive_keys() 810 cipher_info->mode == MBEDTLS_MODE_CCM || in mbedtls_ssl_derive_keys() 811 cipher_info->mode == MBEDTLS_MODE_CHACHAPOLY ) in mbedtls_ssl_derive_keys() 871 transform->ivlen = cipher_info->iv_size; in mbedtls_ssl_derive_keys() 874 if( cipher_info->mode == MBEDTLS_MODE_STREAM ) in mbedtls_ssl_derive_keys() 1034 cipher_info ) ) != 0 ) in mbedtls_ssl_derive_keys() 1041 cipher_info ) ) != 0 ) in mbedtls_ssl_derive_keys() [all …]
|
/AliOS-Things-master/components/mbedtls/include/mbedtls/ |
A D | cipher.h | 431 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_block_size() 434 return ctx->cipher_info->block_size; in mbedtls_cipher_get_block_size() 450 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_cipher_mode() 453 return ctx->cipher_info->mode; in mbedtls_cipher_get_cipher_mode() 470 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_iv_size() 492 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_type() 495 return ctx->cipher_info->type; in mbedtls_cipher_get_type() 511 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_name() 514 return ctx->cipher_info->name; in mbedtls_cipher_get_name() 531 if( ctx->cipher_info == NULL ) in mbedtls_cipher_get_key_bitlen() [all …]
|
A D | cmac.h | 165 int mbedtls_cipher_cmac( const mbedtls_cipher_info_t *cipher_info,
|
/AliOS-Things-master/components/mbedtls/programs/aes/ |
A D | crypt_and_hash.c | 113 const mbedtls_cipher_info_t *cipher_info; in main() local 142 cipher_info = mbedtls_cipher_info_from_type( *list ); in main() 143 mbedtls_printf( " %s\n", cipher_info->name ); in main() 193 cipher_info = mbedtls_cipher_info_from_string( argv[4] ); in main() 194 if( cipher_info == NULL ) in main() 199 if( ( ret = mbedtls_cipher_setup( &cipher_ctx, cipher_info) ) != 0 ) in main() 328 if( mbedtls_cipher_setkey( &cipher_ctx, digest, cipher_info->key_bitlen, in main() 427 if( cipher_info->mode != MBEDTLS_MODE_GCM && in main() 467 if( mbedtls_cipher_setkey( &cipher_ctx, digest, cipher_info->key_bitlen, in main()
|
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/snmp/ |
A D | snmpv3_mbedtls.c | 114 const mbedtls_cipher_info_t *cipher_info; in snmpv3_crypt() local 132 cipher_info = mbedtls_cipher_info_from_type(MBEDTLS_CIPHER_DES_CBC); in snmpv3_crypt() 133 if(mbedtls_cipher_setup(&ctx, cipher_info) != 0) { in snmpv3_crypt() 175 cipher_info = mbedtls_cipher_info_from_type(MBEDTLS_CIPHER_AES_128_CFB128); in snmpv3_crypt() 176 if(mbedtls_cipher_setup(&ctx, cipher_info) != 0) { in snmpv3_crypt()
|
/AliOS-Things-master/components/mbedtls/programs/test/ |
A D | benchmark.c | 433 const mbedtls_cipher_info_t *cipher_info; in main() local 438 cipher_info = mbedtls_cipher_info_from_type( MBEDTLS_CIPHER_DES_EDE3_ECB ); in main() 441 mbedtls_cipher_cmac( cipher_info, tmp, 192, buf, in main() 561 const mbedtls_cipher_info_t *cipher_info; in main() local 574 cipher_info = mbedtls_cipher_info_from_type( cipher_type ); in main() 577 mbedtls_cipher_cmac( cipher_info, tmp, keysize, in main()
|