Home
last modified time | relevance | path

Searched refs:key_len (Results 1 – 25 of 80) sorted by relevance

1234

/linux-4.19.296/crypto/
Daes_generic.c1218 unsigned int key_len) in crypto_aes_expand_key() argument
1222 if (key_len != AES_KEYSIZE_128 && key_len != AES_KEYSIZE_192 && in crypto_aes_expand_key()
1223 key_len != AES_KEYSIZE_256) in crypto_aes_expand_key()
1226 ctx->key_length = key_len; in crypto_aes_expand_key()
1233 ctx->key_dec[key_len + 24] = ctx->key_enc[0]; in crypto_aes_expand_key()
1234 ctx->key_dec[key_len + 25] = ctx->key_enc[1]; in crypto_aes_expand_key()
1235 ctx->key_dec[key_len + 26] = ctx->key_enc[2]; in crypto_aes_expand_key()
1236 ctx->key_dec[key_len + 27] = ctx->key_enc[3]; in crypto_aes_expand_key()
1238 switch (key_len) { in crypto_aes_expand_key()
1263 ctx->key_dec[0] = ctx->key_enc[key_len + 24]; in crypto_aes_expand_key()
[all …]
Daes_ti.c171 unsigned int key_len) in aesti_expand_key() argument
173 u32 kwords = key_len / sizeof(u32); in aesti_expand_key()
176 if (key_len != AES_KEYSIZE_128 && in aesti_expand_key()
177 key_len != AES_KEYSIZE_192 && in aesti_expand_key()
178 key_len != AES_KEYSIZE_256) in aesti_expand_key()
181 ctx->key_length = key_len; in aesti_expand_key()
195 if (key_len == 24) { in aesti_expand_key()
200 } else if (key_len == 32) { in aesti_expand_key()
216 ctx->key_dec[0] = ctx->key_enc[key_len + 24]; in aesti_expand_key()
217 ctx->key_dec[1] = ctx->key_enc[key_len + 25]; in aesti_expand_key()
[all …]
Drsa_helper.c168 unsigned int key_len) in rsa_parse_pub_key() argument
170 return asn1_ber_decoder(&rsapubkey_decoder, rsa_key, key, key_len); in rsa_parse_pub_key()
187 unsigned int key_len) in rsa_parse_priv_key() argument
189 return asn1_ber_decoder(&rsaprivkey_decoder, rsa_key, key, key_len); in rsa_parse_priv_key()
Dtwofish_common.c583 unsigned int key_len, u32 *flags) in __twofish_setkey() argument
599 if (key_len % 8) in __twofish_setkey()
626 if (key_len == 24 || key_len == 32) { /* 192- or 256-bit key */ in __twofish_setkey()
638 if (key_len == 32) { /* 256-bit key */ in __twofish_setkey()
670 } else if (key_len == 24) { /* 192-bit key */ in __twofish_setkey()
702 int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len) in twofish_setkey() argument
704 return __twofish_setkey(crypto_tfm_ctx(tfm), key, key_len, in twofish_setkey()
Danubis.c46 int key_len; // in bits member
463 unsigned int key_len) in anubis_setkey() argument
472 switch (key_len) { in anubis_setkey()
481 ctx->key_len = key_len * 8; in anubis_setkey()
482 N = ctx->key_len >> 5; in anubis_setkey()
Dsm4_generic.c117 unsigned int key_len) in crypto_sm4_expand_key() argument
123 if (key_len != SM4_KEY_SIZE) in crypto_sm4_expand_key()
157 unsigned int key_len) in crypto_sm4_set_key() argument
163 ret = crypto_sm4_expand_key(ctx, in_key, key_len); in crypto_sm4_set_key()
Darc4.c30 unsigned int key_len) in arc4_set_key() argument
46 if (++k >= key_len) in arc4_set_key()
/linux-4.19.296/include/linux/
Drhashtable.h105 if (!__builtin_constant_p(params.key_len)) in rht_key_get_hash()
106 hash = ht->p.hashfn(key, ht->key_len, hash_rnd); in rht_key_get_hash()
107 else if (params.key_len) { in rht_key_get_hash()
108 unsigned int key_len = params.key_len; in rht_key_get_hash() local
111 hash = params.hashfn(key, key_len, hash_rnd); in rht_key_get_hash()
112 else if (key_len & (sizeof(u32) - 1)) in rht_key_get_hash()
113 hash = jhash(key, key_len, hash_rnd); in rht_key_get_hash()
115 hash = jhash2(key, key_len / sizeof(u32), hash_rnd); in rht_key_get_hash()
117 unsigned int key_len = ht->p.key_len; in rht_key_get_hash() local
120 hash = params.hashfn(key, key_len, hash_rnd); in rht_key_get_hash()
[all …]
Drhashtable-types.h59 u16 key_len; member
85 unsigned int key_len; member
Dccp.h179 u32 key_len; /* In bytes */ member
239 u32 key_len; /* In bytes */ member
350 u32 key_len; /* In bytes */ member
/linux-4.19.296/fs/ntfs/
Dindex.c119 int ntfs_index_lookup(const void *key, const int key_len, in ntfs_index_lookup() argument
143 BUG_ON(key_len <= 0); in ntfs_index_lookup()
206 if ((key_len == le16_to_cpu(ie->key_length)) && !memcmp(key, in ntfs_index_lookup()
207 &ie->key, key_len)) { in ntfs_index_lookup()
228 key_len, &ie->key, le16_to_cpu(ie->key_length)); in ntfs_index_lookup()
376 if ((key_len == le16_to_cpu(ie->key_length)) && !memcmp(key, in ntfs_index_lookup()
377 &ie->key, key_len)) { in ntfs_index_lookup()
391 key_len, &ie->key, le16_to_cpu(ie->key_length)); in ntfs_index_lookup()
/linux-4.19.296/drivers/s390/crypto/
Dzcrypt_cca_key.h188 int short_len, long_len, pad_len, key_len, size; in zcrypt_type6_crt_key() local
204 key_len = 3*long_len + 2*short_len + pad_len + crt->inputdatalength; in zcrypt_type6_crt_key()
205 size = sizeof(*key) + key_len + sizeof(*pub) + 3; in zcrypt_type6_crt_key()
217 key->pvt.section_length = sizeof(key->pvt) + key_len; in zcrypt_type6_crt_key()
238 pub = (struct cca_public_sec *)(key->key_parts + key_len); in zcrypt_type6_crt_key()
/linux-4.19.296/include/crypto/
Dtwofish.h22 unsigned int key_len, u32 *flags);
23 int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len);
Dsm4.h24 unsigned int key_len);
26 unsigned int key_len);
Daes.h37 unsigned int key_len);
39 unsigned int key_len);
Dblowfish.h22 unsigned int key_len);
/linux-4.19.296/include/crypto/internal/
Drsa.h56 unsigned int key_len);
59 unsigned int key_len);
/linux-4.19.296/fs/hfsplus/
Dbrec.c67 int size, key_len, rec; in hfs_brec_insert() local
83 key_len = be16_to_cpu(fd->search_key->key_len) + 2; in hfs_brec_insert()
87 size = key_len + entry_len; in hfs_brec_insert()
132 hfs_bnode_write(node, fd->search_key, data_off, key_len); in hfs_brec_insert()
133 hfs_bnode_write(node, entry, data_off + key_len, entry_len); in hfs_brec_insert()
167 key_len = be16_to_cpu(fd->search_key->key_len) + 2; in hfs_brec_insert()
169 fd->search_key->key_len = in hfs_brec_insert()
171 key_len = tree->max_key_len + 2; in hfs_brec_insert()
Dhfsplus_raw.h214 __be16 key_len; member
340 __be16 key_len; member
358 __be16 key_len; member
402 __be16 key_len; member
/linux-4.19.296/fs/hfs/
Dbrec.c69 int size, key_len, rec; in hfs_brec_insert() local
85 key_len = (fd->search_key->key_len | 1) + 1; in hfs_brec_insert()
89 size = key_len + entry_len; in hfs_brec_insert()
132 hfs_bnode_write(node, fd->search_key, data_off, key_len); in hfs_brec_insert()
133 hfs_bnode_write(node, entry, data_off + key_len, entry_len); in hfs_brec_insert()
166 key_len = fd->search_key->key_len + 1; in hfs_brec_insert()
168 fd->search_key->key_len = tree->max_key_len; in hfs_brec_insert()
169 key_len = tree->max_key_len + 1; in hfs_brec_insert()
Dhfs.h150 u8 key_len; /* number of bytes in the key */ member
158 u8 key_len; /* number of bytes in the key */ member
165 u8 key_len; /* number of bytes in the key */ member
/linux-4.19.296/fs/fscache/
Dcookie.c52 pr_err("%c-key=[%u] '", prefix, cookie->key_len); in fscache_print_cookie()
53 k = (cookie->key_len <= sizeof(cookie->inline_key)) ? in fscache_print_cookie()
55 for (loop = 0; loop < cookie->key_len; loop++) in fscache_print_cookie()
66 if (cookie->key_len > sizeof(cookie->inline_key)) in fscache_free_cookie()
109 if (a->key_len != b->key_len) in fscache_compare_cookie()
110 return (long)a->key_len - (long)b->key_len; in fscache_compare_cookie()
114 if (a->key_len <= sizeof(a->inline_key)) { in fscache_compare_cookie()
121 return memcmp(ka, kb, a->key_len); in fscache_compare_cookie()
142 cookie->key_len = index_key_len; in fscache_alloc_cookie()
/linux-4.19.296/fs/cifs/
Dfscache.c49 uint16_t key_len = sizeof(key.hdr); in cifs_fscache_get_client_cookie() local
62 key_len += sizeof(key.ipv4_addr); in cifs_fscache_get_client_cookie()
68 key_len += sizeof(key.ipv6_addr); in cifs_fscache_get_client_cookie()
80 &key, key_len, in cifs_fscache_get_client_cookie()
/linux-4.19.296/fs/ubifs/
Dmisc.h200 return UBIFS_IDX_NODE_SZ + (UBIFS_BRANCH_SZ + c->key_len) * child_cnt; in ubifs_idx_node_sz()
215 (UBIFS_BRANCH_SZ + c->key_len) * bnum); in ubifs_idx_branch()
/linux-4.19.296/include/keys/
Dtrusted-type.h25 unsigned int key_len; member

1234