/third_party/mbedtls/include/psa/ |
H A D | crypto_sizes.h | 175 * \param key_bits The size of the AEAD key in bits. 188 #define PSA_AEAD_TAG_LENGTH(key_type, key_bits, alg) \ 191 ((void) (key_bits), 0u)) 195 * See also #PSA_AEAD_TAG_LENGTH(\p key_type, \p key_bits, \p alg). 316 * \param key_bits The size of the MAC key in bits. 328 #define PSA_MAC_LENGTH(key_type, key_bits, alg) \ 332 ((void) (key_type), (void) (key_bits), 0u)) 634 * \param key_bits The size of the key in bits. 646 #define PSA_SIGN_OUTPUT_SIZE(key_type, key_bits, alg) \ 647 (PSA_KEY_TYPE_IS_RSA(key_type) ? ((void) alg, PSA_BITS_TO_BYTES(key_bits)) [all...] |
/third_party/node/deps/openssl/openssl/crypto/evp/ |
H A D | e_rc2.c | 36 int key_bits; /* effective key bits */ member 96 key, data(ctx)->key_bits); in rc2_init_key() 134 int key_bits; in rc2_get_asn1_type_and_iv() local 144 key_bits = rc2_magic_to_meth((int)num); in rc2_get_asn1_type_and_iv() 145 if (!key_bits) in rc2_get_asn1_type_and_iv() 149 if (EVP_CIPHER_CTX_ctrl(c, EVP_CTRL_SET_RC2_KEY_BITS, key_bits, in rc2_get_asn1_type_and_iv() 151 || EVP_CIPHER_CTX_set_key_length(c, key_bits / 8) <= 0) in rc2_get_asn1_type_and_iv() 174 data(c)->key_bits = EVP_CIPHER_CTX_get_key_length(c) * 8; in rc2_ctrl() 178 *(int *)ptr = data(c)->key_bits; in rc2_ctrl() 183 data(c)->key_bits in rc2_ctrl() [all...] |
/third_party/openssl/crypto/evp/ |
H A D | e_rc2.c | 36 int key_bits; /* effective key bits */ member 96 key, data(ctx)->key_bits); in rc2_init_key() 134 int key_bits; in rc2_get_asn1_type_and_iv() local 144 key_bits = rc2_magic_to_meth((int)num); in rc2_get_asn1_type_and_iv() 145 if (!key_bits) in rc2_get_asn1_type_and_iv() 149 if (EVP_CIPHER_CTX_ctrl(c, EVP_CTRL_SET_RC2_KEY_BITS, key_bits, in rc2_get_asn1_type_and_iv() 151 || EVP_CIPHER_CTX_set_key_length(c, key_bits / 8) <= 0) in rc2_get_asn1_type_and_iv() 174 data(c)->key_bits = EVP_CIPHER_CTX_get_key_length(c) * 8; in rc2_ctrl() 178 *(int *)ptr = data(c)->key_bits; in rc2_ctrl() 183 data(c)->key_bits in rc2_ctrl() [all...] |
/third_party/mbedtls/programs/psa/ |
H A D | aead_demo.c | 136 /* Convert arg to alg + key_bits + key_type */ in aead_prepare() 137 size_t key_bits; in aead_prepare() local 141 key_bits = 128; in aead_prepare() 145 key_bits = 256; in aead_prepare() 149 key_bits = 128; in aead_prepare() 153 key_bits = 256; in aead_prepare() 165 psa_set_key_bits(&attributes, key_bits); // optional in aead_prepare() 168 PSA_CHECK(psa_import_key(&attributes, key_bytes, key_bits / 8, key)); in aead_prepare() 185 size_t key_bits = psa_get_key_bits(&attr); in aead_info() local 187 size_t tag_len = PSA_AEAD_TAG_LENGTH(key_type, key_bits, al in aead_info() [all...] |
H A D | crypto_examples.c | 162 key_bits = 256, in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() enumerator 183 psa_set_key_bits(&attributes, key_bits); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() 210 key_bits = 256, in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() enumerator 231 psa_set_key_bits(&attributes, key_bits); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() 258 key_bits = 256, in cipher_example_encrypt_decrypt_aes_ctr_multi() enumerator 278 psa_set_key_bits(&attributes, key_bits); in cipher_example_encrypt_decrypt_aes_ctr_multi()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-cache.hh | 35 template <unsigned int key_bits, unsigned int value_bits, unsigned int cache_bits> 38 static_assert ((key_bits >= cache_bits), ""); 39 static_assert ((key_bits + value_bits - cache_bits <= 8 * sizeof (hb_atomic_int_t)), ""); 55 if ((key_bits + value_bits - cache_bits == 8 * sizeof (hb_atomic_int_t) && v == (unsigned int) -1) || in get() 64 if (unlikely ((key >> key_bits) || (value >> value_bits))) in set()
|
/third_party/ffmpeg/libavutil/ |
H A D | camellia.c | 50 int key_bits; member 198 if (cs->key_bits == 128) { in generate_round_keys() 265 if (cs->key_bits != 128) { in camellia_encrypt() 288 if (cs->key_bits != 128) { in camellia_decrypt() 356 av_cold int av_camellia_init(AVCAMELLIA *cs, const uint8_t *key, int key_bits) in av_camellia_init() argument 360 if (key_bits != 128 && key_bits != 192 && key_bits != 256) in av_camellia_init() 364 cs->key_bits = key_bits; in av_camellia_init() [all...] |
H A D | rc4.c | 34 int av_rc4_init(AVRC4 *r, const uint8_t *key, int key_bits, int decrypt) { in av_rc4_init() argument 38 int keylen = key_bits >> 3; in av_rc4_init() 39 if (key_bits & 7) in av_rc4_init()
|
H A D | aes.c | 199 int av_aes_init(AVAES *a, const uint8_t *key, int key_bits, int decrypt) in av_aes_init() argument 203 int KC = key_bits >> 5; in av_aes_init() 232 if (key_bits != 128 && key_bits != 192 && key_bits != 256) in av_aes_init()
|
H A D | aes.h | 45 * @param key_bits 128, 192 or 256 48 int av_aes_init(struct AVAES *a, const uint8_t *key, int key_bits, int decrypt);
|
/third_party/mbedtls/library/ |
H A D | psa_crypto_cipher.c | 129 size_t *key_bits, in mbedtls_cipher_values_from_psa() 134 /* Only DES modifies key_bits */ in mbedtls_cipher_values_from_psa() 136 (void) key_bits; in mbedtls_cipher_values_from_psa() 222 /* key_bits is 64 for Single-DES, 128 for two-key Triple-DES, in mbedtls_cipher_values_from_psa() 224 if (*key_bits == 64) { in mbedtls_cipher_values_from_psa() 232 if (*key_bits == 128) { in mbedtls_cipher_values_from_psa() 233 *key_bits = 192; in mbedtls_cipher_values_from_psa() 261 size_t key_bits, in mbedtls_cipher_info_from_psa() 268 status = mbedtls_cipher_values_from_psa(alg, key_type, &key_bits, &mode, &cipher_id_tmp); in mbedtls_cipher_info_from_psa() 276 return mbedtls_cipher_info_from_values(cipher_id_tmp, (int) key_bits, mod in mbedtls_cipher_info_from_psa() 126 mbedtls_cipher_values_from_psa( psa_algorithm_t alg, psa_key_type_t key_type, size_t *key_bits, mbedtls_cipher_mode_t *mode, mbedtls_cipher_id_t *cipher_id) mbedtls_cipher_values_from_psa() argument 258 mbedtls_cipher_info_from_psa( psa_algorithm_t alg, psa_key_type_t key_type, size_t key_bits, mbedtls_cipher_id_t *cipher_id) mbedtls_cipher_info_from_psa() argument 290 size_t key_bits; psa_cipher_setup() local [all...] |
H A D | ssl_ticket.c | 96 psa_set_key_bits(&attributes, key->key_bits); in ssl_ticket_gen_key() 100 PSA_BITS_TO_BYTES(key->key_bits), in ssl_ticket_gen_key() 166 const size_t bitlen = key->key_bits; in mbedtls_ssl_ticket_rotate() 185 psa_set_key_bits(&attributes, key->key_bits); in mbedtls_ssl_ticket_rotate() 188 PSA_BITS_TO_BYTES(key->key_bits), in mbedtls_ssl_ticket_rotate() 220 size_t key_bits; in mbedtls_ssl_ticket_setup() local 231 &alg, &key_type, &key_bits) != PSA_SUCCESS) { in mbedtls_ssl_ticket_setup() 247 key_bits = mbedtls_cipher_info_get_key_bitlen(cipher_info); in mbedtls_ssl_ticket_setup() 250 if (key_bits > 8 * MAX_KEY_BYTES) { in mbedtls_ssl_ticket_setup() 262 ctx->keys[0].key_bits in mbedtls_ssl_ticket_setup() [all...] |
H A D | psa_crypto_driver_wrappers_no_static.c | 92 size_t key_bits = psa_get_key_bits(attributes); in psa_driver_wrapper_get_key_buffer_size() local 110 key_bits ); in psa_driver_wrapper_get_key_buffer_size() 117 (void)key_bits; in psa_driver_wrapper_get_key_buffer_size()
|
H A D | psa_crypto_cipher.h | 21 * \param[in,out] key_bits Size of the key in bits. The value provided in input 26 * \return On success \c PSA_SUCCESS is returned and key_bits, mode and cipher_id 33 size_t *key_bits, mbedtls_cipher_mode_t *mode, 43 * \param key_bits Size of the key in bits 50 psa_algorithm_t alg, psa_key_type_t key_type, size_t key_bits,
|
H A D | psa_crypto_aead.c | 36 size_t key_bits = attributes->bits; in psa_aead_setup() local 40 &key_bits, &mode, &cipher_id); in psa_aead_setup() 59 key_buffer, (unsigned int) key_bits)); in psa_aead_setup() 79 key_buffer, (unsigned int) key_bits)); in psa_aead_setup()
|
/third_party/mbedtls/tests/src/test_helpers/ |
H A D | ssl_helpers.c | 1135 size_t *key_bits, size_t *iv_len) in mbedtls_test_ssl_cipher_info_from_type() 1140 *key_bits = 128; in mbedtls_test_ssl_cipher_info_from_type() 1145 *key_bits = 256; in mbedtls_test_ssl_cipher_info_from_type() 1150 *key_bits = 128; in mbedtls_test_ssl_cipher_info_from_type() 1155 *key_bits = 256; in mbedtls_test_ssl_cipher_info_from_type() 1160 *key_bits = 128; in mbedtls_test_ssl_cipher_info_from_type() 1165 *key_bits = 256; in mbedtls_test_ssl_cipher_info_from_type() 1171 *key_bits = 128; in mbedtls_test_ssl_cipher_info_from_type() 1176 *key_bits = 192; in mbedtls_test_ssl_cipher_info_from_type() 1181 *key_bits in mbedtls_test_ssl_cipher_info_from_type() 1133 mbedtls_test_ssl_cipher_info_from_type(mbedtls_cipher_type_t cipher_type, mbedtls_cipher_mode_t *cipher_mode, size_t *key_bits, size_t *iv_len) mbedtls_test_ssl_cipher_info_from_type() argument 1259 size_t key_bits = 0; mbedtls_test_ssl_build_transforms() local [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/ |
H A D | cipher_rc2.c | 116 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->key_bits)) { in rc2_get_ctx_params() 138 num = rc2_keybits_to_magic(ctx->key_bits); in rc2_get_ctx_params() 174 if (!OSSL_PARAM_get_size_t(p, &ctx->key_bits)) { in rc2_set_ctx_params() 194 || (ctx->key_bits = rc2_magic_to_keybits(num)) == 0) { in rc2_set_ctx_params() 206 ctx->base.keylen = ctx->key_bits / 8; in rc2_set_ctx_params() 242 ctx->key_bits = kbits; \
|
/third_party/openssl/providers/implementations/ciphers/ |
H A D | cipher_rc2.c | 116 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->key_bits)) { in rc2_get_ctx_params() 138 num = rc2_keybits_to_magic(ctx->key_bits); in rc2_get_ctx_params() 174 if (!OSSL_PARAM_get_size_t(p, &ctx->key_bits)) { in rc2_set_ctx_params() 194 || (ctx->key_bits = rc2_magic_to_keybits(num)) == 0) { in rc2_set_ctx_params() 206 ctx->base.keylen = ctx->key_bits / 8; in rc2_set_ctx_params() 242 ctx->key_bits = kbits; \
|
/third_party/mesa3d/src/amd/vulkan/radix_sort/ |
H A D | radix_sort_vk.c | 507 if ((info->count <= 1) || (info->key_bits == 0)) in radix_sort_vk_sort_devaddr() 577 uint32_t const key_bits = MIN_MACRO(uint32_t, info->key_bits, keyval_bits); in radix_sort_vk_sort_devaddr() local 578 uint32_t const passes = (key_bits + RS_RADIX_LOG2 - 1) / RS_RADIX_LOG2; in radix_sort_vk_sort_devaddr() 835 if (info->key_bits == 0) in radix_sort_vk_sort_indirect_devaddr() 906 uint32_t const key_bits = MIN_MACRO(uint32_t, info->key_bits, keyval_bits); in radix_sort_vk_sort_indirect_devaddr() local 907 uint32_t const passes = (key_bits + RS_RADIX_LOG2 - 1) / RS_RADIX_LOG2; in radix_sort_vk_sort_indirect_devaddr() 1195 .key_bits = info->key_bits, in radix_sort_vk_sort() [all...] |
H A D | radix_sort_vk_devaddr.h | 52 uint32_t key_bits; member 76 uint32_t key_bits; member
|
H A D | radix_sort_vk.h | 255 // Using a key size of `key_bits`, sort `count` keyvals found in the 261 // The number of internal sorting passes is determined by `.key_bits`. 269 // A keyval's `key_bits` are the most significant bits of a keyval. 297 uint32_t key_bits; member 315 // Using a key size of `key_bits`, at pipeline execution time, load keyvals 321 // The number of internal sorting passes is determined by `.key_bits`. 329 // A keyval's `key_bits` are the most significant bits of a keyval. 357 uint32_t key_bits; member
|
/third_party/ffmpeg/libavutil/tests/ |
H A D | cast5.c | 50 static const int key_bits[3] = {128, 80, 40}; in main() local 58 av_cast5_init(cs, Key[j], key_bits[j]); in main() 93 av_cast5_init(cs, Key[j], key_bits[j]); in main()
|
/third_party/mbedtls/tests/include/test/ |
H A D | psa_crypto_helpers.h | 249 * \param key_bits Key length in number of bits. 259 #define MBEDTLS_TEST_PSA_SKIP_IF_ALT_AES_192(key_type, key_bits) \ 264 (key_bits == 192)) \
|
/third_party/mbedtls/programs/cipher/ |
H A D | cipher_aead_demo.c | 174 int key_bits = mbedtls_cipher_get_key_bitlen(ctx); in aead_info() local 182 ciph, key_bits, mode_str, (unsigned) tag_len); in aead_info()
|
/third_party/mbedtls/tests/src/ |
H A D | psa_exercise_key.c | 635 size_t key_bits; in mbedtls_test_psa_key_agreement_with_self() local 649 key_bits = psa_get_key_bits(&attributes); in mbedtls_test_psa_key_agreement_with_self() 651 public_key_length = PSA_EXPORT_PUBLIC_KEY_OUTPUT_SIZE(public_key_type, key_bits); in mbedtls_test_psa_key_agreement_with_self() 690 size_t key_bits; in mbedtls_test_psa_raw_key_agreement_with_self() local 706 key_bits = psa_get_key_bits(&attributes); in mbedtls_test_psa_raw_key_agreement_with_self() 708 public_key_length = PSA_EXPORT_PUBLIC_KEY_OUTPUT_SIZE(public_key_type, key_bits); in mbedtls_test_psa_raw_key_agreement_with_self() 731 key_bits)); in mbedtls_test_psa_raw_key_agreement_with_self() 806 size_t key_bits = psa_get_key_bits(&attributes); in exercise_key_agreement_key() local 809 if (PSA_BITS_TO_BYTES(key_bits) != PSA_HASH_LENGTH(hash_alg)) { in exercise_key_agreement_key()
|