/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | aes.c | 74 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 D | aes.h | 180 unsigned int keybits ); 199 unsigned int keybits ); 221 unsigned int keybits ); 242 unsigned int keybits );
|
A D | camellia.h | 106 unsigned int keybits ); 122 unsigned int keybits );
|
A D | aria.h | 127 unsigned int keybits ); 146 unsigned int keybits );
|
A D | nist_kw.h | 104 unsigned int keybits,
|
A D | cmac.h | 120 const unsigned char *key, size_t keybits );
|
A D | blowfish.h | 110 unsigned int keybits );
|
A D | ccm.h | 114 unsigned int keybits );
|
A D | gcm.h | 118 unsigned int keybits );
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | blowfish.c | 150 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 D | aes.c | 529 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 D | camellia.c | 318 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 D | aria.c | 418 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 D | cmac.c | 202 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 D | gcm.c | 141 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 D | ccm.c | 70 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 D | nist_kw.c | 72 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()
|