Home
last modified time | relevance | path

Searched refs:key_bitlen (Results 1 – 10 of 10) sorted by relevance

/third_party/mbedtls/library/
Dcipher_wrap.c186 unsigned int key_bitlen) in aes_setkey_dec_wrap() argument
188 return mbedtls_aes_setkey_dec((mbedtls_aes_context *) ctx, key, key_bitlen); in aes_setkey_dec_wrap()
192 unsigned int key_bitlen) in aes_setkey_enc_wrap() argument
194 return mbedtls_aes_setkey_enc((mbedtls_aes_context *) ctx, key, key_bitlen); in aes_setkey_enc_wrap()
418 unsigned int key_bitlen) in xts_aes_setkey_enc_wrap() argument
421 return mbedtls_aes_xts_setkey_enc(xts_ctx, key, key_bitlen); in xts_aes_setkey_enc_wrap()
425 unsigned int key_bitlen) in xts_aes_setkey_dec_wrap() argument
428 return mbedtls_aes_xts_setkey_dec(xts_ctx, key, key_bitlen); in xts_aes_setkey_dec_wrap()
506 unsigned int key_bitlen) in gcm_aes_setkey_wrap() argument
509 key, key_bitlen); in gcm_aes_setkey_wrap()
[all …]
Dcipher.c125 int key_bitlen, in mbedtls_cipher_info_from_values() argument
132 def->info->key_bitlen == (unsigned) key_bitlen && in mbedtls_cipher_info_from_values()
256 int key_bitlen, in mbedtls_cipher_setkey() argument
271 size_t const key_bytelen = ((size_t) key_bitlen + 7) / 8; in mbedtls_cipher_setkey()
278 if (key_bitlen % 8 != 0) { in mbedtls_cipher_setkey()
319 ctx->key_bitlen = key_bitlen; in mbedtls_cipher_setkey()
326 (int) ctx->cipher_info->key_bitlen != key_bitlen) { in mbedtls_cipher_setkey()
330 ctx->key_bitlen = key_bitlen; in mbedtls_cipher_setkey()
341 ctx->key_bitlen); in mbedtls_cipher_setkey()
346 ctx->key_bitlen); in mbedtls_cipher_setkey()
Dcipher_wrap.h94 unsigned int key_bitlen);
98 unsigned int key_bitlen);
Dpkcs12.c162 keylen = cipher_info->key_bitlen / 8; in mbedtls_pkcs12_pbe()
Dpkcs5.c186 keylen = cipher_info->key_bitlen / 8; in mbedtls_pkcs5_pbes2()
Dssl_tls13_keys.c1002 key_enc, cipher_info->key_bitlen, in mbedtls_ssl_tls13_populate_transform()
1009 key_dec, cipher_info->key_bitlen, in mbedtls_ssl_tls13_populate_transform()
/third_party/mbedtls/include/mbedtls/
Dcipher.h287 unsigned int MBEDTLS_PRIVATE(key_bitlen);
320 int MBEDTLS_PRIVATE(key_bitlen);
424 int key_bitlen,
482 return info->MBEDTLS_PRIVATE(key_bitlen); in mbedtls_cipher_info_get_key_bitlen()
791 return (int) ctx->MBEDTLS_PRIVATE(cipher_info)->MBEDTLS_PRIVATE(key_bitlen); in mbedtls_cipher_get_key_bitlen()
832 int key_bitlen,
/third_party/mbedtls/tests/suites/
Dtest_suite_cipher.function18 size_t key_bitlen, block_size, iv_size;
32 key_bitlen = mbedtls_cipher_info_get_key_bitlen(info);
36 TEST_ASSERT(key_bitlen == 0);
40 TEST_ASSERT(key_bitlen == 256 ||
41 key_bitlen == 384 ||
42 key_bitlen == 512);
44 TEST_ASSERT(key_bitlen == 192);
48 TEST_ASSERT(key_bitlen == 128);
52 TEST_ASSERT(key_bitlen == 64);
56 TEST_ASSERT(key_bitlen == 128 ||
[all …]
/third_party/mbedtls/tests/src/test_helpers/
Dssl_helpers.c1122 CHK(cipher_info->key_bitlen % 8 == 0); in mbedtls_test_ssl_build_transforms()
1125 keylen = cipher_info->key_bitlen / 8; in mbedtls_test_ssl_build_transforms()
/third_party/mbedtls/
DChangeLog3811 mbedtls_cipher_info_t.key_length -> key_bitlen
3812 mbedtls_cipher_context_t.key_length -> key_bitlen