• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/crypto/

Lines Matching defs:tfm

69 static inline unsigned int blkcipher_done_slow(struct crypto_blkcipher *tfm,
74 unsigned int alignmask = crypto_blkcipher_alignmask(tfm);
106 struct crypto_blkcipher *tfm = desc->tfm;
110 unsigned int bsize = crypto_blkcipher_blocksize(tfm);
116 n = blkcipher_done_slow(tfm, walk, bsize);
134 memcpy(desc->info, walk->iv, crypto_blkcipher_ivsize(tfm));
222 struct crypto_blkcipher *tfm = desc->tfm;
223 unsigned int alignmask = crypto_blkcipher_alignmask(tfm);
224 unsigned int bsize = crypto_blkcipher_blocksize(tfm);
273 struct crypto_blkcipher *tfm,
276 unsigned bs = crypto_blkcipher_blocksize(tfm);
277 unsigned int ivsize = crypto_blkcipher_ivsize(tfm);
314 struct crypto_blkcipher *tfm = desc->tfm;
315 unsigned int alignmask = crypto_blkcipher_alignmask(tfm);
327 int err = blkcipher_copy_iv(walk, tfm, alignmask);
339 static int setkey(struct crypto_tfm *tfm, const u8 *key,
342 struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher;
345 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN;
349 return cipher->setkey(tfm, key, keylen);
352 static int async_setkey(struct crypto_ablkcipher *tfm, const u8 *key,
355 return setkey(crypto_ablkcipher_tfm(tfm), key, keylen);
360 struct crypto_tfm *tfm = req->base.tfm;
361 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher;
363 .tfm = __crypto_blkcipher_cast(tfm),
374 struct crypto_tfm *tfm = req->base.tfm;
375 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher;
377 .tfm = __crypto_blkcipher_cast(tfm),
401 static int crypto_init_blkcipher_ops_async(struct crypto_tfm *tfm)
403 struct ablkcipher_tfm *crt = &tfm->crt_ablkcipher;
404 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher;
414 static int crypto_init_blkcipher_ops_sync(struct crypto_tfm *tfm)
416 struct blkcipher_tfm *crt = &tfm->crt_blkcipher;
417 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher;
418 unsigned long align = crypto_tfm_alg_alignmask(tfm) + 1;
425 addr = (unsigned long)crypto_tfm_ctx(tfm);
427 addr += ALIGN(tfm->__crt_alg->cra_ctxsize, align);
433 static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask)
435 struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher;
443 return crypto_init_blkcipher_ops_sync(tfm);
445 return crypto_init_blkcipher_ops_async(tfm);