Lines Matching refs:klen
232 ccp_init_hmac_digest(struct ccp_session *s, const char *key, int klen) in ccp_init_hmac_digest() argument
243 if (klen > axf->blocksize) { in ccp_init_hmac_digest()
245 axf->Update(&auth_ctx, key, klen); in ccp_init_hmac_digest()
248 klen = axf->hashsize; in ccp_init_hmac_digest()
250 memcpy(s->hmac.ipad, key, klen); in ccp_init_hmac_digest()
252 memset(s->hmac.ipad + klen, 0, axf->blocksize - klen); in ccp_init_hmac_digest()
262 ccp_aes_check_keylen(int alg, int klen) in ccp_aes_check_keylen() argument
265 switch (klen * 8) { in ccp_aes_check_keylen()
284 ccp_aes_setkey(struct ccp_session *s, int alg, const void *key, int klen) in ccp_aes_setkey() argument
289 kbits = (klen / 2) * 8; in ccp_aes_setkey()
291 kbits = klen * 8; in ccp_aes_setkey()
307 s->blkcipher.key_len = klen; in ccp_aes_setkey()