Home
last modified time | relevance | path

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

/mbedtls-3.5.0/include/mbedtls/
Daes.h163 unsigned int keybits);
182 unsigned int keybits);
204 unsigned int keybits);
225 unsigned int keybits);
Dcamellia.h94 unsigned int keybits);
110 unsigned int keybits);
Daria.h111 unsigned int keybits);
130 unsigned int keybits);
Dnist_kw.h100 unsigned int keybits,
Dcmac.h99 const unsigned char *key, size_t keybits);
Dgcm.h111 unsigned int keybits);
Dccm.h131 unsigned int keybits);
/mbedtls-3.5.0/library/
Daes.c559 unsigned int keybits) in mbedtls_aes_setkey_enc() argument
564 switch (keybits) { in mbedtls_aes_setkey_enc()
583 return mbedtls_aesni_setkey_enc((unsigned char *) RK, key, keybits); in mbedtls_aes_setkey_enc()
589 return mbedtls_aesce_setkey_enc((unsigned char *) RK, key, keybits); in mbedtls_aes_setkey_enc()
593 for (i = 0; i < (keybits >> 5); i++) { in mbedtls_aes_setkey_enc()
665 unsigned int keybits) in mbedtls_aes_setkey_dec() argument
678 if ((ret = mbedtls_aes_setkey_enc(&cty, key, keybits)) != 0) { in mbedtls_aes_setkey_dec()
732 unsigned int keybits, in mbedtls_aes_xts_decode_keys() argument
738 const unsigned int half_keybits = keybits / 2; in mbedtls_aes_xts_decode_keys()
741 switch (keybits) { in mbedtls_aes_xts_decode_keys()
[all …]
Dcamellia.c305 unsigned int keybits) in mbedtls_camellia_setkey_enc() argument
320 switch (keybits) { in mbedtls_camellia_setkey_enc()
327 for (i = 0; i < keybits / 8; ++i) { in mbedtls_camellia_setkey_enc()
331 if (keybits == 192) { in mbedtls_camellia_setkey_enc()
371 if (keybits > 128) { in mbedtls_camellia_setkey_enc()
389 if (keybits > 128) { in mbedtls_camellia_setkey_enc()
397 if (keybits > 128) { in mbedtls_camellia_setkey_enc()
416 unsigned int keybits) in mbedtls_camellia_setkey_dec() argument
427 if ((ret = mbedtls_camellia_setkey_enc(&cty, key, keybits)) != 0) { in mbedtls_camellia_setkey_dec()
Daria.c366 const unsigned char *key, unsigned int keybits) in mbedtls_aria_setkey_enc() argument
381 if (keybits != 128 && keybits != 192 && keybits != 256) { in mbedtls_aria_setkey_enc()
392 if (keybits >= 192) { in mbedtls_aria_setkey_enc()
396 if (keybits == 256) { in mbedtls_aria_setkey_enc()
401 i = (keybits - 128) >> 6; // index: 0, 1, 2 in mbedtls_aria_setkey_enc()
429 const unsigned char *key, unsigned int keybits) in mbedtls_aria_setkey_dec() argument
435 ret = mbedtls_aria_setkey_enc(ctx, key, keybits); in mbedtls_aria_setkey_dec()
Dcmac.c174 const unsigned char *key, size_t keybits) in mbedtls_cipher_cmac_starts() argument
184 if ((retval = mbedtls_cipher_setkey(ctx, key, (int) keybits, in mbedtls_cipher_cmac_starts()
740 int keybits, in cmac_test_subkeys() argument
773 if ((ret = mbedtls_cipher_setkey(&ctx, key, keybits, in cmac_test_subkeys()
834 int keybits, in cmac_test_wth_cipher() argument
858 if ((ret = mbedtls_cipher_cmac(cipher_info, key, keybits, messages, in cmac_test_wth_cipher()
Dgcm.c135 unsigned int keybits) in mbedtls_gcm_setkey() argument
140 if (keybits != 128 && keybits != 192 && keybits != 256) { in mbedtls_gcm_setkey()
144 cipher_info = mbedtls_cipher_info_from_values(cipher, keybits, in mbedtls_gcm_setkey()
160 if ((ret = mbedtls_cipher_setkey(&ctx->cipher_ctx, key, keybits, in mbedtls_gcm_setkey()
Dnist_kw.c65 unsigned int keybits, in mbedtls_nist_kw_setkey() argument
72 keybits, in mbedtls_nist_kw_setkey()
101 if ((ret = mbedtls_cipher_setkey(&ctx->cipher_ctx, key, keybits, in mbedtls_nist_kw_setkey()
Dccm.c62 unsigned int keybits) in mbedtls_ccm_setkey() argument
67 cipher_info = mbedtls_cipher_info_from_values(cipher, keybits, in mbedtls_ccm_setkey()
83 if ((ret = mbedtls_cipher_setkey(&ctx->cipher_ctx, key, keybits, in mbedtls_ccm_setkey()
/mbedtls-3.5.0/tests/suites/
Dtest_suite_cmac.function123 int keybits, int block_size,
152 keybits) == 0);
191 data_t *key, int keybits,
236 keybits) == 0);