Lines Matching refs:keybits

529                     unsigned int keybits )  in mbedtls_aes_setkey_enc()  argument
537 switch( keybits ) in mbedtls_aes_setkey_enc()
565 return( mbedtls_aesni_setkey_enc( (unsigned char *) ctx->rk, key, keybits ) ); in mbedtls_aes_setkey_enc()
568 for( i = 0; i < ( keybits >> 5 ); i++ ) in mbedtls_aes_setkey_enc()
645 unsigned int keybits ) in mbedtls_aes_setkey_dec() argument
668 if( ( ret = mbedtls_aes_setkey_enc( &cty, key, keybits ) ) != 0 ) in mbedtls_aes_setkey_dec()
714 unsigned int keybits, in mbedtls_aes_xts_decode_keys() argument
720 const unsigned int half_keybits = keybits / 2; in mbedtls_aes_xts_decode_keys()
723 switch( keybits ) in mbedtls_aes_xts_decode_keys()
740 unsigned int keybits) in mbedtls_aes_xts_setkey_enc() argument
749 ret = mbedtls_aes_xts_decode_keys( key, keybits, &key1, &key1bits, in mbedtls_aes_xts_setkey_enc()
765 unsigned int keybits) in mbedtls_aes_xts_setkey_dec() argument
774 ret = mbedtls_aes_xts_decode_keys( key, keybits, &key1, &key1bits, in mbedtls_aes_xts_setkey_dec()
1769 unsigned int keybits; in mbedtls_aes_self_test() local
1801 keybits = 128 + u * 64; in mbedtls_aes_self_test()
1805 mbedtls_printf( " AES-ECB-%3u (%s): ", keybits, in mbedtls_aes_self_test()
1812 ret = mbedtls_aes_setkey_dec( &ctx, key, keybits ); in mbedtls_aes_self_test()
1817 ret = mbedtls_aes_setkey_enc( &ctx, key, keybits ); in mbedtls_aes_self_test()
1826 if( ret == MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED && keybits == 192 ) in mbedtls_aes_self_test()
1863 keybits = 128 + u * 64; in mbedtls_aes_self_test()
1867 mbedtls_printf( " AES-CBC-%3u (%s): ", keybits, in mbedtls_aes_self_test()
1876 ret = mbedtls_aes_setkey_dec( &ctx, key, keybits ); in mbedtls_aes_self_test()
1881 ret = mbedtls_aes_setkey_enc( &ctx, key, keybits ); in mbedtls_aes_self_test()
1890 if( ret == MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED && keybits == 192 ) in mbedtls_aes_self_test()
1938 keybits = 128 + u * 64; in mbedtls_aes_self_test()
1942 mbedtls_printf( " AES-CFB128-%3u (%s): ", keybits, in mbedtls_aes_self_test()
1946 memcpy( key, aes_test_cfb128_key[u], keybits / 8 ); in mbedtls_aes_self_test()
1949 ret = mbedtls_aes_setkey_enc( &ctx, key, keybits ); in mbedtls_aes_self_test()
1955 if( ret == MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED && keybits == 192 ) in mbedtls_aes_self_test()
2001 keybits = 128 + u * 64; in mbedtls_aes_self_test()
2005 mbedtls_printf( " AES-OFB-%3u (%s): ", keybits, in mbedtls_aes_self_test()
2009 memcpy( key, aes_test_ofb_key[u], keybits / 8 ); in mbedtls_aes_self_test()
2012 ret = mbedtls_aes_setkey_enc( &ctx, key, keybits ); in mbedtls_aes_self_test()
2018 if( ret == MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED && keybits == 192 ) in mbedtls_aes_self_test()