Home
last modified time | relevance | path

Searched refs:keybits (Results 1 – 17 of 17) sorted by relevance

/optee_os-3.20.0/lib/libmbedtls/core/
A Daes.c74 unsigned int keybits) in mbedtls_aes_setkey_enc() argument
78 if (keybits != 128 && keybits != 192 && keybits != 256) in mbedtls_aes_setkey_enc()
81 if (crypto_accel_aes_expand_keys(key, keybits / 8, ctx->key, NULL, in mbedtls_aes_setkey_enc()
89 unsigned int keybits) in mbedtls_aes_setkey_dec() argument
95 if (keybits != 128 && keybits != 192 && keybits != 256) in mbedtls_aes_setkey_dec()
98 if (crypto_accel_aes_expand_keys(key, keybits / 8, enc_key, ctx->key, in mbedtls_aes_setkey_dec()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Daes.h180 unsigned int keybits );
199 unsigned int keybits );
221 unsigned int keybits );
242 unsigned int keybits );
A Dcamellia.h106 unsigned int keybits );
122 unsigned int keybits );
A Daria.h127 unsigned int keybits );
146 unsigned int keybits );
A Dnist_kw.h104 unsigned int keybits,
A Dcmac.h120 const unsigned char *key, size_t keybits );
A Dblowfish.h110 unsigned int keybits );
A Dccm.h114 unsigned int keybits );
A Dgcm.h118 unsigned int keybits );
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dblowfish.c150 unsigned int keybits ) in mbedtls_blowfish_setkey() argument
157 if( keybits < MBEDTLS_BLOWFISH_MIN_KEY_BITS || in mbedtls_blowfish_setkey()
158 keybits > MBEDTLS_BLOWFISH_MAX_KEY_BITS || in mbedtls_blowfish_setkey()
159 keybits % 8 != 0 ) in mbedtls_blowfish_setkey()
164 keybits >>= 3; in mbedtls_blowfish_setkey()
179 if( j >= keybits ) in mbedtls_blowfish_setkey()
A Daes.c529 unsigned int keybits ) in mbedtls_aes_setkey_enc() argument
537 switch( 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
720 const unsigned int half_keybits = keybits / 2; in mbedtls_aes_xts_decode_keys()
723 switch( keybits ) in mbedtls_aes_xts_decode_keys()
1769 unsigned int keybits; in mbedtls_aes_self_test() local
1801 keybits = 128 + u * 64; in mbedtls_aes_self_test()
1863 keybits = 128 + u * 64; in mbedtls_aes_self_test()
1938 keybits = 128 + u * 64; in mbedtls_aes_self_test()
[all …]
A Dcamellia.c318 unsigned int keybits ) in mbedtls_camellia_setkey_enc() argument
336 switch( keybits ) in mbedtls_camellia_setkey_enc()
344 for( i = 0; i < keybits / 8; ++i ) in mbedtls_camellia_setkey_enc()
347 if( keybits == 192 ) { in mbedtls_camellia_setkey_enc()
383 if( keybits > 128 ) { in mbedtls_camellia_setkey_enc()
400 if( keybits > 128 ) { in mbedtls_camellia_setkey_enc()
408 if( keybits > 128 ) { in mbedtls_camellia_setkey_enc()
427 unsigned int keybits ) in mbedtls_camellia_setkey_dec() argument
440 if( ( ret = mbedtls_camellia_setkey_enc( &cty, key, keybits ) ) != 0 ) in mbedtls_camellia_setkey_dec()
A Daria.c418 const unsigned char *key, unsigned int keybits ) in mbedtls_aria_setkey_enc() argument
433 if( keybits != 128 && keybits != 192 && keybits != 256 ) in mbedtls_aria_setkey_enc()
443 if( keybits >= 192 ) in mbedtls_aria_setkey_enc()
448 if( keybits == 256 ) in mbedtls_aria_setkey_enc()
454 i = ( keybits - 128 ) >> 6; // index: 0, 1, 2 in mbedtls_aria_setkey_enc()
483 const unsigned char *key, unsigned int keybits ) in mbedtls_aria_setkey_dec() argument
489 ret = mbedtls_aria_setkey_enc( ctx, key, keybits ); in mbedtls_aria_setkey_dec()
A Dcmac.c202 const unsigned char *key, size_t keybits ) in mbedtls_cipher_cmac_starts() argument
210 if( ( retval = mbedtls_cipher_setkey( ctx, key, (int)keybits, in mbedtls_cipher_cmac_starts()
756 int keybits, in cmac_test_subkeys() argument
790 if( ( ret = mbedtls_cipher_setkey( &ctx, key, keybits, in cmac_test_subkeys()
849 int keybits, in cmac_test_wth_cipher() argument
874 if( ( ret = mbedtls_cipher_cmac( cipher_info, key, keybits, messages, in cmac_test_wth_cipher()
A Dgcm.c141 unsigned int keybits ) in mbedtls_gcm_setkey() argument
148 GCM_VALIDATE_RET( keybits == 128 || keybits == 192 || keybits == 256 ); in mbedtls_gcm_setkey()
150 cipher_info = mbedtls_cipher_info_from_values( cipher, keybits, in mbedtls_gcm_setkey()
163 if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits, in mbedtls_gcm_setkey()
A Dccm.c70 unsigned int keybits ) in mbedtls_ccm_setkey() argument
78 cipher_info = mbedtls_cipher_info_from_values( cipher, keybits, in mbedtls_ccm_setkey()
91 if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits, in mbedtls_ccm_setkey()
A Dnist_kw.c72 unsigned int keybits, in mbedtls_nist_kw_setkey() argument
79 keybits, in mbedtls_nist_kw_setkey()
104 if( ( ret = mbedtls_cipher_setkey( &ctx->cipher_ctx, key, keybits, in mbedtls_nist_kw_setkey()

Completed in 22 milliseconds