Home
last modified time | relevance | path

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

/fs/cifs/
Dmd5.c260 hmac_md5_init_rfc2104(unsigned char *key, int key_len,
266 if (key_len > 64) {
271 cifs_MD5_update(&tctx, key, key_len);
275 key_len = 16;
281 memcpy(ctx->k_ipad, key, key_len);
282 memcpy(ctx->k_opad, key, key_len);
299 hmac_md5_init_limK_to_64(const unsigned char *key, int key_len, in hmac_md5_init_limK_to_64() argument
305 if (key_len > 64) in hmac_md5_init_limK_to_64()
306 key_len = 64; in hmac_md5_init_limK_to_64()
311 memcpy(ctx->k_ipad, key, key_len); in hmac_md5_init_limK_to_64()
[all …]
Dmd5.h32 void hmac_md5_init_limK_to_64(const unsigned char *key, int key_len,
/fs/ntfs/
Dindex.c117 int ntfs_index_lookup(const void *key, const int key_len, in ntfs_index_lookup() argument
141 BUG_ON(key_len <= 0); in ntfs_index_lookup()
204 if ((key_len == le16_to_cpu(ie->key_length)) && !memcmp(key, in ntfs_index_lookup()
205 &ie->key, key_len)) { in ntfs_index_lookup()
226 key_len, &ie->key, le16_to_cpu(ie->key_length)); in ntfs_index_lookup()
374 if ((key_len == le16_to_cpu(ie->key_length)) && !memcmp(key, in ntfs_index_lookup()
375 &ie->key, key_len)) { in ntfs_index_lookup()
389 key_len, &ie->key, le16_to_cpu(ie->key_length)); in ntfs_index_lookup()
Dindex.h91 extern int ntfs_index_lookup(const void *key, const int key_len,
/fs/hfsplus/
Dbrec.c57 int size, key_len, rec; in hfs_brec_insert() local
72 key_len = be16_to_cpu(fd->search_key->key_len) + 2; in hfs_brec_insert()
76 size = key_len + entry_len; in hfs_brec_insert()
118 hfs_bnode_write(node, fd->search_key, data_off, key_len); in hfs_brec_insert()
119 hfs_bnode_write(node, entry, data_off + key_len, entry_len); in hfs_brec_insert()
149 key_len = be16_to_cpu(fd->search_key->key_len) + 2; in hfs_brec_insert()
151 fd->search_key->key_len = cpu_to_be16(tree->max_key_len); in hfs_brec_insert()
152 key_len = tree->max_key_len + 2; in hfs_brec_insert()
Dhfsplus_raw.h198 __be16 key_len; member
319 __be16 key_len; member
330 __be16 key_len; member
Dbnode.c61 int key_len; in hfs_bnode_read_key() local
66 key_len = hfs_bnode_read_u16(node, off) + 2; in hfs_bnode_read_key()
68 key_len = tree->max_key_len + 2; in hfs_bnode_read_key()
70 hfs_bnode_read(node, key, off, key_len); in hfs_bnode_read_key()
Dcatalog.c54 key->key_len = cpu_to_be16(6 + 2 * len); in hfsplus_cat_build_key()
67 key->key_len = cpu_to_be16(6 + ustrlen); in hfsplus_cat_build_key_uni()
261 fd.search_key->key_len = cpu_to_be16(6 + len); in hfsplus_delete_cat()
Dextents.c43 key->key_len = cpu_to_be16(HFSPLUS_EXT_KEYLEN - 2); in hfsplus_ext_build_key()
/fs/hfs/
Dbrec.c70 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()
131 hfs_bnode_write(node, fd->search_key, data_off, key_len); in hfs_brec_insert()
132 hfs_bnode_write(node, entry, data_off + key_len, entry_len); in hfs_brec_insert()
162 key_len = fd->search_key->key_len + 1; in hfs_brec_insert()
164 fd->search_key->key_len = tree->max_key_len; in hfs_brec_insert()
165 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
Dbnode.c47 int key_len; in hfs_bnode_read_key() local
52 key_len = hfs_bnode_read_u8(node, off) + 1; in hfs_bnode_read_key()
54 key_len = tree->max_key_len + 1; in hfs_bnode_read_key()
56 hfs_bnode_read(node, key, off, key_len); in hfs_bnode_read_key()
Dcatalog.c29 key->key_len = 6 + key->cat.CName.len; in hfs_cat_build_key()
32 key->key_len = 6; in hfs_cat_build_key()
Dextent.c23 key->key_len = 7; in hfs_ext_build_key()
/fs/ubifs/
Dmisc.h257 return UBIFS_IDX_NODE_SZ + (UBIFS_BRANCH_SZ + c->key_len) * child_cnt; in ubifs_idx_node_sz()
272 (UBIFS_BRANCH_SZ + c->key_len) * bnum); in ubifs_idx_branch()
Dsb.c88 c->key_len = UBIFS_SK_LEN; in create_default_filesystem()
571 c->key_len = UBIFS_SK_LEN; in ubifs_read_superblock()
Dubifs.h1249 int key_len; member
/fs/nfsd/
Dexport.c84 qword_addhex(bpp, blen, (char*)ek->ek_fsid, key_len(ek->ek_fsidtype)); in expkey_request()
130 if (key_len(fsidtype)==0) /* invalid type */ in expkey_parse()
135 if (len != key_len(fsidtype)) in expkey_parse()
201 for (i=0; i < key_len(ek->ek_fsidtype)/4; i++) in expkey_show()
219 memcmp(orig->ek_fsid, new->ek_fsid, key_len(orig->ek_fsidtype)) != 0) in expkey_match()
277 int len = key_len(item->ek_fsidtype); in svc_expkey_lookup()
297 int len = key_len(new->ek_fsidtype); in svc_expkey_update()
788 memcpy(key.ek_fsid, fsidv, key_len(fsid_type)); in exp_find_key()
806 memcpy(key.ek_fsid, fsidv, key_len(fsid_type)); in exp_set_key()
Dnfsfh.c143 len = key_len(fh->fh_fsid_type) / 4; in nfsd_set_fh_dentry()
148 len = key_len(FSID_ENCODE_DEV)/4; in nfsd_set_fh_dentry()
545 len = key_len(fsid_type); in fh_compose()
/fs/xfs/
Dxfs_btree.h145 size_t key_len; member
Dxfs_ialloc_btree.c312 .key_len = sizeof(xfs_inobt_key_t),
Dxfs_alloc_btree.c421 .key_len = sizeof(xfs_alloc_key_t),
Dxfs_btree.c362 (n - 1) * cur->bc_ops->key_len; in xfs_btree_key_offset()
375 cur->bc_ops->get_maxrecs(cur, level) * cur->bc_ops->key_len + in xfs_btree_ptr_offset()
1081 memcpy(dst_key, src_key, numkeys * cur->bc_ops->key_len); in xfs_btree_copy_keys()
1127 dst_key = (char *)key + (dir * cur->bc_ops->key_len); in xfs_btree_shift_keys()
1128 memmove(dst_key, key, numkeys * cur->bc_ops->key_len); in xfs_btree_shift_keys()
Dxfs_bmap_btree.c838 .key_len = sizeof(xfs_bmbt_key_t),