Lines Matching refs:keysize
414 int keysize; in main() local
417 for( keysize = 128; keysize <= 256; keysize += 64 ) in main()
419 mbedtls_snprintf( title, sizeof( title ), "AES-CBC-%d", keysize ); in main()
423 mbedtls_aes_setkey_enc( &aes, tmp, keysize ); in main()
434 int keysize; in main() local
438 for( keysize = 128; keysize <= 256; keysize += 64 ) in main()
440 mbedtls_snprintf( title, sizeof( title ), "AES-GCM-%d", keysize ); in main()
444 mbedtls_gcm_setkey( &gcm, MBEDTLS_CIPHER_ID_AES, tmp, keysize ); in main()
457 int keysize; in main() local
461 for( keysize = 128; keysize <= 256; keysize += 64 ) in main()
463 mbedtls_snprintf( title, sizeof( title ), "AES-CCM-%d", keysize ); in main()
467 mbedtls_ccm_setkey( &ccm, MBEDTLS_CIPHER_ID_AES, tmp, keysize ); in main()
483 int keysize; in main() local
485 for( keysize = 128, cipher_type = MBEDTLS_CIPHER_AES_128_ECB; in main()
486 keysize <= 256; in main()
487 keysize += 64, cipher_type++ ) in main()
489 mbedtls_snprintf( title, sizeof( title ), "AES-CMAC-%d", keysize ); in main()
497 mbedtls_cipher_cmac( cipher_info, tmp, keysize, in main()
513 int keysize; in main() local
516 for( keysize = 128; keysize <= 256; keysize += 64 ) in main()
518 mbedtls_snprintf( title, sizeof( title ), "CAMELLIA-CBC-%d", keysize ); in main()
522 mbedtls_camellia_setkey_enc( &camellia, tmp, keysize ); in main()
535 int keysize; in main() local
539 for( keysize = 128; keysize <= 256; keysize += 64 ) in main()
541 mbedtls_snprintf( title, sizeof( title ), "BLOWFISH-CBC-%d", keysize ); in main()
545 mbedtls_blowfish_setkey( &blowfish, tmp, keysize ); in main()
644 int keysize; in main() local
646 for( keysize = 2048; keysize <= 4096; keysize *= 2 ) in main()
648 mbedtls_snprintf( title, sizeof( title ), "RSA-%d", keysize ); in main()
651 mbedtls_rsa_gen_key( &rsa, myrand, NULL, keysize, 65537 ); in main()