| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/evp/ |
| H A D | e_rc2.c | 29 int key_bits; /* effective key bits */ member 87 key, data(ctx)->key_bits); in rc2_init_key() 125 int key_bits; in rc2_get_asn1_type_and_iv() local 135 key_bits = rc2_magic_to_meth((int)num); in rc2_get_asn1_type_and_iv() 136 if (!key_bits) in rc2_get_asn1_type_and_iv() 140 if (EVP_CIPHER_CTX_ctrl(c, EVP_CTRL_SET_RC2_KEY_BITS, key_bits, in rc2_get_asn1_type_and_iv() 142 || EVP_CIPHER_CTX_set_key_length(c, key_bits / 8) <= 0) in rc2_get_asn1_type_and_iv() 167 data(c)->key_bits = EVP_CIPHER_CTX_key_length(c) * 8; in rc2_ctrl() 171 *(int *)ptr = data(c)->key_bits; in rc2_ctrl() 176 data(c)->key_bits = arg; in rc2_ctrl()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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 = arg; in rc2_ctrl()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/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; \
|
| H A D | cipher_rc2.h | 19 size_t key_bits; member
|
| H A D | cipher_rc2_hw.c | 24 RC2_set_key(ks, (int)ctx->keylen, key, (int)rctx->key_bits); in cipher_hw_rc2_initkey()
|
| /netbsd-src/external/mit/isl/dist/ |
| H A D | isl_hash.c | 164 uint32_t h, key_bits; in isl_hash_table_find() local 166 key_bits = isl_hash_bits(key_hash, table->bits); in isl_hash_table_find() 168 for (h = key_bits; table->entries[h].data; h = (h+1) % size) { in isl_hash_table_find()
|
| /netbsd-src/external/mpl/bind/dist/lib/dns/ |
| H A D | key.c | 238 key->key_bits = bits; 244 return key->key_bits;
|
| H A D | hmac_link.c | 169 key->key_bits = ntohs(*bits); in getkeybits() 436 bits = htons(key->key_bits); in hmac_tofile() 487 key->key_bits = 0; in hmac_parse()
|
| H A D | dst_internal.h | 92 uint16_t key_bits; /*%< hmac digest bits */ 93 uint16_t key_bits; /*%< hmac digest bits */ global() member
|
| /netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/ |
| H A D | key.c | 173 key->key_bits = bits; in dst_key_setbits() 179 return (key->key_bits); in dst_key_getbits()
|
| H A D | hmac_link.c | 160 key->key_bits = ntohs(*bits); in getkeybits() 427 bits = htons(key->key_bits); in hmac_tofile() 478 key->key_bits = 0; in hmac_parse()
|
| H A D | dst_internal.h | 113 uint16_t key_bits; /*%< hmac digest bits */ member
|
| /netbsd-src/external/bsd/wpa/dist/src/wps/ |
| H A D | wps_common.c | 27 u8 i_buf[4], key_bits[4]; in wps_kdf() local 34 WPA_PUT_BE32(key_bits, res_len * 8); in wps_kdf() 42 addr[3] = key_bits; in wps_kdf() 43 len[3] = sizeof(key_bits); in wps_kdf()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/test/ |
| H A D | evp_test.c | 526 size_t key_bits; /* Used by RC2 */ member 638 cdat->key_bits = (size_t)i; in cipher_test_parse() 804 if (expected->key_bits > 0) { in cipher_test_enc() 805 int bits = (int)expected->key_bits; in cipher_test_enc()
|