/linux-2.4.37.9/crypto/ |
D | hmac.c | 24 static void hash_key(struct crypto_tfm *tfm, u8 *key, unsigned int keylen) in hash_key() argument 30 tmp.length = keylen; in hash_key() 56 void crypto_hmac_init(struct crypto_tfm *tfm, u8 *key, unsigned int *keylen) in crypto_hmac_init() argument 62 if (*keylen > crypto_tfm_alg_blocksize(tfm)) { in crypto_hmac_init() 63 hash_key(tfm, key, *keylen); in crypto_hmac_init() 64 *keylen = crypto_tfm_alg_digestsize(tfm); in crypto_hmac_init() 68 memcpy(ipad, key, *keylen); in crypto_hmac_init() 88 unsigned int *keylen, u8 *out) in crypto_hmac_final() argument 94 if (*keylen > crypto_tfm_alg_blocksize(tfm)) { in crypto_hmac_final() 95 hash_key(tfm, key, *keylen); in crypto_hmac_final() [all …]
|
D | blowfish.c | 399 static int bf_setkey(void *ctx, const u8 *key, unsigned int keylen, u32 *flags) in bf_setkey() argument 418 ((u32 )key[(j + 1) % keylen] << 16) | in bf_setkey() 419 ((u32 )key[(j + 2) % keylen] << 8) | in bf_setkey() 420 ((u32 )key[(j + 3) % keylen])); in bf_setkey() 423 j = (j + 4) % keylen; in bf_setkey()
|
D | cipher.c | 129 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey() argument 133 if (keylen < cia->cia_min_keysize || keylen > cia->cia_max_keysize) { in setkey() 137 return cia->cia_setkey(crypto_tfm_ctx(tfm), key, keylen, in setkey()
|
D | digest.c | 60 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey() argument 66 key, keylen, &flags); in setkey()
|
D | michael_mic.c | 145 static int michael_setkey(void *ctx, const u8 *key, unsigned int keylen, in michael_setkey() argument 149 if (keylen != 8) { in michael_setkey()
|
D | serpent.c | 220 static int serpent_setkey(void *ctx, const u8 *key, unsigned int keylen, u32 *flags) in serpent_setkey() argument 227 if ((keylen < SERPENT_MIN_KEY_SIZE) in serpent_setkey() 228 || (keylen > SERPENT_MAX_KEY_SIZE)) in serpent_setkey() 236 for (i = 0; i < keylen; ++i) in serpent_setkey() 496 static int tnepres_setkey(void *ctx, const u8 *key, unsigned int keylen, u32 *flags) in tnepres_setkey() argument 501 if ((keylen < SERPENT_MIN_KEY_SIZE) in tnepres_setkey() 502 || (keylen > SERPENT_MAX_KEY_SIZE)) { in tnepres_setkey() 507 for (i = 0; i < keylen; ++i) in tnepres_setkey() 508 rev_key[keylen - i - 1] = key[i]; in tnepres_setkey() 510 return serpent_setkey(ctx, rev_key, keylen, flags); in tnepres_setkey()
|
D | crypto_null.c | 47 unsigned int keylen, u32 *flags) in null_setkey() argument
|
D | des.c | 1029 static int setkey(u32 *expkey, const u8 *key, unsigned int keylen, u32 *flags) in setkey() argument 1173 static int des_setkey(void *ctx, const u8 *key, unsigned int keylen, u32 *flags) in des_setkey() argument 1175 return setkey(((struct des_ctx *)ctx)->expkey, key, keylen, flags); in des_setkey() 1202 unsigned int keylen, u32 *flags) in des3_ede_setkey() argument
|
/linux-2.4.37.9/fs/hfsplus/ |
D | bfind.c | 18 u16 off, len, keylen; in hfsplus_find_rec() local 27 keylen = hfsplus_brec_keylen(bnode, rec); in hfsplus_find_rec() 28 hfsplus_bnode_readbytes(bnode, fd->key, off, keylen); in hfsplus_find_rec() 43 keylen = hfsplus_brec_keylen(bnode, e); in hfsplus_find_rec() 44 hfsplus_bnode_readbytes(bnode, fd->key, off, keylen); in hfsplus_find_rec() 48 fd->keylength = keylen; in hfsplus_find_rec() 49 fd->entryoffset = off + keylen; in hfsplus_find_rec() 50 fd->entrylength = len - keylen; in hfsplus_find_rec() 131 u16 off, len, keylen; in hfsplus_btree_move() local 177 keylen = hfsplus_brec_keylen(bnode, fd->record); in hfsplus_btree_move() [all …]
|
/linux-2.4.37.9/fs/befs/ |
D | btree.c | 114 int index, u16 * keylen); 341 u16 keylen; in befs_find_key() local 354 thiskey = befs_bt_get_key(sb, node, last, &keylen); in befs_find_key() 356 eq = befs_compare_strings(thiskey, keylen, findkey, findkey_len); in befs_find_key() 371 thiskey = befs_bt_get_key(sb, node, mid, &keylen); in befs_find_key() 372 eq = befs_compare_strings(thiskey, keylen, findkey, in befs_find_key() 424 u16 keylen; in befs_btree_read() local 492 keystart = befs_bt_get_key(sb, this_node, cur_key, &keylen); in befs_btree_read() 494 befs_debug(sb, "Read [%Lu,%d]: keysize %d", node_off, cur_key, keylen); in befs_btree_read() 496 if (bufsize < keylen + 1) { in befs_btree_read() [all …]
|
/linux-2.4.37.9/include/linux/ |
D | crypto.h | 70 unsigned int keylen, u32 *flags); 81 unsigned int keylen, u32 *flags); 136 const u8 *key, unsigned int keylen); 164 const u8 *key, unsigned int keylen); 296 const u8 *key, unsigned int keylen) in crypto_digest_setkey() argument 301 return tfm->crt_digest.dit_setkey(tfm, key, keylen); in crypto_digest_setkey() 305 const u8 *key, unsigned int keylen) in crypto_cipher_setkey() argument 308 return tfm->crt_cipher.cit_setkey(tfm, key, keylen); in crypto_cipher_setkey() 383 void crypto_hmac_init(struct crypto_tfm *tfm, u8 *key, unsigned int *keylen); 387 unsigned int *keylen, u8 *out); [all …]
|
/linux-2.4.37.9/fs/hfs/ |
D | binsert.c | 121 int keylen = tree->bthKeyLen; in add_root() local 153 hfs_put_hs(sizeof(struct NodeDescriptor) + ROUND(1+keylen) + in add_root() 156 key->KeyLen = keylen; in add_root() 158 ((struct hfs_bkey *)bnode_key(left, 1))->value, keylen); in add_root() 161 hfs_put_hs(sizeof(struct NodeDescriptor) + 2*ROUND(1+keylen) + in add_root() 164 key->KeyLen = keylen; in add_root() 166 ((struct hfs_bkey *)bnode_key(right, 1))->value, keylen); in add_root()
|
/linux-2.4.37.9/drivers/isdn/ |
D | isdn_v110.c | 65 FlipBits(unsigned char c, int keylen) in FlipBits() argument 71 int hunks = (8 / keylen); in FlipBits() 75 for (j = 0; j < keylen; j++) { in FlipBits() 77 c |= bit >> (keylen - j - 1); in FlipBits() 79 bit >>= keylen; in FlipBits()
|
/linux-2.4.37.9/net/sctp/ |
D | sm_make_chunk.c | 1254 unsigned int keylen; in sctp_pack_cookie() local 1314 keylen = SCTP_SECRET_SIZE; in sctp_pack_cookie() 1317 sctp_crypto_hmac(sctp_sk(ep->base.sk)->hmac, key, &keylen, in sctp_pack_cookie() 1338 unsigned int keylen, len; in sctp_unpack_cookie() local 1367 keylen = SCTP_SECRET_SIZE; in sctp_unpack_cookie() 1374 sctp_crypto_hmac(sctp_sk(ep->base.sk)->hmac, key, &keylen, &sg, in sctp_unpack_cookie() 1381 sctp_crypto_hmac(sctp_sk(ep->base.sk)->hmac, key, &keylen, in sctp_unpack_cookie()
|
/linux-2.4.37.9/drivers/net/wireless/ |
D | orinoco.c | 1163 int keylen; in __orinoco_hw_setup_wep() local 1167 keylen = le16_to_cpu(priv->keys[priv->tx_key].len); in __orinoco_hw_setup_wep() 1173 if (keylen > LARGE_KEY_SIZE) { in __orinoco_hw_setup_wep() 1175 priv->ndev->name, i, keylen); in __orinoco_hw_setup_wep() 1181 HERMES_BYTES_TO_RECLEN(keylen), in __orinoco_hw_setup_wep()
|
D | airo.c | 1096 void emmh32_setseed(emmh32_context *context, u8 *pkey, int keylen, struct crypto_tfm *); 1432 void emmh32_setseed(emmh32_context *context, u8 *pkey, int keylen, struct crypto_tfm *tfm) in emmh32_setseed() argument 4266 const char *key, u16 keylen, int perm, int lock ) { argument 4271 if (keylen == 0) { 4282 wkr.klen = keylen; 4283 memcpy( wkr.key, key, keylen );
|