• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/sunrpc/auth_gss/

Lines Matching refs:gk5e

166 	if (cksumout->len < kctx->gk5e->cksumlength) {
168 __func__, cksumout->len, kctx->gk5e->name);
181 hmac_md5 = crypto_alloc_hash(kctx->gk5e->cksum_name, 0,
217 err = crypto_hash_setkey(hmac_md5, cksumkey, kctx->gk5e->keylength);
227 memcpy(cksumout->data, checksumdata, kctx->gk5e->cksumlength);
228 cksumout->len = kctx->gk5e->cksumlength;
251 if (kctx->gk5e->ctype == CKSUMTYPE_HMAC_MD5_ARCFOUR)
256 if (cksumout->len < kctx->gk5e->cksumlength) {
258 __func__, cksumout->len, kctx->gk5e->name);
262 desc.tfm = crypto_alloc_hash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC);
271 kctx->gk5e->keylength);
291 switch (kctx->gk5e->ctype) {
293 err = kctx->gk5e->encrypt(kctx->seq, NULL, checksumdata,
298 checksumdata + checksumlen - kctx->gk5e->cksumlength,
299 kctx->gk5e->cksumlength);
302 memcpy(cksumout->data, checksumdata, kctx->gk5e->cksumlength);
308 cksumout->len = kctx->gk5e->cksumlength;
332 if (kctx->gk5e->keyed_cksum == 0) {
334 __func__, kctx->gk5e->name);
339 __func__, kctx->gk5e->name);
343 desc.tfm = crypto_alloc_hash(kctx->gk5e->cksum_name, 0,
350 err = crypto_hash_setkey(desc.tfm, cksumkey, kctx->gk5e->keylength);
371 cksumout->len = kctx->gk5e->cksumlength;
373 switch (kctx->gk5e->ctype) {
377 memcpy(cksumout->data, checksumdata, kctx->gk5e->cksumlength);
670 if (xdr_extend_head(buf, offset, kctx->gk5e->conflen))
672 gss_krb5_make_confounder(buf->head[0].iov_base + offset, kctx->gk5e->conflen);
752 buf->tail[0].iov_len += kctx->gk5e->cksumlength;
753 buf->len += kctx->gk5e->cksumlength;
793 kctx->gk5e->cksumlength));
833 ret = read_bytes_from_xdr_buf(buf, buf->len - kctx->gk5e->cksumlength,
834 pkt_hmac, kctx->gk5e->cksumlength);
838 if (memcmp(pkt_hmac, our_hmac, kctx->gk5e->cksumlength) != 0) {
842 *headskip = kctx->gk5e->conflen;
843 *tailskip = kctx->gk5e->cksumlength;
867 hmac = crypto_alloc_hash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC);
870 __func__, PTR_ERR(hmac), kctx->gk5e->cksum_name);
882 err = crypto_hash_setkey(hmac, kctx->Ksess, kctx->gk5e->keylength);
894 err = crypto_hash_setkey(hmac, Kseq, kctx->gk5e->keylength);
904 err = crypto_blkcipher_setkey(cipher, Kseq, kctx->gk5e->keylength);
934 hmac = crypto_alloc_hash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC);
937 __func__, PTR_ERR(hmac), kctx->gk5e->cksum_name);
949 for (i = 0; i < kctx->gk5e->keylength; i++)
952 err = crypto_hash_setkey(hmac, Kcrypt, kctx->gk5e->keylength);
964 err = crypto_hash_setkey(hmac, Kcrypt, kctx->gk5e->keylength);
979 err = crypto_blkcipher_setkey(cipher, Kcrypt, kctx->gk5e->keylength);