tfm 13 arch/x86/crypto/aes_glue.c aes_enc_blk(tfm, dst, src); tfm 18 arch/x86/crypto/aes_glue.c aes_dec_blk(tfm, dst, src); tfm 141 arch/x86/crypto/crc32c-intel.c u32 *key = crypto_tfm_ctx(tfm); tfm 145 arch/x86/crypto/crc32c-intel.c tfm->crt_ahash.reqsize = sizeof(u32); tfm 48 arch/x86/crypto/salsa20_glue.c struct salsa20_ctx *ctx = crypto_tfm_ctx(tfm); tfm 58 arch/x86/crypto/salsa20_glue.c struct crypto_blkcipher *tfm = desc->tfm; tfm 59 arch/x86/crypto/salsa20_glue.c struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); tfm 52 arch/x86/crypto/twofish_glue.c twofish_enc_blk(tfm, dst, src); tfm 57 arch/x86/crypto/twofish_glue.c twofish_dec_blk(tfm, dst, src); tfm 31 crypto/ablkcipher.c struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm); tfm 32 crypto/ablkcipher.c unsigned long alignmask = crypto_ablkcipher_alignmask(tfm); tfm 44 crypto/ablkcipher.c ret = cipher->setkey(tfm, alignbuffer, keylen); tfm 53 crypto/ablkcipher.c struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm); tfm 54 crypto/ablkcipher.c unsigned long alignmask = crypto_ablkcipher_alignmask(tfm); tfm 57 crypto/ablkcipher.c crypto_ablkcipher_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); tfm 62 crypto/ablkcipher.c return setkey_unaligned(tfm, key, keylen); tfm 64 crypto/ablkcipher.c return cipher->setkey(tfm, key, keylen); tfm 86 crypto/ablkcipher.c struct ablkcipher_alg *alg = &tfm->__crt_alg->cra_ablkcipher; tfm 87 crypto/ablkcipher.c struct ablkcipher_tfm *crt = &tfm->crt_ablkcipher; tfm 99 crypto/ablkcipher.c crt->base = __crypto_ablkcipher_cast(tfm); tfm 138 crypto/ablkcipher.c struct ablkcipher_alg *alg = &tfm->__crt_alg->cra_ablkcipher; tfm 139 crypto/ablkcipher.c struct ablkcipher_tfm *crt = &tfm->crt_ablkcipher; tfm 144 crypto/ablkcipher.c crt->setkey = tfm->__crt_alg->cra_flags & CRYPTO_ALG_GENIV ? tfm 150 crypto/ablkcipher.c crt->base = __crypto_ablkcipher_cast(tfm); tfm 310 crypto/ablkcipher.c struct crypto_tfm *tfm; tfm 325 crypto/ablkcipher.c tfm = __crypto_alloc_tfm(alg, type, mask); tfm 326 crypto/ablkcipher.c if (!IS_ERR(tfm)) tfm 327 crypto/ablkcipher.c return __crypto_ablkcipher_cast(tfm); tfm 330 crypto/ablkcipher.c err = PTR_ERR(tfm); tfm 29 crypto/aead.c struct aead_alg *aead = crypto_aead_alg(tfm); tfm 30 crypto/aead.c unsigned long alignmask = crypto_aead_alignmask(tfm); tfm 42 crypto/aead.c ret = aead->setkey(tfm, alignbuffer, keylen); tfm 50 crypto/aead.c struct aead_alg *aead = crypto_aead_alg(tfm); tfm 51 crypto/aead.c unsigned long alignmask = crypto_aead_alignmask(tfm); tfm 54 crypto/aead.c return setkey_unaligned(tfm, key, keylen); tfm 56 crypto/aead.c return aead->setkey(tfm, key, keylen); tfm 61 crypto/aead.c struct aead_tfm *crt = crypto_aead_crt(tfm); tfm 64 crypto/aead.c if (authsize > crypto_aead_alg(tfm)->maxauthsize) tfm 67 crypto/aead.c if (crypto_aead_alg(tfm)->setauthsize) { tfm 68 crypto/aead.c err = crypto_aead_alg(tfm)->setauthsize(crt->base, authsize); tfm 92 crypto/aead.c struct aead_alg *alg = &tfm->__crt_alg->cra_aead; tfm 93 crypto/aead.c struct aead_tfm *crt = &tfm->crt_aead; tfm 98 crypto/aead.c crt->setkey = tfm->__crt_alg->cra_flags & CRYPTO_ALG_GENIV ? tfm 104 crypto/aead.c crt->base = __crypto_aead_cast(tfm); tfm 147 crypto/aead.c struct aead_alg *alg = &tfm->__crt_alg->cra_aead; tfm 148 crypto/aead.c struct aead_tfm *crt = &tfm->crt_aead; tfm 160 crypto/aead.c crt->base = __crypto_aead_cast(tfm); tfm 316 crypto/aead.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 323 crypto/aead.c tfm->crt_aead.base = aead; tfm 324 crypto/aead.c tfm->crt_aead.reqsize += crypto_aead_reqsize(aead); tfm 332 crypto/aead.c crypto_free_aead(tfm->crt_aead.base); tfm 451 crypto/aead.c struct crypto_tfm *tfm; tfm 468 crypto/aead.c tfm = __crypto_alloc_tfm(alg, type, mask); tfm 469 crypto/aead.c if (!IS_ERR(tfm)) tfm 470 crypto/aead.c return __crypto_aead_cast(tfm); tfm 473 crypto/aead.c err = PTR_ERR(tfm); tfm 314 crypto/aes_generic.c struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 315 crypto/aes_generic.c u32 *flags = &tfm->crt_flags; tfm 360 crypto/aes_generic.c const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 432 crypto/aes_generic.c const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); tfm 118 crypto/ahash.c struct ahash_alg *ahash = crypto_ahash_alg(tfm); tfm 119 crypto/ahash.c unsigned long alignmask = crypto_ahash_alignmask(tfm); tfm 131 crypto/ahash.c ret = ahash->setkey(tfm, alignbuffer, keylen); tfm 140 crypto/ahash.c struct ahash_alg *ahash = crypto_ahash_alg(tfm); tfm 141 crypto/ahash.c unsigned long alignmask = crypto_ahash_alignmask(tfm); tfm 144 crypto/ahash.c return ahash_setkey_unaligned(tfm, key, keylen); tfm 146 crypto/ahash.c return ahash->setkey(tfm, key, keylen); tfm 157 crypto/ahash.c struct ahash_alg *alg = &tfm->__crt_alg->cra_ahash; tfm 158 crypto/ahash.c struct ahash_tfm *crt = &tfm->crt_ahash; tfm 500 crypto/algapi.c struct crypto_tfm *tfm; tfm 515 crypto/algapi.c tfm = ERR_PTR(-EINVAL); tfm 519 crypto/algapi.c tfm = __crypto_alloc_tfm(alg, type, mask); tfm 520 crypto/algapi.c if (IS_ERR(tfm)) tfm 523 crypto/algapi.c return tfm; tfm 527 crypto/algapi.c return tfm; tfm 715 crypto/algapi.c if (req->tfm == tfm) tfm 54 crypto/ansi_cprng.c struct crypto_cipher *tfm; tfm 157 crypto/ansi_cprng.c crypto_cipher_encrypt_one(ctx->tfm, output, tmp); tfm 268 crypto/ansi_cprng.c crypto_free_cipher(ctx->tfm); tfm 300 crypto/ansi_cprng.c if (ctx->tfm) tfm 301 crypto/ansi_cprng.c crypto_free_cipher(ctx->tfm); tfm 303 crypto/ansi_cprng.c ctx->tfm = crypto_alloc_cipher("aes", 0, 0); tfm 304 crypto/ansi_cprng.c if (IS_ERR(ctx->tfm)) { tfm 307 crypto/ansi_cprng.c ctx->tfm = NULL; tfm 313 crypto/ansi_cprng.c ret = crypto_cipher_setkey(ctx->tfm, prng_key, klen); tfm 316 crypto/ansi_cprng.c crypto_cipher_get_flags(ctx->tfm)); tfm 317 crypto/ansi_cprng.c crypto_free_cipher(ctx->tfm); tfm 332 crypto/ansi_cprng.c struct prng_context *ctx = crypto_tfm_ctx(tfm); tfm 341 crypto/ansi_cprng.c free_prng_context(crypto_tfm_ctx(tfm)); tfm 347 crypto/ansi_cprng.c struct prng_context *prng = crypto_rng_ctx(tfm); tfm 354 crypto/ansi_cprng.c struct prng_context *prng = crypto_rng_ctx(tfm); tfm 465 crypto/anubis.c struct anubis_ctx *ctx = crypto_tfm_ctx(tfm); tfm 467 crypto/anubis.c u32 *flags = &tfm->crt_flags; tfm 664 crypto/anubis.c struct anubis_ctx *ctx = crypto_tfm_ctx(tfm); tfm 670 crypto/anubis.c struct anubis_ctx *ctx = crypto_tfm_ctx(tfm); tfm 271 crypto/api.c const struct crypto_type *type_obj = tfm->__crt_alg->cra_type; tfm 274 crypto/api.c return type_obj->init(tfm, type, mask); tfm 276 crypto/api.c switch (crypto_tfm_alg_type(tfm)) { tfm 278 crypto/api.c return crypto_init_cipher_ops(tfm); tfm 283 crypto/api.c return crypto_init_digest_ops_async(tfm); tfm 285 crypto/api.c return crypto_init_digest_ops(tfm); tfm 288 crypto/api.c return crypto_init_compress_ops(tfm); tfm 300 crypto/api.c const struct crypto_type *type = tfm->__crt_alg->cra_type; tfm 304 crypto/api.c type->exit(tfm); tfm 308 crypto/api.c switch (crypto_tfm_alg_type(tfm)) { tfm 310 crypto/api.c crypto_exit_cipher_ops(tfm); tfm 314 crypto/api.c crypto_exit_digest_ops(tfm); tfm 318 crypto/api.c crypto_exit_compress_ops(tfm); tfm 367 crypto/api.c struct crypto_tfm *tfm = NULL; tfm 371 crypto/api.c tfm_size = sizeof(*tfm) + crypto_ctxsize(alg, type, mask); tfm 372 crypto/api.c tfm = kzalloc(tfm_size, GFP_KERNEL); tfm 373 crypto/api.c if (tfm == NULL) tfm 376 crypto/api.c tfm->__crt_alg = alg; tfm 378 crypto/api.c err = crypto_init_ops(tfm, type, mask); tfm 382 crypto/api.c if (alg->cra_init && (err = alg->cra_init(tfm))) { tfm 391 crypto/api.c crypto_exit_ops(tfm); tfm 393 crypto/api.c kfree(tfm); tfm 395 crypto/api.c tfm = ERR_PTR(err); tfm 397 crypto/api.c return tfm; tfm 422 crypto/api.c struct crypto_tfm *tfm; tfm 434 crypto/api.c tfm = __crypto_alloc_tfm(alg, type, mask); tfm 435 crypto/api.c if (!IS_ERR(tfm)) tfm 436 crypto/api.c return tfm; tfm 439 crypto/api.c err = PTR_ERR(tfm); tfm 466 crypto/api.c if (unlikely(!tfm)) tfm 469 crypto/api.c alg = tfm->__crt_alg; tfm 470 crypto/api.c size = sizeof(*tfm) + alg->cra_ctxsize; tfm 473 crypto/api.c alg->cra_exit(tfm); tfm 474 crypto/api.c crypto_exit_ops(tfm); tfm 476 crypto/api.c memset(tfm, 0, size); tfm 477 crypto/api.c kfree(tfm); tfm 30 crypto/arc4.c struct arc4_ctx *ctx = crypto_tfm_ctx(tfm); tfm 54 crypto/arc4.c struct arc4_ctx *ctx = crypto_tfm_ctx(tfm); tfm 113 crypto/authenc.c .tfm = auth, tfm 322 crypto/authenc.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 324 crypto/authenc.c struct crypto_authenc_ctx *ctx = crypto_tfm_ctx(tfm); tfm 340 crypto/authenc.c tfm->crt_aead.reqsize = max_t(unsigned int, tfm 359 crypto/authenc.c struct crypto_authenc_ctx *ctx = crypto_tfm_ctx(tfm); tfm 76 crypto/blkcipher.c unsigned int alignmask = crypto_blkcipher_alignmask(tfm); tfm 106 crypto/blkcipher.c struct crypto_blkcipher *tfm = desc->tfm; tfm 118 crypto/blkcipher.c n = blkcipher_done_slow(tfm, walk, n); tfm 137 crypto/blkcipher.c memcpy(desc->info, walk->iv, crypto_blkcipher_ivsize(tfm)); tfm 227 crypto/blkcipher.c struct crypto_blkcipher *tfm = desc->tfm; tfm 228 crypto/blkcipher.c unsigned int alignmask = crypto_blkcipher_alignmask(tfm); tfm 234 crypto/blkcipher.c if (unlikely(n < crypto_blkcipher_blocksize(tfm))) { tfm 283 crypto/blkcipher.c unsigned int ivsize = crypto_blkcipher_ivsize(tfm); tfm 307 crypto/blkcipher.c walk->blocksize = crypto_blkcipher_blocksize(desc->tfm); tfm 316 crypto/blkcipher.c walk->blocksize = crypto_blkcipher_blocksize(desc->tfm); tfm 324 crypto/blkcipher.c struct crypto_blkcipher *tfm = desc->tfm; tfm 325 crypto/blkcipher.c unsigned int alignmask = crypto_blkcipher_alignmask(tfm); tfm 337 crypto/blkcipher.c int err = blkcipher_copy_iv(walk, tfm, alignmask); tfm 362 crypto/blkcipher.c struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; tfm 363 crypto/blkcipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 375 crypto/blkcipher.c ret = cipher->setkey(tfm, alignbuffer, keylen); tfm 383 crypto/blkcipher.c struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher; tfm 384 crypto/blkcipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 387 crypto/blkcipher.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 392 crypto/blkcipher.c return setkey_unaligned(tfm, key, keylen); tfm 394 crypto/blkcipher.c return cipher->setkey(tfm, key, keylen); tfm 400 crypto/blkcipher.c return setkey(crypto_ablkcipher_tfm(tfm), key, keylen); tfm 405 crypto/blkcipher.c struct crypto_tfm *tfm = req->base.tfm; tfm 406 crypto/blkcipher.c struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; tfm 408 crypto/blkcipher.c .tfm = __crypto_blkcipher_cast(tfm), tfm 419 crypto/blkcipher.c struct crypto_tfm *tfm = req->base.tfm; tfm 420 crypto/blkcipher.c struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; tfm 422 crypto/blkcipher.c .tfm = __crypto_blkcipher_cast(tfm), tfm 447 crypto/blkcipher.c struct ablkcipher_tfm *crt = &tfm->crt_ablkcipher; tfm 448 crypto/blkcipher.c struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; tfm 457 crypto/blkcipher.c crt->base = __crypto_ablkcipher_cast(tfm); tfm 465 crypto/blkcipher.c struct blkcipher_tfm *crt = &tfm->crt_blkcipher; tfm 466 crypto/blkcipher.c struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; tfm 467 crypto/blkcipher.c unsigned long align = crypto_tfm_alg_alignmask(tfm) + 1; tfm 474 crypto/blkcipher.c addr = (unsigned long)crypto_tfm_ctx(tfm); tfm 476 crypto/blkcipher.c addr += ALIGN(tfm->__crt_alg->cra_ctxsize, align); tfm 484 crypto/blkcipher.c struct blkcipher_alg *alg = &tfm->__crt_alg->cra_blkcipher; tfm 490 crypto/blkcipher.c return crypto_init_blkcipher_ops_sync(tfm); tfm 492 crypto/blkcipher.c return crypto_init_blkcipher_ops_async(tfm); tfm 540 crypto/blkcipher.c int (*setkey)(struct crypto_ablkcipher *tfm, const u8 *key, tfm 679 crypto/blkcipher.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 686 crypto/blkcipher.c tfm->crt_ablkcipher.base = cipher; tfm 687 crypto/blkcipher.c tfm->crt_ablkcipher.reqsize += crypto_ablkcipher_reqsize(cipher); tfm 695 crypto/blkcipher.c crypto_free_ablkcipher(tfm->crt_ablkcipher.base); tfm 359 crypto/blowfish.c encrypt_block(crypto_tfm_ctx(tfm), out32, in32); tfm 366 crypto/blowfish.c struct bf_ctx *ctx = crypto_tfm_ctx(tfm); tfm 403 crypto/blowfish.c struct bf_ctx *ctx = crypto_tfm_ctx(tfm); tfm 1019 crypto/camellia.c struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); tfm 1021 crypto/camellia.c u32 *flags = &tfm->crt_flags; tfm 1047 crypto/camellia.c const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); tfm 1071 crypto/camellia.c const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); tfm 582 crypto/cast5.c struct cast5_ctx *c = crypto_tfm_ctx(tfm); tfm 647 crypto/cast5.c struct cast5_ctx *c = crypto_tfm_ctx(tfm); tfm 774 crypto/cast5.c struct cast5_ctx *c = crypto_tfm_ctx(tfm); tfm 390 crypto/cast6.c struct cast6_ctx *c = crypto_tfm_ctx(tfm); tfm 391 crypto/cast6.c u32 *flags = &tfm->crt_flags; tfm 450 crypto/cast6.c struct cast6_ctx *c = crypto_tfm_ctx(tfm); tfm 482 crypto/cast6.c struct cast6_ctx * c = crypto_tfm_ctx(tfm); tfm 47 crypto/cbc.c crypto_cipher_alg(tfm)->cia_encrypt; tfm 48 crypto/cbc.c int bsize = crypto_cipher_blocksize(tfm); tfm 56 crypto/cbc.c fn(crypto_cipher_tfm(tfm), dst, iv); tfm 71 crypto/cbc.c crypto_cipher_alg(tfm)->cia_encrypt; tfm 72 crypto/cbc.c int bsize = crypto_cipher_blocksize(tfm); tfm 79 crypto/cbc.c fn(crypto_cipher_tfm(tfm), src, src); tfm 95 crypto/cbc.c struct crypto_blkcipher *tfm = desc->tfm; tfm 96 crypto/cbc.c struct crypto_cbc_ctx *ctx = crypto_blkcipher_ctx(tfm); tfm 119 crypto/cbc.c crypto_cipher_alg(tfm)->cia_decrypt; tfm 120 crypto/cbc.c int bsize = crypto_cipher_blocksize(tfm); tfm 127 crypto/cbc.c fn(crypto_cipher_tfm(tfm), dst, src); tfm 145 crypto/cbc.c crypto_cipher_alg(tfm)->cia_decrypt; tfm 146 crypto/cbc.c int bsize = crypto_cipher_blocksize(tfm); tfm 156 crypto/cbc.c fn(crypto_cipher_tfm(tfm), src, src); tfm 174 crypto/cbc.c struct crypto_blkcipher *tfm = desc->tfm; tfm 175 crypto/cbc.c struct crypto_cbc_ctx *ctx = crypto_blkcipher_ctx(tfm); tfm 195 crypto/cbc.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 197 crypto/cbc.c struct crypto_cbc_ctx *ctx = crypto_tfm_ctx(tfm); tfm 210 crypto/cbc.c struct crypto_cbc_ctx *ctx = crypto_tfm_ctx(tfm); tfm 81 crypto/ccm.c struct crypto_cipher *tfm = ctx->cipher; tfm 93 crypto/ccm.c crypto_cipher_clear_flags(tfm, CRYPTO_TFM_REQ_MASK); tfm 94 crypto/ccm.c crypto_cipher_set_flags(tfm, crypto_aead_get_flags(aead) & tfm 96 crypto/ccm.c err = crypto_cipher_setkey(tfm, key, keylen); tfm 97 crypto/ccm.c crypto_aead_set_flags(aead, crypto_cipher_get_flags(tfm) & tfm 179 crypto/ccm.c crypto_cipher_encrypt_one(tfm, odata, odata); tfm 188 crypto/ccm.c crypto_cipher_encrypt_one(tfm, odata, odata); tfm 221 crypto/ccm.c compute_mac(tfm, data_src, n, pctx); tfm 240 crypto/ccm.c crypto_cipher_encrypt_one(tfm, odata, odata); tfm 431 crypto/ccm.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 433 crypto/ccm.c struct crypto_ccm_ctx *ctx = crypto_tfm_ctx(tfm); tfm 451 crypto/ccm.c align = crypto_tfm_alg_alignmask(tfm); tfm 453 crypto/ccm.c tfm->crt_aead.reqsize = align + tfm 466 crypto/ccm.c struct crypto_ccm_ctx *ctx = crypto_tfm_ctx(tfm); tfm 722 crypto/ccm.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 724 crypto/ccm.c struct crypto_rfc4309_ctx *ctx = crypto_tfm_ctx(tfm); tfm 736 crypto/ccm.c tfm->crt_aead.reqsize = sizeof(struct aead_request) + tfm 746 crypto/ccm.c struct crypto_rfc4309_ctx *ctx = crypto_tfm_ctx(tfm); tfm 108 crypto/chainiv.c tfm->crt_ablkcipher.reqsize = sizeof(struct ablkcipher_request); tfm 110 crypto/chainiv.c return skcipher_geniv_init(tfm); tfm 115 crypto/chainiv.c struct chainiv_ctx *ctx = crypto_tfm_ctx(tfm); tfm 119 crypto/chainiv.c return chainiv_init_common(tfm); tfm 265 crypto/chainiv.c struct async_chainiv_ctx *ctx = crypto_tfm_ctx(tfm); tfm 272 crypto/chainiv.c return chainiv_init_common(tfm); tfm 277 crypto/chainiv.c struct async_chainiv_ctx *ctx = crypto_tfm_ctx(tfm); tfm 281 crypto/chainiv.c skcipher_geniv_exit(tfm); tfm 26 crypto/cipher.c struct cipher_alg *cia = &tfm->__crt_alg->cra_cipher; tfm 27 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 39 crypto/cipher.c ret = cia->cia_setkey(tfm, alignbuffer, keylen); tfm 48 crypto/cipher.c struct cipher_alg *cia = &tfm->__crt_alg->cra_cipher; tfm 49 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 51 crypto/cipher.c tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; tfm 53 crypto/cipher.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 58 crypto/cipher.c return setkey_unaligned(tfm, key, keylen); tfm 60 crypto/cipher.c return cia->cia_setkey(tfm, key, keylen); tfm 68 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 69 crypto/cipher.c unsigned int size = crypto_tfm_alg_blocksize(tfm); tfm 74 crypto/cipher.c fn(tfm, tmp, tmp); tfm 81 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 82 crypto/cipher.c struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; tfm 85 crypto/cipher.c cipher_crypt_unaligned(cipher->cia_encrypt, tfm, dst, src); tfm 89 crypto/cipher.c cipher->cia_encrypt(tfm, dst, src); tfm 95 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 96 crypto/cipher.c struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; tfm 99 crypto/cipher.c cipher_crypt_unaligned(cipher->cia_decrypt, tfm, dst, src); tfm 103 crypto/cipher.c cipher->cia_decrypt(tfm, dst, src); tfm 108 crypto/cipher.c struct cipher_tfm *ops = &tfm->crt_cipher; tfm 109 crypto/cipher.c struct cipher_alg *cipher = &tfm->__crt_alg->cra_cipher; tfm 112 crypto/cipher.c ops->cit_encrypt_one = crypto_tfm_alg_alignmask(tfm) ? tfm 114 crypto/cipher.c ops->cit_decrypt_one = crypto_tfm_alg_alignmask(tfm) ? tfm 24 crypto/compress.c return tfm->__crt_alg->cra_compress.coa_compress(tfm, src, slen, dst, tfm 32 crypto/compress.c return tfm->__crt_alg->cra_compress.coa_decompress(tfm, src, slen, dst, tfm 38 crypto/compress.c struct compress_tfm *ops = &tfm->crt_compress; tfm 39 crypto/crc32c.c struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); tfm 52 crypto/crc32c.c struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); tfm 55 crypto/crc32c.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 65 crypto/crc32c.c struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); tfm 72 crypto/crc32c.c struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); tfm 79 crypto/crc32c.c struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); tfm 171 crypto/crc32c.c u32 *key = crypto_tfm_ctx(tfm); tfm 175 crypto/crc32c.c tfm->crt_ahash.reqsize = sizeof(u32); tfm 59 crypto/cryptd.c struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); tfm 96 crypto/cryptd.c desc.tfm = child; tfm 112 crypto/cryptd.c struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(req->tfm); tfm 121 crypto/cryptd.c struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(req->tfm); tfm 132 crypto/cryptd.c struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); tfm 134 crypto/cryptd.c cryptd_get_state(crypto_ablkcipher_tfm(tfm)); tfm 160 crypto/cryptd.c struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); tfm 163 crypto/cryptd.c struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 171 crypto/cryptd.c tfm->crt_ablkcipher.reqsize = tfm 178 crypto/cryptd.c struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(tfm); tfm 179 crypto/cryptd.c struct cryptd_state *state = cryptd_get_state(tfm); tfm 184 crypto/cryptd.c __crypto_ablkcipher_cast(tfm)); tfm 273 crypto/cryptd.c struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); tfm 276 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 284 crypto/cryptd.c tfm->crt_ahash.reqsize = tfm 291 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(tfm); tfm 292 crypto/cryptd.c struct cryptd_state *state = cryptd_get_state(tfm); tfm 297 crypto/cryptd.c __crypto_ahash_cast(tfm)); tfm 325 crypto/cryptd.c struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); tfm 327 crypto/cryptd.c cryptd_get_state(crypto_ahash_tfm(tfm)); tfm 343 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(req_async->tfm); tfm 354 crypto/cryptd.c desc.tfm = child; tfm 374 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(req_async->tfm); tfm 385 crypto/cryptd.c desc.tfm = child; tfm 407 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(req_async->tfm); tfm 418 crypto/cryptd.c desc.tfm = child; tfm 438 crypto/cryptd.c struct cryptd_hash_ctx *ctx = crypto_tfm_ctx(req_async->tfm); tfm 449 crypto/cryptd.c desc.tfm = child; tfm 52 crypto/ctr.c unsigned int bsize = crypto_cipher_blocksize(tfm); tfm 53 crypto/ctr.c unsigned long alignmask = crypto_cipher_alignmask(tfm); tfm 61 crypto/ctr.c crypto_cipher_encrypt_one(tfm, keystream, ctrblk); tfm 72 crypto/ctr.c crypto_cipher_alg(tfm)->cia_encrypt; tfm 73 crypto/ctr.c unsigned int bsize = crypto_cipher_blocksize(tfm); tfm 81 crypto/ctr.c fn(crypto_cipher_tfm(tfm), dst, ctrblk); tfm 98 crypto/ctr.c crypto_cipher_alg(tfm)->cia_encrypt; tfm 99 crypto/ctr.c unsigned int bsize = crypto_cipher_blocksize(tfm); tfm 100 crypto/ctr.c unsigned long alignmask = crypto_cipher_alignmask(tfm); tfm 109 crypto/ctr.c fn(crypto_cipher_tfm(tfm), keystream, ctrblk); tfm 126 crypto/ctr.c struct crypto_blkcipher *tfm = desc->tfm; tfm 127 crypto/ctr.c struct crypto_ctr_ctx *ctx = crypto_blkcipher_ctx(tfm); tfm 154 crypto/ctr.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 156 crypto/ctr.c struct crypto_ctr_ctx *ctx = crypto_tfm_ctx(tfm); tfm 170 crypto/ctr.c struct crypto_ctr_ctx *ctx = crypto_tfm_ctx(tfm); tfm 274 crypto/ctr.c struct crypto_blkcipher *tfm = desc->tfm; tfm 275 crypto/ctr.c struct crypto_rfc3686_ctx *ctx = crypto_blkcipher_ctx(tfm); tfm 277 crypto/ctr.c unsigned long alignmask = crypto_blkcipher_alignmask(tfm); tfm 291 crypto/ctr.c desc->tfm = child; tfm 294 crypto/ctr.c desc->tfm = tfm; tfm 302 crypto/ctr.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 304 crypto/ctr.c struct crypto_rfc3686_ctx *ctx = crypto_tfm_ctx(tfm); tfm 318 crypto/ctr.c struct crypto_rfc3686_ctx *ctx = crypto_tfm_ctx(tfm); tfm 80 crypto/cts.c int bsize = crypto_blkcipher_blocksize(desc->tfm); tfm 100 crypto/cts.c lcldesc.tfm = ctx->child; tfm 129 crypto/cts.c struct crypto_cts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 130 crypto/cts.c int bsize = crypto_blkcipher_blocksize(desc->tfm); tfm 136 crypto/cts.c lcldesc.tfm = ctx->child; tfm 166 crypto/cts.c int bsize = crypto_blkcipher_blocksize(desc->tfm); tfm 183 crypto/cts.c lcldesc.tfm = ctx->child; tfm 223 crypto/cts.c struct crypto_cts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 224 crypto/cts.c int bsize = crypto_blkcipher_blocksize(desc->tfm); tfm 230 crypto/cts.c lcldesc.tfm = ctx->child; tfm 254 crypto/cts.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 256 crypto/cts.c struct crypto_cts_ctx *ctx = crypto_tfm_ctx(tfm); tfm 269 crypto/cts.c struct crypto_cts_ctx *ctx = crypto_tfm_ctx(tfm); tfm 107 crypto/deflate.c struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); tfm 122 crypto/deflate.c struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); tfm 132 crypto/deflate.c struct deflate_ctx *dctx = crypto_tfm_ctx(tfm); tfm 162 crypto/deflate.c struct deflate_ctx *dctx = crypto_tfm_ctx(tfm); tfm 784 crypto/des_generic.c struct des_ctx *dctx = crypto_tfm_ctx(tfm); tfm 785 crypto/des_generic.c u32 *flags = &tfm->crt_flags; tfm 805 crypto/des_generic.c struct des_ctx *ctx = crypto_tfm_ctx(tfm); tfm 828 crypto/des_generic.c struct des_ctx *ctx = crypto_tfm_ctx(tfm); tfm 866 crypto/des_generic.c struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); tfm 868 crypto/des_generic.c u32 *flags = &tfm->crt_flags; tfm 886 crypto/des_generic.c struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); tfm 917 crypto/des_generic.c struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); tfm 29 crypto/digest.c struct crypto_tfm *tfm = crypto_hash_tfm(desc->tfm); tfm 31 crypto/digest.c tfm->__crt_alg->cra_digest.dia_init(tfm); tfm 38 crypto/digest.c struct crypto_tfm *tfm = crypto_hash_tfm(desc->tfm); tfm 39 crypto/digest.c unsigned int alignmask = crypto_tfm_alg_alignmask(tfm); tfm 64 crypto/digest.c tfm->__crt_alg->cra_digest.dia_update(tfm, p, tfm 70 crypto/digest.c tfm->__crt_alg->cra_digest.dia_update(tfm, p, tfm 97 crypto/digest.c struct crypto_tfm *tfm = crypto_hash_tfm(desc->tfm); tfm 98 crypto/digest.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); tfm 99 crypto/digest.c struct digest_alg *digest = &tfm->__crt_alg->cra_digest; tfm 103 crypto/digest.c unsigned long addr = (unsigned long)crypto_tfm_ctx(tfm); tfm 105 crypto/digest.c ALIGN(tfm->__crt_alg->cra_ctxsize, align); tfm 107 crypto/digest.c digest->dia_final(tfm, dst); tfm 110 crypto/digest.c digest->dia_final(tfm, out); tfm 117 crypto/digest.c crypto_hash_clear_flags(tfm, CRYPTO_TFM_RES_MASK); tfm 123 crypto/digest.c struct crypto_tfm *tfm = crypto_hash_tfm(hash); tfm 126 crypto/digest.c return tfm->__crt_alg->cra_digest.dia_setkey(tfm, key, keylen); tfm 142 crypto/digest.c struct hash_tfm *ops = &tfm->crt_hash; tfm 143 crypto/digest.c struct digest_alg *dalg = &tfm->__crt_alg->cra_digest; tfm 172 crypto/digest.c struct crypto_tfm *tfm = crypto_ahash_tfm(tfm_async); tfm 173 crypto/digest.c struct digest_alg *dalg = &tfm->__crt_alg->cra_digest; tfm 176 crypto/digest.c return dalg->dia_setkey(tfm, key, keylen); tfm 181 crypto/digest.c struct crypto_tfm *tfm = req->base.tfm; tfm 182 crypto/digest.c struct digest_alg *dalg = &tfm->__crt_alg->cra_digest; tfm 184 crypto/digest.c dalg->dia_init(tfm); tfm 190 crypto/digest.c struct crypto_tfm *tfm = req->base.tfm; tfm 192 crypto/digest.c .tfm = __crypto_hash_cast(tfm), tfm 202 crypto/digest.c struct crypto_tfm *tfm = req->base.tfm; tfm 204 crypto/digest.c .tfm = __crypto_hash_cast(tfm), tfm 214 crypto/digest.c struct crypto_tfm *tfm = req->base.tfm; tfm 216 crypto/digest.c .tfm = __crypto_hash_cast(tfm), tfm 225 crypto/digest.c struct ahash_tfm *crt = &tfm->crt_ahash; tfm 226 crypto/digest.c struct digest_alg *dalg = &tfm->__crt_alg->cra_digest; tfm 46 crypto/ecb.c int bsize = crypto_cipher_blocksize(tfm); tfm 57 crypto/ecb.c fn(crypto_cipher_tfm(tfm), wdst, wsrc); tfm 74 crypto/ecb.c struct crypto_blkcipher *tfm = desc->tfm; tfm 75 crypto/ecb.c struct crypto_ecb_ctx *ctx = crypto_blkcipher_ctx(tfm); tfm 88 crypto/ecb.c struct crypto_blkcipher *tfm = desc->tfm; tfm 89 crypto/ecb.c struct crypto_ecb_ctx *ctx = crypto_blkcipher_ctx(tfm); tfm 99 crypto/ecb.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 101 crypto/ecb.c struct crypto_ecb_ctx *ctx = crypto_tfm_ctx(tfm); tfm 114 crypto/ecb.c struct crypto_ecb_ctx *ctx = crypto_tfm_ctx(tfm); tfm 187 crypto/eseqiv.c struct crypto_ablkcipher *geniv = __crypto_ablkcipher_cast(tfm); tfm 211 crypto/eseqiv.c tfm->crt_ablkcipher.reqsize = reqsize + tfm 214 crypto/eseqiv.c return skcipher_geniv_init(tfm); tfm 238 crypto/fcrypt.c const struct fcrypt_ctx *ctx = crypto_tfm_ctx(tfm); tfm 270 crypto/fcrypt.c const struct fcrypt_ctx *ctx = crypto_tfm_ctx(tfm); tfm 305 crypto/fcrypt.c struct fcrypt_ctx *ctx = crypto_tfm_ctx(tfm); tfm 275 crypto/gcm.c u32 flags = req->base.tfm->crt_flags; tfm 405 crypto/gcm.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 407 crypto/gcm.c struct crypto_gcm_ctx *ctx = crypto_tfm_ctx(tfm); tfm 420 crypto/gcm.c align = crypto_tfm_alg_alignmask(tfm); tfm 422 crypto/gcm.c tfm->crt_aead.reqsize = align + tfm 431 crypto/gcm.c struct crypto_gcm_ctx *ctx = crypto_tfm_ctx(tfm); tfm 655 crypto/gcm.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 657 crypto/gcm.c struct crypto_rfc4106_ctx *ctx = crypto_tfm_ctx(tfm); tfm 669 crypto/gcm.c tfm->crt_aead.reqsize = sizeof(struct aead_request) + tfm 679 crypto/gcm.c struct crypto_rfc4106_ctx *ctx = crypto_tfm_ctx(tfm); tfm 30 crypto/hash.c struct crypto_tfm *tfm = crypto_hash_tfm(crt); tfm 31 crypto/hash.c struct hash_alg *alg = &tfm->__crt_alg->cra_hash; tfm 53 crypto/hash.c struct crypto_tfm *tfm = crypto_hash_tfm(crt); tfm 54 crypto/hash.c struct hash_alg *alg = &tfm->__crt_alg->cra_hash; tfm 66 crypto/hash.c struct crypto_tfm *tfm = crypto_ahash_tfm(tfm_async); tfm 67 crypto/hash.c struct crypto_hash *tfm_hash = __crypto_hash_cast(tfm); tfm 68 crypto/hash.c struct hash_alg *alg = &tfm->__crt_alg->cra_hash; tfm 75 crypto/hash.c struct crypto_tfm *tfm = req->base.tfm; tfm 76 crypto/hash.c struct hash_alg *alg = &tfm->__crt_alg->cra_hash; tfm 78 crypto/hash.c .tfm = __crypto_hash_cast(tfm), tfm 87 crypto/hash.c struct crypto_tfm *tfm = req->base.tfm; tfm 88 crypto/hash.c struct hash_alg *alg = &tfm->__crt_alg->cra_hash; tfm 90 crypto/hash.c .tfm = __crypto_hash_cast(tfm), tfm 99 crypto/hash.c struct crypto_tfm *tfm = req->base.tfm; tfm 100 crypto/hash.c struct hash_alg *alg = &tfm->__crt_alg->cra_hash; tfm 102 crypto/hash.c .tfm = __crypto_hash_cast(tfm), tfm 111 crypto/hash.c struct crypto_tfm *tfm = req->base.tfm; tfm 112 crypto/hash.c struct hash_alg *alg = &tfm->__crt_alg->cra_hash; tfm 114 crypto/hash.c .tfm = __crypto_hash_cast(tfm), tfm 123 crypto/hash.c struct ahash_tfm *crt = &tfm->crt_ahash; tfm 124 crypto/hash.c struct hash_alg *alg = &tfm->__crt_alg->cra_hash; tfm 138 crypto/hash.c struct hash_tfm *crt = &tfm->crt_hash; tfm 139 crypto/hash.c struct hash_alg *alg = &tfm->__crt_alg->cra_hash; tfm 153 crypto/hash.c struct hash_alg *alg = &tfm->__crt_alg->cra_hash; tfm 159 crypto/hash.c return crypto_init_hash_ops_async(tfm); tfm 161 crypto/hash.c return crypto_init_hash_ops_sync(tfm); tfm 40 crypto/hmac.c return align_ptr(crypto_hash_ctx_aligned(tfm) + tfm 41 crypto/hmac.c crypto_hash_blocksize(tfm) * 2 + tfm 42 crypto/hmac.c crypto_hash_digestsize(tfm), sizeof(void *)); tfm 54 crypto/hmac.c struct crypto_hash *tfm = ctx->child; tfm 63 crypto/hmac.c desc.tfm = tfm; tfm 110 crypto/hmac.c struct crypto_hash *parent = pdesc->tfm; tfm 119 crypto/hmac.c desc.tfm = ctx->child; tfm 133 crypto/hmac.c struct hmac_ctx *ctx = hmac_ctx(pdesc->tfm); tfm 136 crypto/hmac.c desc.tfm = ctx->child; tfm 144 crypto/hmac.c struct crypto_hash *parent = pdesc->tfm; tfm 154 crypto/hmac.c desc.tfm = ctx->child; tfm 168 crypto/hmac.c struct crypto_hash *parent = pdesc->tfm; tfm 180 crypto/hmac.c desc.tfm = ctx->child; tfm 200 crypto/hmac.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 202 crypto/hmac.c struct hmac_ctx *ctx = hmac_ctx(__crypto_hash_cast(tfm)); tfm 214 crypto/hmac.c struct hmac_ctx *ctx = hmac_ctx(__crypto_hash_cast(tfm)); tfm 759 crypto/khazad.c struct khazad_ctx *ctx = crypto_tfm_ctx(tfm); tfm 839 crypto/khazad.c struct khazad_ctx *ctx = crypto_tfm_ctx(tfm); tfm 845 crypto/khazad.c struct khazad_ctx *ctx = crypto_tfm_ctx(tfm); tfm 88 crypto/lrw.c struct crypto_tfm *tfm; tfm 102 crypto/lrw.c s->fn(s->tfm, dst, dst); /* CC <- E(Key2,PP) */ tfm 133 crypto/lrw.c .tfm = crypto_cipher_tfm(ctx->child), tfm 184 crypto/lrw.c struct priv *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 195 crypto/lrw.c struct priv *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 206 crypto/lrw.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 208 crypto/lrw.c struct priv *ctx = crypto_tfm_ctx(tfm); tfm 209 crypto/lrw.c u32 *flags = &tfm->crt_flags; tfm 226 crypto/lrw.c struct priv *ctx = crypto_tfm_ctx(tfm); tfm 31 crypto/lzo.c struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); tfm 42 crypto/lzo.c struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); tfm 50 crypto/lzo.c struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); tfm 157 crypto/md4.c struct md4_ctx *mctx = crypto_tfm_ctx(tfm); tfm 168 crypto/md4.c struct md4_ctx *mctx = crypto_tfm_ctx(tfm); tfm 198 crypto/md4.c struct md4_ctx *mctx = crypto_tfm_ctx(tfm); tfm 152 crypto/md5.c struct md5_ctx *mctx = crypto_tfm_ctx(tfm); tfm 163 crypto/md5.c struct md5_ctx *mctx = crypto_tfm_ctx(tfm); tfm 193 crypto/md5.c struct md5_ctx *mctx = crypto_tfm_ctx(tfm); tfm 50 crypto/michael_mic.c struct michael_mic_ctx *mctx = crypto_tfm_ctx(tfm); tfm 58 crypto/michael_mic.c struct michael_mic_ctx *mctx = crypto_tfm_ctx(tfm); tfm 96 crypto/michael_mic.c struct michael_mic_ctx *mctx = crypto_tfm_ctx(tfm); tfm 128 crypto/michael_mic.c struct michael_mic_ctx *mctx = crypto_tfm_ctx(tfm); tfm 132 crypto/michael_mic.c tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; tfm 50 crypto/pcbc.c crypto_cipher_alg(tfm)->cia_encrypt; tfm 51 crypto/pcbc.c int bsize = crypto_cipher_blocksize(tfm); tfm 59 crypto/pcbc.c fn(crypto_cipher_tfm(tfm), dst, iv); tfm 75 crypto/pcbc.c crypto_cipher_alg(tfm)->cia_encrypt; tfm 76 crypto/pcbc.c int bsize = crypto_cipher_blocksize(tfm); tfm 85 crypto/pcbc.c fn(crypto_cipher_tfm(tfm), src, iv); tfm 102 crypto/pcbc.c struct crypto_blkcipher *tfm = desc->tfm; tfm 103 crypto/pcbc.c struct crypto_pcbc_ctx *ctx = crypto_blkcipher_ctx(tfm); tfm 128 crypto/pcbc.c crypto_cipher_alg(tfm)->cia_decrypt; tfm 129 crypto/pcbc.c int bsize = crypto_cipher_blocksize(tfm); tfm 136 crypto/pcbc.c fn(crypto_cipher_tfm(tfm), dst, src); tfm 155 crypto/pcbc.c crypto_cipher_alg(tfm)->cia_decrypt; tfm 156 crypto/pcbc.c int bsize = crypto_cipher_blocksize(tfm); tfm 164 crypto/pcbc.c fn(crypto_cipher_tfm(tfm), src, src); tfm 182 crypto/pcbc.c struct crypto_blkcipher *tfm = desc->tfm; tfm 183 crypto/pcbc.c struct crypto_pcbc_ctx *ctx = crypto_blkcipher_ctx(tfm); tfm 205 crypto/pcbc.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 207 crypto/pcbc.c struct crypto_pcbc_ctx *ctx = crypto_tfm_ctx(tfm); tfm 220 crypto/pcbc.c struct crypto_pcbc_ctx *ctx = crypto_tfm_ctx(tfm); tfm 223 crypto/rmd128.c struct rmd128_ctx *rctx = crypto_tfm_ctx(tfm); tfm 238 crypto/rmd128.c struct rmd128_ctx *rctx = crypto_tfm_ctx(tfm); tfm 270 crypto/rmd128.c struct rmd128_ctx *rctx = crypto_tfm_ctx(tfm); tfm 281 crypto/rmd128.c rmd128_update(tfm, padding, padlen); tfm 284 crypto/rmd128.c rmd128_update(tfm, (const u8 *)&bits, sizeof(bits)); tfm 266 crypto/rmd160.c struct rmd160_ctx *rctx = crypto_tfm_ctx(tfm); tfm 282 crypto/rmd160.c struct rmd160_ctx *rctx = crypto_tfm_ctx(tfm); tfm 314 crypto/rmd160.c struct rmd160_ctx *rctx = crypto_tfm_ctx(tfm); tfm 325 crypto/rmd160.c rmd160_update(tfm, padding, padlen); tfm 328 crypto/rmd160.c rmd160_update(tfm, (const u8 *)&bits, sizeof(bits)); tfm 238 crypto/rmd256.c struct rmd256_ctx *rctx = crypto_tfm_ctx(tfm); tfm 257 crypto/rmd256.c struct rmd256_ctx *rctx = crypto_tfm_ctx(tfm); tfm 289 crypto/rmd256.c struct rmd256_ctx *rctx = crypto_tfm_ctx(tfm); tfm 300 crypto/rmd256.c rmd256_update(tfm, padding, padlen); tfm 303 crypto/rmd256.c rmd256_update(tfm, (const u8 *)&bits, sizeof(bits)); tfm 285 crypto/rmd320.c struct rmd320_ctx *rctx = crypto_tfm_ctx(tfm); tfm 306 crypto/rmd320.c struct rmd320_ctx *rctx = crypto_tfm_ctx(tfm); tfm 338 crypto/rmd320.c struct rmd320_ctx *rctx = crypto_tfm_ctx(tfm); tfm 349 crypto/rmd320.c rmd320_update(tfm, padding, padlen); tfm 352 crypto/rmd320.c rmd320_update(tfm, (const u8 *)&bits, sizeof(bits)); tfm 43 crypto/rng.c err = crypto_rng_alg(tfm)->rng_reset(tfm, seed, slen); tfm 51 crypto/rng.c struct rng_alg *alg = &tfm->__crt_alg->cra_rng; tfm 52 crypto/rng.c struct rng_tfm *ops = &tfm->crt_rng; tfm 175 crypto/salsa20_generic.c struct salsa20_ctx *ctx = crypto_tfm_ctx(tfm); tfm 185 crypto/salsa20_generic.c struct crypto_blkcipher *tfm = desc->tfm; tfm 186 crypto/salsa20_generic.c struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm); tfm 334 crypto/seed.c struct seed_ctx *ctx = crypto_tfm_ctx(tfm); tfm 370 crypto/seed.c const struct seed_ctx *ctx = crypto_tfm_ctx(tfm); tfm 408 crypto/seed.c const struct seed_ctx *ctx = crypto_tfm_ctx(tfm); tfm 236 crypto/seqiv.c struct crypto_ablkcipher *geniv = __crypto_ablkcipher_cast(tfm); tfm 241 crypto/seqiv.c tfm->crt_ablkcipher.reqsize = sizeof(struct ablkcipher_request); tfm 243 crypto/seqiv.c return skcipher_geniv_init(tfm); tfm 248 crypto/seqiv.c struct crypto_aead *geniv = __crypto_aead_cast(tfm); tfm 253 crypto/seqiv.c tfm->crt_aead.reqsize = sizeof(struct aead_request); tfm 255 crypto/seqiv.c return aead_geniv_init(tfm); tfm 221 crypto/serpent.c struct serpent_ctx *ctx = crypto_tfm_ctx(tfm); tfm 365 crypto/serpent.c struct serpent_ctx *ctx = crypto_tfm_ctx(tfm); tfm 424 crypto/serpent.c struct serpent_ctx *ctx = crypto_tfm_ctx(tfm); tfm 501 crypto/serpent.c return serpent_setkey(tfm, rev_key, keylen); tfm 516 crypto/serpent.c serpent_encrypt(tfm, (u8 *)rd, (u8 *)rs); tfm 536 crypto/serpent.c serpent_decrypt(tfm, (u8 *)rd, (u8 *)rs); tfm 36 crypto/sha1_generic.c struct sha1_ctx *sctx = crypto_tfm_ctx(tfm); tfm 49 crypto/sha1_generic.c struct sha1_ctx *sctx = crypto_tfm_ctx(tfm); tfm 83 crypto/sha1_generic.c struct sha1_ctx *sctx = crypto_tfm_ctx(tfm); tfm 94 crypto/sha1_generic.c sha1_update(tfm, padding, padlen); tfm 97 crypto/sha1_generic.c sha1_update(tfm, (const u8 *)&bits, sizeof(bits)); tfm 225 crypto/sha256_generic.c struct sha256_ctx *sctx = crypto_tfm_ctx(tfm); tfm 240 crypto/sha256_generic.c struct sha256_ctx *sctx = crypto_tfm_ctx(tfm); tfm 255 crypto/sha256_generic.c struct sha256_ctx *sctx = crypto_tfm_ctx(tfm); tfm 287 crypto/sha256_generic.c struct sha256_ctx *sctx = crypto_tfm_ctx(tfm); tfm 301 crypto/sha256_generic.c sha256_update(tfm, padding, pad_len); tfm 304 crypto/sha256_generic.c sha256_update(tfm, (const u8 *)bits, sizeof(bits)); tfm 318 crypto/sha256_generic.c sha256_final(tfm, D); tfm 140 crypto/sha512_generic.c struct sha512_ctx *sctx = crypto_tfm_ctx(tfm); tfm 155 crypto/sha512_generic.c struct sha512_ctx *sctx = crypto_tfm_ctx(tfm); tfm 170 crypto/sha512_generic.c struct sha512_ctx *sctx = crypto_tfm_ctx(tfm); tfm 210 crypto/sha512_generic.c struct sha512_ctx *sctx = crypto_tfm_ctx(tfm); tfm 226 crypto/sha512_generic.c sha512_update(tfm, padding, pad_len); tfm 229 crypto/sha512_generic.c sha512_update(tfm, (const u8 *)bits, sizeof(bits)); tfm 243 crypto/sha512_generic.c sha512_final(tfm, D); tfm 139 crypto/tcrypt.c struct crypto_blkcipher *tfm; tfm 151 crypto/tcrypt.c tfm = crypto_alloc_blkcipher(algo, 0, CRYPTO_ALG_ASYNC); tfm 153 crypto/tcrypt.c if (IS_ERR(tfm)) { tfm 155 crypto/tcrypt.c PTR_ERR(tfm)); tfm 158 crypto/tcrypt.c desc.tfm = tfm; tfm 189 crypto/tcrypt.c ret = crypto_blkcipher_setkey(tfm, key, *keysize); tfm 192 crypto/tcrypt.c crypto_blkcipher_get_flags(tfm)); tfm 204 crypto/tcrypt.c iv_len = crypto_blkcipher_ivsize(tfm); tfm 207 crypto/tcrypt.c crypto_blkcipher_set_iv(tfm, iv, iv_len); tfm 228 crypto/tcrypt.c crypto_free_blkcipher(tfm); tfm 397 crypto/tcrypt.c struct crypto_hash *tfm; tfm 405 crypto/tcrypt.c tfm = crypto_alloc_hash(algo, 0, CRYPTO_ALG_ASYNC); tfm 407 crypto/tcrypt.c if (IS_ERR(tfm)) { tfm 409 crypto/tcrypt.c PTR_ERR(tfm)); tfm 413 crypto/tcrypt.c desc.tfm = tfm; tfm 416 crypto/tcrypt.c if (crypto_hash_digestsize(tfm) > sizeof(output)) { tfm 418 crypto/tcrypt.c crypto_hash_digestsize(tfm), sizeof(output)); tfm 452 crypto/tcrypt.c crypto_free_hash(tfm); tfm 50 crypto/tea.c struct tea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 66 crypto/tea.c struct tea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 94 crypto/tea.c struct tea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 123 crypto/tea.c struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 139 crypto/tea.c struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 159 crypto/tea.c struct tea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 183 crypto/tea.c struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 203 crypto/tea.c struct tea_ctx *ctx = crypto_tfm_ctx(tfm); tfm 119 crypto/testmgr.c const char *algo = crypto_tfm_alg_driver_name(crypto_ahash_tfm(tfm)); tfm 130 crypto/testmgr.c req = ahash_request_alloc(tfm, GFP_KERNEL); tfm 149 crypto/testmgr.c crypto_ahash_clear_flags(tfm, ~0); tfm 150 crypto/testmgr.c ret = crypto_ahash_setkey(tfm, template[i].key, tfm 181 crypto/testmgr.c crypto_ahash_digestsize(tfm))) { tfm 184 crypto/testmgr.c hexdump(result, crypto_ahash_digestsize(tfm)); tfm 209 crypto/testmgr.c crypto_ahash_clear_flags(tfm, ~0); tfm 210 crypto/testmgr.c ret = crypto_ahash_setkey(tfm, template[i].key, tfm 245 crypto/testmgr.c crypto_ahash_digestsize(tfm))) { tfm 248 crypto/testmgr.c hexdump(result, crypto_ahash_digestsize(tfm)); tfm 266 crypto/testmgr.c const char *algo = crypto_tfm_alg_driver_name(crypto_aead_tfm(tfm)); tfm 288 crypto/testmgr.c req = aead_request_alloc(tfm, GFP_KERNEL); tfm 316 crypto/testmgr.c crypto_aead_clear_flags(tfm, ~0); tfm 319 crypto/testmgr.c tfm, CRYPTO_TFM_REQ_WEAK_KEY); tfm 323 crypto/testmgr.c ret = crypto_aead_setkey(tfm, key, tfm 328 crypto/testmgr.c crypto_aead_get_flags(tfm)); tfm 334 crypto/testmgr.c ret = crypto_aead_setauthsize(tfm, authsize); tfm 394 crypto/testmgr.c crypto_aead_clear_flags(tfm, ~0); tfm 397 crypto/testmgr.c tfm, CRYPTO_TFM_REQ_WEAK_KEY); tfm 400 crypto/testmgr.c ret = crypto_aead_setkey(tfm, key, template[i].klen); tfm 404 crypto/testmgr.c algo, crypto_aead_get_flags(tfm)); tfm 434 crypto/testmgr.c ret = crypto_aead_setauthsize(tfm, authsize); tfm 547 crypto/testmgr.c const char *algo = crypto_tfm_alg_driver_name(crypto_cipher_tfm(tfm)); tfm 569 crypto/testmgr.c crypto_cipher_clear_flags(tfm, ~0); tfm 571 crypto/testmgr.c crypto_cipher_set_flags(tfm, CRYPTO_TFM_REQ_WEAK_KEY); tfm 573 crypto/testmgr.c ret = crypto_cipher_setkey(tfm, template[i].key, tfm 578 crypto/testmgr.c algo, crypto_cipher_get_flags(tfm)); tfm 584 crypto/testmgr.c k += crypto_cipher_blocksize(tfm)) { tfm 586 crypto/testmgr.c crypto_cipher_encrypt_one(tfm, data + k, tfm 589 crypto/testmgr.c crypto_cipher_decrypt_one(tfm, data + k, tfm 613 crypto/testmgr.c crypto_tfm_alg_driver_name(crypto_ablkcipher_tfm(tfm)); tfm 631 crypto/testmgr.c req = ablkcipher_request_alloc(tfm, GFP_KERNEL); tfm 655 crypto/testmgr.c crypto_ablkcipher_clear_flags(tfm, ~0); tfm 658 crypto/testmgr.c tfm, CRYPTO_TFM_REQ_WEAK_KEY); tfm 660 crypto/testmgr.c ret = crypto_ablkcipher_setkey(tfm, template[i].key, tfm 665 crypto/testmgr.c algo, crypto_ablkcipher_get_flags(tfm)); tfm 719 crypto/testmgr.c crypto_ablkcipher_clear_flags(tfm, ~0); tfm 722 crypto/testmgr.c tfm, CRYPTO_TFM_REQ_WEAK_KEY); tfm 724 crypto/testmgr.c ret = crypto_ablkcipher_setkey(tfm, template[i].key, tfm 730 crypto/testmgr.c crypto_ablkcipher_get_flags(tfm)); tfm 826 crypto/testmgr.c const char *algo = crypto_tfm_alg_driver_name(crypto_comp_tfm(tfm)); tfm 837 crypto/testmgr.c ret = crypto_comp_compress(tfm, ctemplate[i].input, tfm 861 crypto/testmgr.c ret = crypto_comp_decompress(tfm, dtemplate[i].input, tfm 888 crypto/testmgr.c struct crypto_aead *tfm; tfm 891 crypto/testmgr.c tfm = crypto_alloc_aead(driver, type, mask); tfm 892 crypto/testmgr.c if (IS_ERR(tfm)) { tfm 894 crypto/testmgr.c "%ld\n", driver, PTR_ERR(tfm)); tfm 895 crypto/testmgr.c return PTR_ERR(tfm); tfm 899 crypto/testmgr.c err = test_aead(tfm, ENCRYPT, desc->suite.aead.enc.vecs, tfm 906 crypto/testmgr.c err = test_aead(tfm, DECRYPT, desc->suite.aead.dec.vecs, tfm 910 crypto/testmgr.c crypto_free_aead(tfm); tfm 917 crypto/testmgr.c struct crypto_cipher *tfm; tfm 920 crypto/testmgr.c tfm = crypto_alloc_cipher(driver, type, mask); tfm 921 crypto/testmgr.c if (IS_ERR(tfm)) { tfm 923 crypto/testmgr.c "%s: %ld\n", driver, PTR_ERR(tfm)); tfm 924 crypto/testmgr.c return PTR_ERR(tfm); tfm 928 crypto/testmgr.c err = test_cipher(tfm, ENCRYPT, desc->suite.cipher.enc.vecs, tfm 935 crypto/testmgr.c err = test_cipher(tfm, DECRYPT, desc->suite.cipher.dec.vecs, tfm 939 crypto/testmgr.c crypto_free_cipher(tfm); tfm 946 crypto/testmgr.c struct crypto_ablkcipher *tfm; tfm 949 crypto/testmgr.c tfm = crypto_alloc_ablkcipher(driver, type, mask); tfm 950 crypto/testmgr.c if (IS_ERR(tfm)) { tfm 952 crypto/testmgr.c "%s: %ld\n", driver, PTR_ERR(tfm)); tfm 953 crypto/testmgr.c return PTR_ERR(tfm); tfm 957 crypto/testmgr.c err = test_skcipher(tfm, ENCRYPT, desc->suite.cipher.enc.vecs, tfm 964 crypto/testmgr.c err = test_skcipher(tfm, DECRYPT, desc->suite.cipher.dec.vecs, tfm 968 crypto/testmgr.c crypto_free_ablkcipher(tfm); tfm 975 crypto/testmgr.c struct crypto_comp *tfm; tfm 978 crypto/testmgr.c tfm = crypto_alloc_comp(driver, type, mask); tfm 979 crypto/testmgr.c if (IS_ERR(tfm)) { tfm 981 crypto/testmgr.c "%ld\n", driver, PTR_ERR(tfm)); tfm 982 crypto/testmgr.c return PTR_ERR(tfm); tfm 985 crypto/testmgr.c err = test_comp(tfm, desc->suite.comp.comp.vecs, tfm 990 crypto/testmgr.c crypto_free_comp(tfm); tfm 997 crypto/testmgr.c struct crypto_ahash *tfm; tfm 1000 crypto/testmgr.c tfm = crypto_alloc_ahash(driver, type, mask); tfm 1001 crypto/testmgr.c if (IS_ERR(tfm)) { tfm 1003 crypto/testmgr.c "%ld\n", driver, PTR_ERR(tfm)); tfm 1004 crypto/testmgr.c return PTR_ERR(tfm); tfm 1007 crypto/testmgr.c err = test_hash(tfm, desc->suite.hash.vecs, desc->suite.hash.count); tfm 1009 crypto/testmgr.c crypto_free_ahash(tfm); tfm 500 crypto/tgr192.c struct tgr192_ctx *tctx = crypto_tfm_ctx(tfm); tfm 515 crypto/tgr192.c struct tgr192_ctx *tctx = crypto_tfm_ctx(tfm); tfm 529 crypto/tgr192.c tgr192_update(tfm, NULL, 0); tfm 553 crypto/tgr192.c struct tgr192_ctx *tctx = crypto_tfm_ctx(tfm); tfm 559 crypto/tgr192.c tgr192_update(tfm, NULL, 0); /* flush */ ; tfm 587 crypto/tgr192.c tgr192_update(tfm, NULL, 0); /* flush */ ; tfm 607 crypto/tgr192.c tgr192_final(tfm, D); tfm 616 crypto/tgr192.c tgr192_final(tfm, D); tfm 111 crypto/twofish.c struct twofish_ctx *ctx = crypto_tfm_ctx(tfm); tfm 148 crypto/twofish.c struct twofish_ctx *ctx = crypto_tfm_ctx(tfm); tfm 586 crypto/twofish_common.c struct twofish_ctx *ctx = crypto_tfm_ctx(tfm); tfm 587 crypto/twofish_common.c u32 *flags = &tfm->crt_flags; tfm 984 crypto/wp512.c struct wp512_ctx *wctx = crypto_tfm_ctx(tfm); tfm 998 crypto/wp512.c struct wp512_ctx *wctx = crypto_tfm_ctx(tfm); tfm 1058 crypto/wp512.c struct wp512_ctx *wctx = crypto_tfm_ctx(tfm); tfm 1093 crypto/wp512.c wp512_final(tfm, D); tfm 1102 crypto/wp512.c wp512_final(tfm, D); tfm 101 crypto/xcbc.c struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(pdesc->tfm); tfm 102 crypto/xcbc.c int bs = crypto_hash_blocksize(pdesc->tfm); tfm 115 crypto/xcbc.c struct crypto_hash *parent = pdesc->tfm; tfm 117 crypto/xcbc.c struct crypto_cipher *tfm = ctx->child; tfm 158 crypto/xcbc.c crypto_cipher_encrypt_one(tfm, ctx->prev, ctx->prev); tfm 166 crypto/xcbc.c crypto_cipher_encrypt_one(tfm, ctx->prev, tfm 203 crypto/xcbc.c struct crypto_hash *parent = pdesc->tfm; tfm 205 crypto/xcbc.c struct crypto_cipher *tfm = ctx->child; tfm 212 crypto/xcbc.c if ((err = crypto_cipher_setkey(tfm, ctx->key, ctx->keylen)) != 0) tfm 215 crypto/xcbc.c crypto_cipher_encrypt_one(tfm, key2, tfm 222 crypto/xcbc.c crypto_cipher_encrypt_one(tfm, out, ctx->prev); tfm 234 crypto/xcbc.c if ((err = crypto_cipher_setkey(tfm, ctx->key, ctx->keylen)) != 0) tfm 237 crypto/xcbc.c crypto_cipher_encrypt_one(tfm, key3, tfm 245 crypto/xcbc.c crypto_cipher_encrypt_one(tfm, out, ctx->prev); tfm 265 crypto/xcbc.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 267 crypto/xcbc.c struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(__crypto_hash_cast(tfm)); tfm 268 crypto/xcbc.c int bs = crypto_hash_blocksize(__crypto_hash_cast(tfm)); tfm 292 crypto/xcbc.c struct crypto_xcbc_ctx *ctx = crypto_hash_ctx_aligned(__crypto_hash_cast(tfm)); tfm 81 crypto/xts.c struct crypto_tfm *tfm; tfm 88 crypto/xts.c s->fn(s->tfm, dst, dst); /* CC <- E(Key1,PP) */ tfm 101 crypto/xts.c .tfm = crypto_cipher_tfm(ctx->child), tfm 149 crypto/xts.c struct priv *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 160 crypto/xts.c struct priv *ctx = crypto_blkcipher_ctx(desc->tfm); tfm 171 crypto/xts.c struct crypto_instance *inst = (void *)tfm->__crt_alg; tfm 173 crypto/xts.c struct priv *ctx = crypto_tfm_ctx(tfm); tfm 174 crypto/xts.c u32 *flags = &tfm->crt_flags; tfm 209 crypto/xts.c struct priv *ctx = crypto_tfm_ctx(tfm); tfm 100 fs/ecryptfs/crypto.c .tfm = crypt_stat->hash_tfm, tfm 107 fs/ecryptfs/crypto.c if (!desc.tfm) { tfm 108 fs/ecryptfs/crypto.c desc.tfm = crypto_alloc_hash(ECRYPTFS_DEFAULT_HASH, 0, tfm 110 fs/ecryptfs/crypto.c if (IS_ERR(desc.tfm)) { tfm 111 fs/ecryptfs/crypto.c rc = PTR_ERR(desc.tfm); tfm 117 fs/ecryptfs/crypto.c crypt_stat->hash_tfm = desc.tfm; tfm 244 fs/ecryptfs/crypto.c if (crypt_stat->tfm) tfm 245 fs/ecryptfs/crypto.c crypto_free_blkcipher(crypt_stat->tfm); tfm 343 fs/ecryptfs/crypto.c .tfm = crypt_stat->tfm, tfm 349 fs/ecryptfs/crypto.c BUG_ON(!crypt_stat || !crypt_stat->tfm tfm 360 fs/ecryptfs/crypto.c rc = crypto_blkcipher_setkey(crypt_stat->tfm, crypt_stat->key, tfm 691 fs/ecryptfs/crypto.c .tfm = crypt_stat->tfm, tfm 699 fs/ecryptfs/crypto.c rc = crypto_blkcipher_setkey(crypt_stat->tfm, crypt_stat->key, tfm 803 fs/ecryptfs/crypto.c if (crypt_stat->tfm) { tfm 812 fs/ecryptfs/crypto.c crypt_stat->tfm = crypto_alloc_blkcipher(full_alg_name, 0, tfm 815 fs/ecryptfs/crypto.c if (IS_ERR(crypt_stat->tfm)) { tfm 816 fs/ecryptfs/crypto.c rc = PTR_ERR(crypt_stat->tfm); tfm 822 fs/ecryptfs/crypto.c crypto_blkcipher_set_flags(crypt_stat->tfm, CRYPTO_TFM_REQ_WEAK_KEY); tfm 1894 fs/ecryptfs/crypto.c (*tfm) = NULL; tfm 1906 fs/ecryptfs/crypto.c (*tfm) = key_tfm->key_tfm; tfm 247 fs/ecryptfs/ecryptfs_kernel.h struct crypto_blkcipher *tfm; tfm 1059 fs/ecryptfs/keystore.c rc = ecryptfs_get_tfm_and_mutex_for_cipher_name(&desc.tfm, &tfm_mutex, tfm 1091 fs/ecryptfs/keystore.c desc.tfm, auth_tok->token.password.session_key_encryption_key, tfm 1553 fs/ecryptfs/keystore.c .tfm = NULL, tfm 1561 fs/ecryptfs/keystore.c rc = ecryptfs_get_tfm_and_mutex_for_cipher_name(&desc.tfm, &tfm_mutex, tfm 1570 fs/ecryptfs/keystore.c struct blkcipher_alg *alg = crypto_blkcipher_alg(desc.tfm); tfm 1645 fs/ecryptfs/keystore.c rc = crypto_blkcipher_setkey(desc.tfm, session_key_encryption_key, tfm 98 fs/nfsd/nfs4recover.c desc.tfm = crypto_alloc_hash("md5", 0, CRYPTO_ALG_ASYNC); tfm 99 fs/nfsd/nfs4recover.c if (IS_ERR(desc.tfm)) tfm 101 fs/nfsd/nfs4recover.c cksum.len = crypto_hash_digestsize(desc.tfm); tfm 116 fs/nfsd/nfs4recover.c crypto_free_hash(desc.tfm); tfm 54 include/crypto/aead.h req->areq.base.tfm = crypto_aead_tfm(tfm); tfm 63 include/crypto/aead.h crypto_aead_reqsize(tfm), gfp); tfm 66 include/crypto/aead.h aead_givcrypt_set_tfm(req, tfm); tfm 25 include/crypto/algapi.h int (*init)(struct crypto_tfm *tfm, u32 type, u32 mask); tfm 26 include/crypto/algapi.h void (*exit)(struct crypto_tfm *tfm); tfm 150 include/crypto/algapi.h unsigned long addr = (unsigned long)crypto_tfm_ctx(tfm); tfm 151 include/crypto/algapi.h unsigned long align = crypto_tfm_alg_alignmask(tfm); tfm 161 include/crypto/algapi.h return container_of(tfm->__crt_alg, struct crypto_instance, alg); tfm 172 include/crypto/algapi.h return &crypto_ablkcipher_tfm(tfm)->__crt_alg->cra_ablkcipher; tfm 177 include/crypto/algapi.h return crypto_tfm_ctx(&tfm->base); tfm 182 include/crypto/algapi.h return crypto_tfm_ctx_aligned(&tfm->base); tfm 187 include/crypto/algapi.h return &crypto_aead_tfm(tfm)->__crt_alg->cra_aead; tfm 192 include/crypto/algapi.h return crypto_tfm_ctx(&tfm->base); tfm 212 include/crypto/algapi.h return crypto_tfm_ctx(&tfm->base); tfm 217 include/crypto/algapi.h return crypto_tfm_ctx_aligned(&tfm->base); tfm 231 include/crypto/algapi.h return &crypto_cipher_tfm(tfm)->__crt_alg->cra_cipher; tfm 244 include/crypto/algapi.h return crypto_tfm_ctx_aligned(&tfm->base); tfm 284 include/crypto/algapi.h return crypto_tfm_in_queue(queue, crypto_ablkcipher_tfm(tfm)); tfm 24 include/crypto/hash.h return (struct crypto_ahash *)tfm; tfm 40 include/crypto/hash.h return &tfm->base; tfm 45 include/crypto/hash.h crypto_free_tfm(crypto_ahash_tfm(tfm)); tfm 51 include/crypto/hash.h return crypto_tfm_alg_alignmask(crypto_ahash_tfm(tfm)); tfm 56 include/crypto/hash.h return &crypto_ahash_tfm(tfm)->crt_ahash; tfm 61 include/crypto/hash.h return crypto_ahash_crt(tfm)->digestsize; tfm 66 include/crypto/hash.h return crypto_tfm_get_flags(crypto_ahash_tfm(tfm)); tfm 71 include/crypto/hash.h crypto_tfm_set_flags(crypto_ahash_tfm(tfm), flags); tfm 76 include/crypto/hash.h crypto_tfm_clear_flags(crypto_ahash_tfm(tfm), flags); tfm 82 include/crypto/hash.h return __crypto_ahash_cast(req->base.tfm); tfm 87 include/crypto/hash.h return crypto_ahash_crt(tfm)->reqsize; tfm 93 include/crypto/hash.h struct ahash_tfm *crt = crypto_ahash_crt(tfm); tfm 95 include/crypto/hash.h return crt->setkey(tfm, key, keylen); tfm 125 include/crypto/hash.h req->base.tfm = crypto_ahash_tfm(tfm); tfm 134 include/crypto/hash.h crypto_ahash_reqsize(tfm), gfp); tfm 137 include/crypto/hash.h ahash_request_set_tfm(req, tfm); tfm 45 include/crypto/internal/hash.h return crypto_tfm_ctx(&tfm->base); tfm 51 include/crypto/internal/hash.h return &crypto_ahash_tfm(tfm)->__crt_alg->cra_ahash; tfm 74 include/crypto/internal/hash.h return crypto_tfm_in_queue(queue, crypto_ahash_tfm(tfm)); tfm 23 include/crypto/internal/rng.h return crypto_tfm_ctx(&tfm->base); tfm 25 include/crypto/rng.h return (struct crypto_rng *)tfm; tfm 40 include/crypto/rng.h return &tfm->base; tfm 45 include/crypto/rng.h return &crypto_rng_tfm(tfm)->__crt_alg->cra_rng; tfm 50 include/crypto/rng.h return &crypto_rng_tfm(tfm)->crt_rng; tfm 55 include/crypto/rng.h crypto_free_tfm(crypto_rng_tfm(tfm)); tfm 61 include/crypto/rng.h return crypto_rng_crt(tfm)->rng_gen_random(tfm, rdata, dlen); tfm 67 include/crypto/rng.h return crypto_rng_crt(tfm)->rng_reset(tfm, seed, slen); tfm 72 include/crypto/rng.h return crypto_rng_alg(tfm)->seedsize; tfm 58 include/crypto/skcipher.h req->creq.base.tfm = crypto_ablkcipher_tfm(tfm); tfm 74 include/crypto/skcipher.h crypto_ablkcipher_reqsize(tfm), gfp); tfm 77 include/crypto/skcipher.h skcipher_givcrypt_set_tfm(req, tfm); tfm 129 include/linux/crypto.h struct crypto_tfm *tfm; tfm 184 include/linux/crypto.h struct crypto_blkcipher *tfm; tfm 190 include/linux/crypto.h struct crypto_tfm *tfm; tfm 191 include/linux/crypto.h void (*crfn)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); tfm 198 include/linux/crypto.h struct crypto_hash *tfm; tfm 207 include/linux/crypto.h int (*setkey)(struct crypto_ablkcipher *tfm, const u8 *key, tfm 226 include/linux/crypto.h int (*setkey)(struct crypto_ahash *tfm, const u8 *key, tfm 233 include/linux/crypto.h int (*setkey)(struct crypto_aead *tfm, const u8 *key, tfm 235 include/linux/crypto.h int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize); tfm 248 include/linux/crypto.h int (*setkey)(struct crypto_tfm *tfm, const u8 *key, tfm 267 include/linux/crypto.h int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key, tfm 269 include/linux/crypto.h void (*cia_encrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); tfm 270 include/linux/crypto.h void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); tfm 275 include/linux/crypto.h void (*dia_init)(struct crypto_tfm *tfm); tfm 276 include/linux/crypto.h void (*dia_update)(struct crypto_tfm *tfm, const u8 *data, tfm 278 include/linux/crypto.h void (*dia_final)(struct crypto_tfm *tfm, u8 *out); tfm 279 include/linux/crypto.h int (*dia_setkey)(struct crypto_tfm *tfm, const u8 *key, tfm 290 include/linux/crypto.h int (*setkey)(struct crypto_hash *tfm, const u8 *key, tfm 297 include/linux/crypto.h int (*coa_compress)(struct crypto_tfm *tfm, const u8 *src, tfm 299 include/linux/crypto.h int (*coa_decompress)(struct crypto_tfm *tfm, const u8 *src, tfm 304 include/linux/crypto.h int (*rng_make_random)(struct crypto_rng *tfm, u8 *rdata, tfm 306 include/linux/crypto.h int (*rng_reset)(struct crypto_rng *tfm, u8 *seed, unsigned int slen); tfm 351 include/linux/crypto.h int (*cra_init)(struct crypto_tfm *tfm); tfm 352 include/linux/crypto.h void (*cra_exit)(struct crypto_tfm *tfm); tfm 376 include/linux/crypto.h int (*setkey)(struct crypto_ablkcipher *tfm, const u8 *key, tfm 390 include/linux/crypto.h int (*setkey)(struct crypto_aead *tfm, const u8 *key, tfm 406 include/linux/crypto.h int (*setkey)(struct crypto_tfm *tfm, const u8 *key, tfm 415 include/linux/crypto.h int (*cit_setkey)(struct crypto_tfm *tfm, tfm 417 include/linux/crypto.h void (*cit_encrypt_one)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); tfm 418 include/linux/crypto.h void (*cit_decrypt_one)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); tfm 428 include/linux/crypto.h int (*setkey)(struct crypto_hash *tfm, const u8 *key, tfm 438 include/linux/crypto.h int (*setkey)(struct crypto_ahash *tfm, const u8 *key, tfm 446 include/linux/crypto.h int (*cot_compress)(struct crypto_tfm *tfm, tfm 449 include/linux/crypto.h int (*cot_decompress)(struct crypto_tfm *tfm, tfm 455 include/linux/crypto.h int (*rng_gen_random)(struct crypto_rng *tfm, u8 *rdata, tfm 457 include/linux/crypto.h int (*rng_reset)(struct crypto_rng *tfm, u8 *seed, unsigned int slen); tfm 558 include/linux/crypto.h return tfm->__crt_alg->cra_name; tfm 563 include/linux/crypto.h return tfm->__crt_alg->cra_driver_name; tfm 568 include/linux/crypto.h return tfm->__crt_alg->cra_priority; tfm 573 include/linux/crypto.h return module_name(tfm->__crt_alg->cra_module); tfm 578 include/linux/crypto.h return tfm->__crt_alg->cra_flags & CRYPTO_ALG_TYPE_MASK; tfm 583 include/linux/crypto.h return tfm->__crt_alg->cra_blocksize; tfm 588 include/linux/crypto.h return tfm->__crt_alg->cra_alignmask; tfm 593 include/linux/crypto.h return tfm->crt_flags; tfm 598 include/linux/crypto.h tfm->crt_flags |= flags; tfm 603 include/linux/crypto.h tfm->crt_flags &= ~flags; tfm 608 include/linux/crypto.h return tfm->__crt_ctx; tfm 613 include/linux/crypto.h struct crypto_tfm *tfm; tfm 614 include/linux/crypto.h return __alignof__(tfm->__crt_ctx); tfm 623 include/linux/crypto.h return (struct crypto_ablkcipher *)tfm; tfm 646 include/linux/crypto.h return &tfm->base; tfm 651 include/linux/crypto.h crypto_free_tfm(crypto_ablkcipher_tfm(tfm)); tfm 664 include/linux/crypto.h return &crypto_ablkcipher_tfm(tfm)->crt_ablkcipher; tfm 670 include/linux/crypto.h return crypto_ablkcipher_crt(tfm)->ivsize; tfm 676 include/linux/crypto.h return crypto_tfm_alg_blocksize(crypto_ablkcipher_tfm(tfm)); tfm 682 include/linux/crypto.h return crypto_tfm_alg_alignmask(crypto_ablkcipher_tfm(tfm)); tfm 687 include/linux/crypto.h return crypto_tfm_get_flags(crypto_ablkcipher_tfm(tfm)); tfm 693 include/linux/crypto.h crypto_tfm_set_flags(crypto_ablkcipher_tfm(tfm), flags); tfm 699 include/linux/crypto.h crypto_tfm_clear_flags(crypto_ablkcipher_tfm(tfm), flags); tfm 705 include/linux/crypto.h struct ablkcipher_tfm *crt = crypto_ablkcipher_crt(tfm); tfm 713 include/linux/crypto.h return __crypto_ablkcipher_cast(req->base.tfm); tfm 733 include/linux/crypto.h return crypto_ablkcipher_crt(tfm)->reqsize; tfm 739 include/linux/crypto.h req->base.tfm = crypto_ablkcipher_tfm(crypto_ablkcipher_crt(tfm)->base); tfm 754 include/linux/crypto.h crypto_ablkcipher_reqsize(tfm), gfp); tfm 757 include/linux/crypto.h ablkcipher_request_set_tfm(req, tfm); tfm 789 include/linux/crypto.h return (struct crypto_aead *)tfm; tfm 796 include/linux/crypto.h return &tfm->base; tfm 801 include/linux/crypto.h crypto_free_tfm(crypto_aead_tfm(tfm)); tfm 806 include/linux/crypto.h return &crypto_aead_tfm(tfm)->crt_aead; tfm 811 include/linux/crypto.h return crypto_aead_crt(tfm)->ivsize; tfm 816 include/linux/crypto.h return crypto_aead_crt(tfm)->authsize; tfm 821 include/linux/crypto.h return crypto_tfm_alg_blocksize(crypto_aead_tfm(tfm)); tfm 826 include/linux/crypto.h return crypto_tfm_alg_alignmask(crypto_aead_tfm(tfm)); tfm 831 include/linux/crypto.h return crypto_tfm_get_flags(crypto_aead_tfm(tfm)); tfm 836 include/linux/crypto.h crypto_tfm_set_flags(crypto_aead_tfm(tfm), flags); tfm 841 include/linux/crypto.h crypto_tfm_clear_flags(crypto_aead_tfm(tfm), flags); tfm 847 include/linux/crypto.h struct aead_tfm *crt = crypto_aead_crt(tfm); tfm 856 include/linux/crypto.h return __crypto_aead_cast(req->base.tfm); tfm 871 include/linux/crypto.h return crypto_aead_crt(tfm)->reqsize; tfm 877 include/linux/crypto.h req->base.tfm = crypto_aead_tfm(crypto_aead_crt(tfm)->base); tfm 885 include/linux/crypto.h req = kmalloc(sizeof(*req) + crypto_aead_reqsize(tfm), gfp); tfm 888 include/linux/crypto.h aead_request_set_tfm(req, tfm); tfm 930 include/linux/crypto.h return (struct crypto_blkcipher *)tfm; tfm 936 include/linux/crypto.h BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_BLKCIPHER); tfm 937 include/linux/crypto.h return __crypto_blkcipher_cast(tfm); tfm 953 include/linux/crypto.h return &tfm->base; tfm 958 include/linux/crypto.h crypto_free_tfm(crypto_blkcipher_tfm(tfm)); tfm 972 include/linux/crypto.h return crypto_tfm_alg_name(crypto_blkcipher_tfm(tfm)); tfm 978 include/linux/crypto.h return &crypto_blkcipher_tfm(tfm)->crt_blkcipher; tfm 984 include/linux/crypto.h return &crypto_blkcipher_tfm(tfm)->__crt_alg->cra_blkcipher; tfm 989 include/linux/crypto.h return crypto_blkcipher_alg(tfm)->ivsize; tfm 995 include/linux/crypto.h return crypto_tfm_alg_blocksize(crypto_blkcipher_tfm(tfm)); tfm 1001 include/linux/crypto.h return crypto_tfm_alg_alignmask(crypto_blkcipher_tfm(tfm)); tfm 1006 include/linux/crypto.h return crypto_tfm_get_flags(crypto_blkcipher_tfm(tfm)); tfm 1012 include/linux/crypto.h crypto_tfm_set_flags(crypto_blkcipher_tfm(tfm), flags); tfm 1018 include/linux/crypto.h crypto_tfm_clear_flags(crypto_blkcipher_tfm(tfm), flags); tfm 1024 include/linux/crypto.h return crypto_blkcipher_crt(tfm)->setkey(crypto_blkcipher_tfm(tfm), tfm 1033 include/linux/crypto.h desc->info = crypto_blkcipher_crt(desc->tfm)->iv; tfm 1034 include/linux/crypto.h return crypto_blkcipher_crt(desc->tfm)->encrypt(desc, dst, src, nbytes); tfm 1042 include/linux/crypto.h return crypto_blkcipher_crt(desc->tfm)->encrypt(desc, dst, src, nbytes); tfm 1050 include/linux/crypto.h desc->info = crypto_blkcipher_crt(desc->tfm)->iv; tfm 1051 include/linux/crypto.h return crypto_blkcipher_crt(desc->tfm)->decrypt(desc, dst, src, nbytes); tfm 1059 include/linux/crypto.h return crypto_blkcipher_crt(desc->tfm)->decrypt(desc, dst, src, nbytes); tfm 1065 include/linux/crypto.h memcpy(crypto_blkcipher_crt(tfm)->iv, src, len); tfm 1071 include/linux/crypto.h memcpy(dst, crypto_blkcipher_crt(tfm)->iv, len); tfm 1076 include/linux/crypto.h return (struct crypto_cipher *)tfm; tfm 1081 include/linux/crypto.h BUG_ON(crypto_tfm_alg_type(tfm) != CRYPTO_ALG_TYPE_CIPHER); tfm 1082 include/linux/crypto.h return __crypto_cipher_cast(tfm); tfm 1097 include/linux/crypto.h return &tfm->base; tfm 1102 include/linux/crypto.h crypto_free_tfm(crypto_cipher_tfm(tfm)); tfm 1116 include/linux/crypto.h return &crypto_cipher_tfm(tfm)->crt_cipher; tfm 1121 include/linux/crypto.h return crypto_tfm_alg_blocksize(crypto_cipher_tfm(tfm)); tfm 1126 include/linux/crypto.h return crypto_tfm_alg_alignmask(crypto_cipher_tfm(tfm)); tfm 1131 include/linux/crypto.h return crypto_tfm_get_flags(crypto_cipher_tfm(tfm)); tfm 1137 include/linux/crypto.h crypto_tfm_set_flags(crypto_cipher_tfm(tfm), flags); tfm 1143 include/linux/crypto.h crypto_tfm_clear_flags(crypto_cipher_tfm(tfm), flags); tfm 1149 include/linux/crypto.h return crypto_cipher_crt(tfm)->cit_setkey(crypto_cipher_tfm(tfm), tfm 1156 include/linux/crypto.h crypto_cipher_crt(tfm)->cit_encrypt_one(crypto_cipher_tfm(tfm), tfm 1163 include/linux/crypto.h crypto_cipher_crt(tfm)->cit_decrypt_one(crypto_cipher_tfm(tfm), tfm 1169 include/linux/crypto.h return (struct crypto_hash *)tfm; tfm 1174 include/linux/crypto.h BUG_ON((crypto_tfm_alg_type(tfm) ^ CRYPTO_ALG_TYPE_HASH) & tfm 1176 include/linux/crypto.h return __crypto_hash_cast(tfm); tfm 1192 include/linux/crypto.h return &tfm->base; tfm 1197 include/linux/crypto.h crypto_free_tfm(crypto_hash_tfm(tfm)); tfm 1212 include/linux/crypto.h return &crypto_hash_tfm(tfm)->crt_hash; tfm 1217 include/linux/crypto.h return crypto_tfm_alg_blocksize(crypto_hash_tfm(tfm)); tfm 1222 include/linux/crypto.h return crypto_tfm_alg_alignmask(crypto_hash_tfm(tfm)); tfm 1227 include/linux/crypto.h return crypto_hash_crt(tfm)->digestsize; tfm 1232 include/linux/crypto.h return crypto_tfm_get_flags(crypto_hash_tfm(tfm)); tfm 1237 include/linux/crypto.h crypto_tfm_set_flags(crypto_hash_tfm(tfm), flags); tfm 1242 include/linux/crypto.h crypto_tfm_clear_flags(crypto_hash_tfm(tfm), flags); tfm 1247 include/linux/crypto.h return crypto_hash_crt(desc->tfm)->init(desc); tfm 1254 include/linux/crypto.h return crypto_hash_crt(desc->tfm)->update(desc, sg, nbytes); tfm 1259 include/linux/crypto.h return crypto_hash_crt(desc->tfm)->final(desc, out); tfm 1266 include/linux/crypto.h return crypto_hash_crt(desc->tfm)->digest(desc, sg, nbytes, out); tfm 1277 include/linux/crypto.h return (struct crypto_comp *)tfm; tfm 1282 include/linux/crypto.h BUG_ON((crypto_tfm_alg_type(tfm) ^ CRYPTO_ALG_TYPE_COMPRESS) & tfm 1284 include/linux/crypto.h return __crypto_comp_cast(tfm); tfm 1299 include/linux/crypto.h return &tfm->base; tfm 1304 include/linux/crypto.h crypto_free_tfm(crypto_comp_tfm(tfm)); tfm 1318 include/linux/crypto.h return crypto_tfm_alg_name(crypto_comp_tfm(tfm)); tfm 1323 include/linux/crypto.h return &crypto_comp_tfm(tfm)->crt_compress; tfm 1330 include/linux/crypto.h return crypto_comp_crt(tfm)->cot_compress(crypto_comp_tfm(tfm), tfm 1338 include/linux/crypto.h return crypto_comp_crt(tfm)->cot_decompress(crypto_comp_tfm(tfm), tfm 16 include/net/ah.h struct crypto_hash *tfm; tfm 25 include/net/ah.h desc.tfm = ahp->tfm; tfm 52 net/ieee80211/ieee80211_crypt_ccmp.c struct crypto_cipher *tfm; tfm 63 net/ieee80211/ieee80211_crypt_ccmp.c crypto_cipher_encrypt_one(tfm, ct, pt); tfm 75 net/ieee80211/ieee80211_crypt_ccmp.c priv->tfm = crypto_alloc_cipher("aes", 0, CRYPTO_ALG_ASYNC); tfm 76 net/ieee80211/ieee80211_crypt_ccmp.c if (IS_ERR(priv->tfm)) { tfm 79 net/ieee80211/ieee80211_crypt_ccmp.c priv->tfm = NULL; tfm 87 net/ieee80211/ieee80211_crypt_ccmp.c if (priv->tfm) tfm 88 net/ieee80211/ieee80211_crypt_ccmp.c crypto_free_cipher(priv->tfm); tfm 98 net/ieee80211/ieee80211_crypt_ccmp.c if (_priv && _priv->tfm) tfm 99 net/ieee80211/ieee80211_crypt_ccmp.c crypto_free_cipher(_priv->tfm); tfm 173 net/ieee80211/ieee80211_crypt_ccmp.c ieee80211_ccmp_aes_encrypt(tfm, b0, auth); tfm 175 net/ieee80211/ieee80211_crypt_ccmp.c ieee80211_ccmp_aes_encrypt(tfm, auth, auth); tfm 177 net/ieee80211/ieee80211_crypt_ccmp.c ieee80211_ccmp_aes_encrypt(tfm, auth, auth); tfm 180 net/ieee80211/ieee80211_crypt_ccmp.c ieee80211_ccmp_aes_encrypt(tfm, b0, s0); tfm 242 net/ieee80211/ieee80211_crypt_ccmp.c ccmp_init_blocks(key->tfm, hdr, key->tx_pn, data_len, b0, b, s0); tfm 251 net/ieee80211/ieee80211_crypt_ccmp.c ieee80211_ccmp_aes_encrypt(key->tfm, b, b); tfm 255 net/ieee80211/ieee80211_crypt_ccmp.c ieee80211_ccmp_aes_encrypt(key->tfm, b0, e); tfm 354 net/ieee80211/ieee80211_crypt_ccmp.c ccmp_init_blocks(key->tfm, hdr, pn, data_len, b0, a, b); tfm 365 net/ieee80211/ieee80211_crypt_ccmp.c ieee80211_ccmp_aes_encrypt(key->tfm, b0, b); tfm 369 net/ieee80211/ieee80211_crypt_ccmp.c ieee80211_ccmp_aes_encrypt(key->tfm, a, a); tfm 396 net/ieee80211/ieee80211_crypt_ccmp.c struct crypto_cipher *tfm = data->tfm; tfm 401 net/ieee80211/ieee80211_crypt_ccmp.c data->tfm = tfm; tfm 413 net/ieee80211/ieee80211_crypt_ccmp.c crypto_cipher_setkey(data->tfm, data->key, CCMP_TK_LEN); tfm 357 net/ieee80211/ieee80211_crypt_tkip.c struct blkcipher_desc desc = { .tfm = tkey->tx_tfm_arc4 }; tfm 413 net/ieee80211/ieee80211_crypt_tkip.c struct blkcipher_desc desc = { .tfm = tkey->rx_tfm_arc4 }; tfm 545 net/ieee80211/ieee80211_crypt_tkip.c desc.tfm = tfm_michael; tfm 672 net/ieee80211/ieee80211_crypt_tkip.c struct crypto_hash *tfm = tkey->tx_tfm_michael; tfm 680 net/ieee80211/ieee80211_crypt_tkip.c tkey->tx_tfm_michael = tfm; tfm 140 net/ieee80211/ieee80211_crypt_wep.c struct blkcipher_desc desc = { .tfm = wep->tx_tfm }; tfm 187 net/ieee80211/ieee80211_crypt_wep.c struct blkcipher_desc desc = { .tfm = wep->rx_tfm }; tfm 224 net/ipv4/ah4.c struct crypto_hash *tfm; tfm 236 net/ipv4/ah4.c tfm = crypto_alloc_hash(x->aalg->alg_name, 0, CRYPTO_ALG_ASYNC); tfm 237 net/ipv4/ah4.c if (IS_ERR(tfm)) tfm 240 net/ipv4/ah4.c ahp->tfm = tfm; tfm 241 net/ipv4/ah4.c if (crypto_hash_setkey(tfm, x->aalg->alg_key, tfm 255 net/ipv4/ah4.c crypto_hash_digestsize(tfm)) { tfm 257 net/ipv4/ah4.c x->aalg->alg_name, crypto_hash_digestsize(tfm), tfm 282 net/ipv4/ah4.c crypto_free_hash(ahp->tfm); tfm 297 net/ipv4/ah4.c crypto_free_hash(ahp->tfm); tfm 298 net/ipv4/ah4.c ahp->tfm = NULL; tfm 2476 net/ipv4/tcp.c if (p->md5_desc.tfm) tfm 2477 net/ipv4/tcp.c crypto_free_hash(p->md5_desc.tfm); tfm 2523 net/ipv4/tcp.c p->md5_desc.tfm = hash; tfm 432 net/ipv6/ah6.c struct crypto_hash *tfm; tfm 444 net/ipv6/ah6.c tfm = crypto_alloc_hash(x->aalg->alg_name, 0, CRYPTO_ALG_ASYNC); tfm 445 net/ipv6/ah6.c if (IS_ERR(tfm)) tfm 448 net/ipv6/ah6.c ahp->tfm = tfm; tfm 449 net/ipv6/ah6.c if (crypto_hash_setkey(tfm, x->aalg->alg_key, tfm 463 net/ipv6/ah6.c crypto_hash_digestsize(tfm)) { tfm 465 net/ipv6/ah6.c x->aalg->alg_name, crypto_hash_digestsize(tfm), tfm 498 net/ipv6/ah6.c crypto_free_hash(ahp->tfm); tfm 513 net/ipv6/ah6.c crypto_free_hash(ahp->tfm); tfm 514 net/ipv6/ah6.c ahp->tfm = NULL; tfm 29 net/mac80211/aes_ccm.c crypto_cipher_encrypt_one(tfm, b, b_0); tfm 34 net/mac80211/aes_ccm.c crypto_cipher_encrypt_one(tfm, b, aad); tfm 40 net/mac80211/aes_ccm.c crypto_cipher_encrypt_one(tfm, a, aad); tfm 48 net/mac80211/aes_ccm.c crypto_cipher_encrypt_one(tfm, s_0, b_0); tfm 67 net/mac80211/aes_ccm.c aes_ccm_prepare(tfm, scratch, b); tfm 79 net/mac80211/aes_ccm.c crypto_cipher_encrypt_one(tfm, b, b); tfm 83 net/mac80211/aes_ccm.c crypto_cipher_encrypt_one(tfm, e, b_0); tfm 107 net/mac80211/aes_ccm.c aes_ccm_prepare(tfm, scratch, a); tfm 119 net/mac80211/aes_ccm.c crypto_cipher_encrypt_one(tfm, b, b_0); tfm 124 net/mac80211/aes_ccm.c crypto_cipher_encrypt_one(tfm, a, a); tfm 138 net/mac80211/aes_ccm.c struct crypto_cipher *tfm; tfm 140 net/mac80211/aes_ccm.c tfm = crypto_alloc_cipher("aes", 0, CRYPTO_ALG_ASYNC); tfm 141 net/mac80211/aes_ccm.c if (IS_ERR(tfm)) tfm 144 net/mac80211/aes_ccm.c crypto_cipher_setkey(tfm, key, ALG_CCMP_KEY_LEN); tfm 146 net/mac80211/aes_ccm.c return tfm; tfm 152 net/mac80211/aes_ccm.c if (tfm) tfm 153 net/mac80211/aes_ccm.c crypto_free_cipher(tfm); tfm 307 net/mac80211/key.c key->u.ccmp.tfm = ieee80211_aes_key_setup_encrypt(key_data); tfm 308 net/mac80211/key.c if (!key->u.ccmp.tfm) { tfm 408 net/mac80211/key.c ieee80211_aes_key_free(key->u.ccmp.tfm); tfm 466 net/mac80211/key.c ieee80211_aes_key_free(key->u.ccmp.tfm); tfm 90 net/mac80211/key.h struct crypto_cipher *tfm; tfm 217 net/mac80211/tkip.c ieee80211_wep_encrypt_data(tfm, rc4key, 16, pos, payload_len); tfm 329 net/mac80211/tkip.c res = ieee80211_wep_decrypt_data(tfm, rc4key, 16, pos, payload_len - 12); tfm 124 net/mac80211/wep.c struct blkcipher_desc desc = { .tfm = tfm }; tfm 131 net/mac80211/wep.c crypto_blkcipher_setkey(tfm, rc4key, klen); tfm 191 net/mac80211/wep.c struct blkcipher_desc desc = { .tfm = tfm }; tfm 195 net/mac80211/wep.c crypto_blkcipher_setkey(tfm, rc4key, klen); tfm 418 net/mac80211/wpa.c ieee80211_aes_ccm_encrypt(key->u.ccmp.tfm, key->u.ccmp.tx_crypto_buf, pos, len, tfm 483 net/mac80211/wpa.c key->u.ccmp.tfm, key->u.ccmp.rx_crypto_buf, tfm 129 net/rxrpc/rxkad.c desc.tfm = conn->cipher; tfm 178 net/rxrpc/rxkad.c desc.tfm = call->conn->cipher; tfm 224 net/rxrpc/rxkad.c desc.tfm = call->conn->cipher; tfm 282 net/rxrpc/rxkad.c desc.tfm = call->conn->cipher; tfm 353 net/rxrpc/rxkad.c desc.tfm = call->conn->cipher; tfm 436 net/rxrpc/rxkad.c desc.tfm = call->conn->cipher; tfm 517 net/rxrpc/rxkad.c desc.tfm = call->conn->cipher; tfm 725 net/rxrpc/rxkad.c desc.tfm = conn->cipher; tfm 854 net/rxrpc/rxkad.c desc.tfm = conn->server_key->payload.data; tfm 982 net/rxrpc/rxkad.c desc.tfm = rxkad_ci; tfm 447 net/sctp/auth.c struct crypto_hash *tfm = NULL; tfm 481 net/sctp/auth.c tfm = crypto_alloc_hash(sctp_hmac_list[id].hmac_name, 0, tfm 483 net/sctp/auth.c if (IS_ERR(tfm)) tfm 486 net/sctp/auth.c ep->auth_hmacs[id] = tfm; tfm 737 net/sctp/auth.c desc.tfm = asoc->ep->auth_hmacs[hmac_id]; tfm 741 net/sctp/auth.c if (crypto_hash_setkey(desc.tfm, &asoc_key->data[0], asoc_key->len)) tfm 1543 net/sctp/sm_make_chunk.c desc.tfm = sctp_sk(ep->base.sk)->hmac; tfm 1546 net/sctp/sm_make_chunk.c if (crypto_hash_setkey(desc.tfm, key, keylen) || tfm 1612 net/sctp/sm_make_chunk.c desc.tfm = sctp_sk(ep->base.sk)->hmac; tfm 1616 net/sctp/sm_make_chunk.c if (crypto_hash_setkey(desc.tfm, key, keylen) || tfm 1626 net/sctp/sm_make_chunk.c if (crypto_hash_setkey(desc.tfm, key, keylen) || tfm 5823 net/sctp/socket.c struct crypto_hash *tfm = NULL; tfm 5836 net/sctp/socket.c tfm = crypto_alloc_hash(sctp_hmac_alg, 0, CRYPTO_ALG_ASYNC); tfm 5837 net/sctp/socket.c if (IS_ERR(tfm)) { tfm 5841 net/sctp/socket.c sctp_hmac_alg, PTR_ERR(tfm)); tfm 5864 net/sctp/socket.c sctp_sk(sk)->hmac = tfm; tfm 5869 net/sctp/socket.c crypto_free_hash(tfm); tfm 63 net/sunrpc/auth_gss/gss_krb5_crypto.c struct blkcipher_desc desc = { .tfm = tfm, .info = local_iv }; tfm 65 net/sunrpc/auth_gss/gss_krb5_crypto.c if (length % crypto_blkcipher_blocksize(tfm) != 0) tfm 68 net/sunrpc/auth_gss/gss_krb5_crypto.c if (crypto_blkcipher_ivsize(tfm) > 16) { tfm 70 net/sunrpc/auth_gss/gss_krb5_crypto.c crypto_blkcipher_ivsize(tfm)); tfm 75 net/sunrpc/auth_gss/gss_krb5_crypto.c memcpy(local_iv, iv, crypto_blkcipher_ivsize(tfm)); tfm 97 net/sunrpc/auth_gss/gss_krb5_crypto.c struct blkcipher_desc desc = { .tfm = tfm, .info = local_iv }; tfm 99 net/sunrpc/auth_gss/gss_krb5_crypto.c if (length % crypto_blkcipher_blocksize(tfm) != 0) tfm 102 net/sunrpc/auth_gss/gss_krb5_crypto.c if (crypto_blkcipher_ivsize(tfm) > 16) { tfm 104 net/sunrpc/auth_gss/gss_krb5_crypto.c crypto_blkcipher_ivsize(tfm)); tfm 108 net/sunrpc/auth_gss/gss_krb5_crypto.c memcpy(local_iv,iv, crypto_blkcipher_ivsize(tfm)); tfm 136 net/sunrpc/auth_gss/gss_krb5_crypto.c desc.tfm = crypto_alloc_hash(cksumname, 0, CRYPTO_ALG_ASYNC); tfm 137 net/sunrpc/auth_gss/gss_krb5_crypto.c if (IS_ERR(desc.tfm)) tfm 139 net/sunrpc/auth_gss/gss_krb5_crypto.c cksum->len = crypto_hash_digestsize(desc.tfm); tfm 156 net/sunrpc/auth_gss/gss_krb5_crypto.c crypto_free_hash(desc.tfm); tfm 240 net/sunrpc/auth_gss/gss_krb5_crypto.c BUG_ON((buf->len - offset) % crypto_blkcipher_blocksize(tfm) != 0); tfm 243 net/sunrpc/auth_gss/gss_krb5_crypto.c desc.desc.tfm = tfm; tfm 316 net/sunrpc/auth_gss/gss_krb5_crypto.c BUG_ON((buf->len - offset) % crypto_blkcipher_blocksize(tfm) != 0); tfm 319 net/sunrpc/auth_gss/gss_krb5_crypto.c desc.desc.tfm = tfm; tfm 162 net/sunrpc/auth_gss/gss_spkm3_seal.c desc.tfm = crypto_alloc_hash(cksumname, 0, CRYPTO_ALG_ASYNC); tfm 163 net/sunrpc/auth_gss/gss_spkm3_seal.c if (IS_ERR(desc.tfm)) tfm 165 net/sunrpc/auth_gss/gss_spkm3_seal.c cksum->len = crypto_hash_digestsize(desc.tfm); tfm 168 net/sunrpc/auth_gss/gss_spkm3_seal.c err = crypto_hash_setkey(desc.tfm, key->data, key->len); tfm 184 net/sunrpc/auth_gss/gss_spkm3_seal.c crypto_free_hash(desc.tfm); tfm 50 net/xfrm/xfrm_ipcomp.c struct crypto_comp *tfm = *per_cpu_ptr(ipcd->tfms, cpu); tfm 51 net/xfrm/xfrm_ipcomp.c int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen); tfm 144 net/xfrm/xfrm_ipcomp.c struct crypto_comp *tfm = *per_cpu_ptr(ipcd->tfms, cpu); tfm 148 net/xfrm/xfrm_ipcomp.c err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); tfm 265 net/xfrm/xfrm_ipcomp.c struct crypto_comp *tfm = *per_cpu_ptr(tfms, cpu); tfm 266 net/xfrm/xfrm_ipcomp.c crypto_free_comp(tfm); tfm 281 net/xfrm/xfrm_ipcomp.c struct crypto_comp *tfm; tfm 284 net/xfrm/xfrm_ipcomp.c tfm = *per_cpu_ptr(tfms, cpu); tfm 286 net/xfrm/xfrm_ipcomp.c if (!strcmp(crypto_comp_name(tfm), alg_name)) { tfm 305 net/xfrm/xfrm_ipcomp.c struct crypto_comp *tfm = crypto_alloc_comp(alg_name, 0, tfm 307 net/xfrm/xfrm_ipcomp.c if (IS_ERR(tfm)) tfm 309 net/xfrm/xfrm_ipcomp.c *per_cpu_ptr(tfms, cpu) = tfm;