Home
last modified time | relevance | path

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

/linux-2.4.37.9/net/sctp/
Dhashdriver.c62 int key_len = in_key_len; in sctp_hash_digest() local
75 if (key_len > 64) { in sctp_hash_digest()
79 SLA1_Process(&tctx, key, key_len); in sctp_hash_digest()
82 key_len = 20; in sctp_hash_digest()
99 memcpy(k_ipad, key, key_len); in sctp_hash_digest()
100 memcpy(k_opad, key, key_len); in sctp_hash_digest()
/linux-2.4.37.9/crypto/
Daes.c273 aes_set_key(void *ctx_arg, const u8 *in_key, unsigned int key_len, u32 *flags) in aes_set_key() argument
278 if (key_len != 16 && key_len != 24 && key_len != 32) { in aes_set_key()
283 ctx->key_length = key_len; in aes_set_key()
290 switch (key_len) { in aes_set_key()
319 for (i = 4; i < key_len + 24; ++i) { in aes_set_key()
398 const int key_len = ctx->key_length; in aes_decrypt() local
399 const u32 *kp = D_KEY + key_len + 20; in aes_decrypt()
401 b0[0] = u32_in (in) ^ E_KEY[key_len + 24]; in aes_decrypt()
402 b0[1] = u32_in (in + 4) ^ E_KEY[key_len + 25]; in aes_decrypt()
403 b0[2] = u32_in (in + 8) ^ E_KEY[key_len + 26]; in aes_decrypt()
[all …]
Danubis.c45 int key_len; // in bits member
462 unsigned int key_len, u32 *flags) in anubis_setkey() argument
471 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()
Dtwofish.c646 unsigned int key_len, u32 *flags) in twofish_setkey() argument
665 if (key_len != 16 && key_len != 24 && key_len != 32) in twofish_setkey()
692 if (key_len == 24 || key_len == 32) { /* 192- or 256-bit key */ in twofish_setkey()
704 if (key_len == 32) { /* 256-bit key */ in twofish_setkey()
742 } else if (key_len == 24) { /* 192-bit key */ in twofish_setkey()
Dtea.c50 unsigned int key_len, u32 *flags) in tea_setkey() argument
55 if (key_len != 16) in tea_setkey()
128 unsigned int key_len, u32 *flags) in xtea_setkey() argument
133 if (key_len != 16) in xtea_setkey()
Darc4.c27 static int arc4_set_key(void *ctx_arg, const u8 *in_key, unsigned int key_len, u32 *flags) in arc4_set_key() argument
44 if(++k >= key_len) in arc4_set_key()
Dcast6.c385 cast6_setkey(void *ctx, const u8 * in_key, unsigned key_len, u32 * flags) in cast6_setkey() argument
392 if (key_len < 16 || key_len > 32 || key_len % 4 != 0) { in cast6_setkey()
398 memcpy (p_key, in_key, key_len); in cast6_setkey()
Dkhazad.c756 unsigned int key_len, u32 *flags) in khazad_setkey() argument
764 if (key_len != 16) in khazad_setkey()
Dcast5.c782 cast5_setkey(void *ctx, const u8 * key, unsigned key_len, u32 * flags) in cast5_setkey() argument
791 if (key_len < 5 || key_len > 16) { in cast5_setkey()
796 c->rr = key_len <= 10 ? 1 : 0; in cast5_setkey()
799 memcpy(p_key, key, key_len); in cast5_setkey()
/linux-2.4.37.9/net/core/
Dneighbour.c362 int key_len = tbl->key_len; in neigh_lookup() local
370 memcmp(n->primary_key, pkey, key_len) == 0) { in neigh_lookup()
383 int key_len = tbl->key_len; in neigh_lookup_nodev() local
390 if (!memcmp(n->primary_key, pkey, key_len)) { in neigh_lookup_nodev()
405 int key_len = tbl->key_len; in neigh_create() local
412 memcpy(n->primary_key, pkey, key_len); in neigh_create()
439 memcmp(n1->primary_key, pkey, key_len) == 0) { in neigh_create()
461 int key_len = tbl->key_len; in pneigh_lookup() local
463 hash_val = *(u32*)(pkey + key_len - 4); in pneigh_lookup()
472 if (memcmp(n->key, pkey, key_len) == 0 && in pneigh_lookup()
[all …]
/linux-2.4.37.9/fs/hfsplus/
Dhfsplus_raw.h182 u16 key_len; member
305 u16 key_len; member
316 u16 key_len; member
Dbnode.c76 unsigned long key_len; in hfsplus_bnode_read_key() local
81 key_len = hfsplus_bnode_read_u16(node, off) + 2; in hfsplus_bnode_read_key()
83 key_len = tree->max_key_len + 2; in hfsplus_bnode_read_key()
85 hfsplus_bnode_readbytes(node, key, off, key_len); in hfsplus_bnode_read_key()
488 int size, key_len, rec; in hfsplus_bnode_insert_rec() local
504 key_len = be16_to_cpu(fd->search_key->key_len) + 2; in hfsplus_bnode_insert_rec()
505 size = key_len + entry_len; in hfsplus_bnode_insert_rec()
547 hfsplus_bnode_writebytes(node, fd->search_key, data_off, key_len); in hfsplus_bnode_insert_rec()
548 hfsplus_bnode_writebytes(node, entry, data_off + key_len, entry_len); in hfsplus_bnode_insert_rec()
Dcatalog.c39 key->key_len = cpu_to_be16(6 + 2 * len); in hfsplus_fill_cat_key()
52 key->key_len = cpu_to_be16(6 + ustrlen); in hfsplus_fill_cat_key_uni()
214 fd.search_key->key_len = cpu_to_be16(6 + len); in hfsplus_delete_cat()
Dextents.c46 key->key_len = cpu_to_be16(HFSPLUS_EXT_KEYLEN - 2); in hfsplus_fill_ext_key()
/linux-2.4.37.9/include/net/irda/
Dirlan_common.h118 __u8 key_len; member
/linux-2.4.37.9/net/irda/irlan/
Dirlan_client.c340 self->client.key_len); in irlan_client_reconnect_data_channel()
504 self->client.key_len = val_len; in irlan_check_response_param()
/linux-2.4.37.9/include/net/
Dneighbour.h160 int key_len; member
/linux-2.4.37.9/net/sched/
Dsch_teql.c242 memcmp(n->primary_key, mn->primary_key, mn->tbl->key_len) == 0) { in __teql_resolve()
/linux-2.4.37.9/drivers/net/wireless/prism54/
Disl_ioctl.c2038 u16 key_len; member
2073 if (param->u.crypt.key_len > 0) { in prism2_ioctl_set_encryption()
2084 key.length = param->u.crypt.key_len > sizeof (param->u.crypt.key) ? in prism2_ioctl_set_encryption()
2085 sizeof (param->u.crypt.key) : param->u.crypt.key_len; in prism2_ioctl_set_encryption()
/linux-2.4.37.9/net/decnet/
Ddn_neigh.c96 key_len: sizeof(dn_address),
/linux-2.4.37.9/net/ipv4/
Darp.c176 key_len: 4,