/crypto/ |
H A D | compress.c | 20 static int crypto_compress(struct crypto_tfm *tfm, argument 24 return tfm->__crt_alg->cra_compress.coa_compress(tfm, src, slen, dst, 28 static int crypto_decompress(struct crypto_tfm *tfm, argument 32 return tfm->__crt_alg->cra_compress.coa_decompress(tfm, src, slen, dst, 36 int crypto_init_compress_ops(struct crypto_tfm *tfm) argument 38 struct compress_tfm *ops = &tfm->crt_compress; 46 void crypto_exit_compress_ops(struct crypto_tfm *tfm) argument
|
H A D | cipher.c | 23 static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, argument 26 struct cipher_alg *cia = &tfm->__crt_alg->cra_cipher; 27 unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); 39 ret = cia->cia_setkey(tfm, alignbuffer, keylen); 46 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument 48 struct cipher_alg *cia = &tfm->__crt_alg->cra_cipher; 49 unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); 51 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; 53 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; 58 return setkey_unaligned(tfm, ke 63 cipher_crypt_unaligned(void (*fn)(struct crypto_tfm *, u8 *, const u8 *), struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 78 cipher_encrypt_unaligned(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 92 cipher_decrypt_unaligned(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 106 crypto_init_cipher_ops(struct crypto_tfm *tfm) argument 120 crypto_exit_cipher_ops(struct crypto_tfm *tfm) argument [all...] |
H A D | ablk_helper.c | 37 int ablk_set_key(struct crypto_ablkcipher *tfm, const u8 *key, argument 40 struct async_helper_ctx *ctx = crypto_ablkcipher_ctx(tfm); 45 crypto_ablkcipher_set_flags(child, crypto_ablkcipher_get_flags(tfm) 48 crypto_ablkcipher_set_flags(tfm, crypto_ablkcipher_get_flags(child) 56 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); local 57 struct async_helper_ctx *ctx = crypto_ablkcipher_ctx(tfm); 60 desc.tfm = cryptd_ablkcipher_child(ctx->cryptd_tfm); 64 return crypto_blkcipher_crt(desc.tfm)->encrypt( 71 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); local 72 struct async_helper_ctx *ctx = crypto_ablkcipher_ctx(tfm); 90 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); local 114 ablk_exit(struct crypto_tfm *tfm) argument 122 ablk_init_common(struct crypto_tfm *tfm, const char *drv_name) argument 139 ablk_init(struct crypto_tfm *tfm) argument [all...] |
H A D | lzo.c | 29 static int lzo_init(struct crypto_tfm *tfm) argument 31 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); 40 static void lzo_exit(struct crypto_tfm *tfm) argument 42 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); 47 static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, argument 50 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); 63 static int lzo_decompress(struct crypto_tfm *tfm, const u8 *src, argument
|
H A D | api.c | 272 static int crypto_init_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument 274 const struct crypto_type *type_obj = tfm->__crt_alg->cra_type; 277 return type_obj->init(tfm, type, mask); 279 switch (crypto_tfm_alg_type(tfm)) { 281 return crypto_init_cipher_ops(tfm); 284 return crypto_init_compress_ops(tfm); 294 static void crypto_exit_ops(struct crypto_tfm *tfm) argument 296 const struct crypto_type *type = tfm->__crt_alg->cra_type; 299 if (tfm->exit) 300 tfm 354 struct crypto_tfm *tfm = NULL; local 411 struct crypto_tfm *tfm; local 447 struct crypto_tfm *tfm = NULL; local 528 void *tfm; local 568 crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm) argument [all...] |
H A D | cbc.c | 44 struct crypto_cipher *tfm) 47 crypto_cipher_alg(tfm)->cia_encrypt; 48 int bsize = crypto_cipher_blocksize(tfm); 56 fn(crypto_cipher_tfm(tfm), dst, iv); 68 struct crypto_cipher *tfm) 71 crypto_cipher_alg(tfm)->cia_encrypt; 72 int bsize = crypto_cipher_blocksize(tfm); 79 fn(crypto_cipher_tfm(tfm), src, src); 95 struct crypto_blkcipher *tfm = desc->tfm; local 42 crypto_cbc_encrypt_segment(struct blkcipher_desc *desc, struct blkcipher_walk *walk, struct crypto_cipher *tfm) argument 66 crypto_cbc_encrypt_inplace(struct blkcipher_desc *desc, struct blkcipher_walk *walk, struct crypto_cipher *tfm) argument 114 crypto_cbc_decrypt_segment(struct blkcipher_desc *desc, struct blkcipher_walk *walk, struct crypto_cipher *tfm) argument 140 crypto_cbc_decrypt_inplace(struct blkcipher_desc *desc, struct blkcipher_walk *walk, struct crypto_cipher *tfm) argument 174 struct crypto_blkcipher *tfm = desc->tfm; local 193 crypto_cbc_init_tfm(struct crypto_tfm *tfm) argument 208 crypto_cbc_exit_tfm(struct crypto_tfm *tfm) argument [all...] |
H A D | pcbc.c | 47 struct crypto_cipher *tfm) 50 crypto_cipher_alg(tfm)->cia_encrypt; 51 int bsize = crypto_cipher_blocksize(tfm); 59 fn(crypto_cipher_tfm(tfm), dst, iv); 72 struct crypto_cipher *tfm) 75 crypto_cipher_alg(tfm)->cia_encrypt; 76 int bsize = crypto_cipher_blocksize(tfm); 85 fn(crypto_cipher_tfm(tfm), src, iv); 102 struct crypto_blkcipher *tfm = desc->tfm; local 45 crypto_pcbc_encrypt_segment(struct blkcipher_desc *desc, struct blkcipher_walk *walk, struct crypto_cipher *tfm) argument 70 crypto_pcbc_encrypt_inplace(struct blkcipher_desc *desc, struct blkcipher_walk *walk, struct crypto_cipher *tfm) argument 123 crypto_pcbc_decrypt_segment(struct blkcipher_desc *desc, struct blkcipher_walk *walk, struct crypto_cipher *tfm) argument 150 crypto_pcbc_decrypt_inplace(struct blkcipher_desc *desc, struct blkcipher_walk *walk, struct crypto_cipher *tfm) argument 182 struct crypto_blkcipher *tfm = desc->tfm; local 203 crypto_pcbc_init_tfm(struct crypto_tfm *tfm) argument 218 crypto_pcbc_exit_tfm(struct crypto_tfm *tfm) argument [all...] |
H A D | shash.c | 27 static int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, argument 33 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, argument 36 struct shash_alg *shash = crypto_shash_alg(tfm); 37 unsigned long alignmask = crypto_shash_alignmask(tfm); 49 err = shash->setkey(tfm, alignbuffer, keylen); 54 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, argument 57 struct shash_alg *shash = crypto_shash_alg(tfm); 58 unsigned long alignmask = crypto_shash_alignmask(tfm); 61 return shash_setkey_unaligned(tfm, key, keylen); 63 return shash->setkey(tfm, ke 76 struct crypto_shash *tfm = desc->tfm; local 100 struct crypto_shash *tfm = desc->tfm; local 113 struct crypto_shash *tfm = desc->tfm; local 135 struct crypto_shash *tfm = desc->tfm; local 156 struct crypto_shash *tfm = desc->tfm; local 177 struct crypto_shash *tfm = desc->tfm; local 200 shash_async_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) argument 324 crypto_exit_shash_ops_async(struct crypto_tfm *tfm) argument 331 crypto_init_shash_ops_async(struct crypto_tfm *tfm) argument 369 shash_compat_setkey(struct crypto_hash *tfm, const u8 *key, unsigned int keylen) argument 444 crypto_exit_shash_ops_compat(struct crypto_tfm *tfm) argument 453 crypto_init_shash_ops_compat(struct crypto_tfm *tfm) argument 493 crypto_init_shash_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument 514 crypto_shash_init_tfm(struct crypto_tfm *tfm) argument [all...] |
H A D | ctr.c | 56 struct crypto_cipher *tfm) 58 unsigned int bsize = crypto_cipher_blocksize(tfm); 59 unsigned long alignmask = crypto_cipher_alignmask(tfm); 67 crypto_cipher_encrypt_one(tfm, keystream, ctrblk); 75 struct crypto_cipher *tfm) 78 crypto_cipher_alg(tfm)->cia_encrypt; 79 unsigned int bsize = crypto_cipher_blocksize(tfm); 87 fn(crypto_cipher_tfm(tfm), dst, ctrblk); 101 struct crypto_cipher *tfm) 104 crypto_cipher_alg(tfm) 55 crypto_ctr_crypt_final(struct blkcipher_walk *walk, struct crypto_cipher *tfm) argument 74 crypto_ctr_crypt_segment(struct blkcipher_walk *walk, struct crypto_cipher *tfm) argument 100 crypto_ctr_crypt_inplace(struct blkcipher_walk *walk, struct crypto_cipher *tfm) argument 132 struct crypto_blkcipher *tfm = desc->tfm; local 158 crypto_ctr_init_tfm(struct crypto_tfm *tfm) argument 174 crypto_ctr_exit_tfm(struct crypto_tfm *tfm) argument 280 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); local 306 crypto_rfc3686_init_tfm(struct crypto_tfm *tfm) argument 329 crypto_rfc3686_exit_tfm(struct crypto_tfm *tfm) argument [all...] |
H A D | cryptd.c | 164 static inline struct cryptd_queue *cryptd_get_queue(struct crypto_tfm *tfm) argument 166 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); 203 desc.tfm = child; 219 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(req->tfm); 228 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(req->tfm); 239 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); local 242 queue = cryptd_get_queue(crypto_ablkcipher_tfm(tfm)); 259 static int cryptd_blkcipher_init_tfm(struct crypto_tfm *tfm) argument 261 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); 264 struct cryptd_blkcipher_ctx *ctx = crypto_tfm_ctx(tfm); 277 cryptd_blkcipher_exit_tfm(struct crypto_tfm *tfm) argument 374 cryptd_hash_init_tfm(struct crypto_tfm *tfm) argument 393 cryptd_hash_exit_tfm(struct crypto_tfm *tfm) argument 420 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 673 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 691 cryptd_aead_init_tfm(struct crypto_tfm *tfm) argument 709 cryptd_aead_exit_tfm(struct crypto_tfm *tfm) argument 822 struct crypto_tfm *tfm; local 843 cryptd_ablkcipher_child(struct cryptd_ablkcipher *tfm) argument 850 cryptd_free_ablkcipher(struct cryptd_ablkcipher *tfm) argument 860 struct crypto_ahash *tfm; local 877 cryptd_ahash_child(struct cryptd_ahash *tfm) argument 892 cryptd_free_ahash(struct cryptd_ahash *tfm) argument 902 struct crypto_aead *tfm; local 918 cryptd_aead_child(struct cryptd_aead *tfm) argument 926 cryptd_free_aead(struct cryptd_aead *tfm) argument [all...] |
H A D | ansi_cprng.c | 54 struct crypto_cipher *tfm; member in struct:prng_context 163 crypto_cipher_encrypt_one(ctx->tfm, output, tmp); 276 crypto_free_cipher(ctx->tfm); 309 ret = crypto_cipher_setkey(ctx->tfm, prng_key, klen); 312 crypto_cipher_get_flags(ctx->tfm)); 323 static int cprng_init(struct crypto_tfm *tfm) argument 325 struct prng_context *ctx = crypto_tfm_ctx(tfm); 328 ctx->tfm = crypto_alloc_cipher("aes", 0, 0); 329 if (IS_ERR(ctx->tfm)) { 330 dbgprint(KERN_CRIT "Failed to alloc tfm fo 347 cprng_exit(struct crypto_tfm *tfm) argument 352 cprng_get_random(struct crypto_rng *tfm, u8 *rdata, unsigned int dlen) argument 366 cprng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) argument 386 fips_cprng_get_random(struct crypto_rng *tfm, u8 *rdata, unsigned int dlen) argument 394 fips_cprng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) argument [all...] |
H A D | crc32c.c | 63 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); 76 static int chksum_setkey(struct crypto_shash *tfm, const u8 *key, argument 79 struct chksum_ctx *mctx = crypto_shash_ctx(tfm); 82 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); 123 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); 128 static int crc32c_cra_init(struct crypto_tfm *tfm) argument 130 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm);
|
H A D | zlib.c | 67 static int zlib_init(struct crypto_tfm *tfm) argument 72 static void zlib_exit(struct crypto_tfm *tfm) argument 74 struct zlib_ctx *ctx = crypto_tfm_ctx(tfm); 81 static int zlib_compress_setup(struct crypto_pcomp *tfm, void *params, argument 84 struct zlib_ctx *ctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); 130 static int zlib_compress_init(struct crypto_pcomp *tfm) argument 133 struct zlib_ctx *dctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); 143 static int zlib_compress_update(struct crypto_pcomp *tfm, argument 147 struct zlib_ctx *dctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); 181 static int zlib_compress_final(struct crypto_pcomp *tfm, argument 212 zlib_decompress_setup(struct crypto_pcomp *tfm, void *params, unsigned int len) argument 244 zlib_decompress_init(struct crypto_pcomp *tfm) argument 257 zlib_decompress_update(struct crypto_pcomp *tfm, struct comp_request *req) argument 296 zlib_decompress_final(struct crypto_pcomp *tfm, struct comp_request *req) argument [all...] |
H A D | blkcipher.c | 302 walk->walk_blocksize = crypto_blkcipher_blocksize(desc->tfm); 304 walk->ivsize = crypto_blkcipher_ivsize(desc->tfm); 305 walk->alignmask = crypto_blkcipher_alignmask(desc->tfm); 314 walk->walk_blocksize = crypto_blkcipher_blocksize(desc->tfm); 316 walk->ivsize = crypto_blkcipher_ivsize(desc->tfm); 317 walk->alignmask = crypto_blkcipher_alignmask(desc->tfm); 353 walk->cipher_blocksize = crypto_blkcipher_blocksize(desc->tfm); 354 walk->ivsize = crypto_blkcipher_ivsize(desc->tfm); 355 walk->alignmask = crypto_blkcipher_alignmask(desc->tfm); 362 struct crypto_aead *tfm, 360 blkcipher_aead_walk_virt_block(struct blkcipher_desc *desc, struct blkcipher_walk *walk, struct crypto_aead *tfm, unsigned int blocksize) argument 374 setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument 396 setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument 412 async_setkey(struct crypto_ablkcipher *tfm, const u8 *key, unsigned int keylen) argument 420 struct crypto_tfm *tfm = req->base.tfm; local 434 struct crypto_tfm *tfm = req->base.tfm; local 460 crypto_init_blkcipher_ops_async(struct crypto_tfm *tfm) argument 478 crypto_init_blkcipher_ops_sync(struct crypto_tfm *tfm) argument 497 crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument 720 skcipher_geniv_init(struct crypto_tfm *tfm) argument 736 skcipher_geniv_exit(struct crypto_tfm *tfm) argument [all...] |
H A D | ecb.c | 43 struct crypto_cipher *tfm, 46 int bsize = crypto_cipher_blocksize(tfm); 57 fn(crypto_cipher_tfm(tfm), wdst, wsrc); 74 struct crypto_blkcipher *tfm = desc->tfm; local 75 struct crypto_ecb_ctx *ctx = crypto_blkcipher_ctx(tfm); 88 struct crypto_blkcipher *tfm = desc->tfm; local 89 struct crypto_ecb_ctx *ctx = crypto_blkcipher_ctx(tfm); 97 static int crypto_ecb_init_tfm(struct crypto_tfm *tfm) argument 41 crypto_ecb_crypt(struct blkcipher_desc *desc, struct blkcipher_walk *walk, struct crypto_cipher *tfm, void (*fn)(struct crypto_tfm *, u8 *, const u8 *)) argument 112 crypto_ecb_exit_tfm(struct crypto_tfm *tfm) argument [all...] |
H A D | xcbc.c | 33 * | <parent tfm> 84 unsigned long alignmask = crypto_shash_alignmask(pdesc->tfm); 86 int bs = crypto_shash_blocksize(pdesc->tfm); 98 struct crypto_shash *parent = pdesc->tfm; 102 struct crypto_cipher *tfm = tctx->child; local 120 crypto_cipher_encrypt_one(tfm, prev, prev); 128 crypto_cipher_encrypt_one(tfm, prev, prev); 144 struct crypto_shash *parent = pdesc->tfm; 148 struct crypto_cipher *tfm = tctx->child; local 172 crypto_cipher_encrypt_one(tfm, ou 177 xcbc_init_tfm(struct crypto_tfm *tfm) argument 193 xcbc_exit_tfm(struct crypto_tfm *tfm) argument [all...] |
H A D | rng.c | 32 static int rngapi_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) argument 46 err = crypto_rng_alg(tfm)->rng_reset(tfm, seed, slen); 52 static int crypto_init_rng_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument 54 struct rng_alg *alg = &tfm->__crt_alg->cra_rng; 55 struct rng_tfm *ops = &tfm->crt_rng;
|
H A D | aead.c | 29 static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, argument 32 struct aead_alg *aead = crypto_aead_alg(tfm); 33 unsigned long alignmask = crypto_aead_alignmask(tfm); 45 ret = aead->setkey(tfm, alignbuffer, keylen); 51 static int setkey(struct crypto_aead *tfm, const u8 *key, unsigned int keylen) argument 53 struct aead_alg *aead = crypto_aead_alg(tfm); 54 unsigned long alignmask = crypto_aead_alignmask(tfm); 57 return setkey_unaligned(tfm, key, keylen); 59 return aead->setkey(tfm, key, keylen); 62 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigne argument 93 crypto_init_aead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument 177 crypto_init_nivaead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) argument 374 aead_geniv_init(struct crypto_tfm *tfm) argument 390 aead_geniv_exit(struct crypto_tfm *tfm) argument 527 struct crypto_tfm *tfm; local [all...] |
H A D | 842.c | 50 static int nx842_init(struct crypto_tfm *tfm) argument 52 struct nx842_ctx *ctx = crypto_tfm_ctx(tfm); 63 static void nx842_exit(struct crypto_tfm *tfm) argument 65 struct nx842_ctx *ctx = crypto_tfm_ctx(tfm); 77 static int nx842_crypto_compress(struct crypto_tfm *tfm, const u8 *src, argument 80 struct nx842_ctx *ctx = crypto_tfm_ctx(tfm); 119 static int nx842_crypto_decompress(struct crypto_tfm *tfm, const u8 *src, argument 122 struct nx842_ctx *ctx = crypto_tfm_ctx(tfm);
|
H A D | deflate.c | 21 * to configure on a per-tfm basis in the future. 23 * Currently, compression history is not maintained between tfm calls, as 104 static int deflate_init(struct crypto_tfm *tfm) argument 106 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); 119 static void deflate_exit(struct crypto_tfm *tfm) argument 121 struct deflate_ctx *ctx = crypto_tfm_ctx(tfm); 127 static int deflate_compress(struct crypto_tfm *tfm, const u8 *src, argument 131 struct deflate_ctx *dctx = crypto_tfm_ctx(tfm); 156 static int deflate_decompress(struct crypto_tfm *tfm, const u8 *src, argument 161 struct deflate_ctx *dctx = crypto_tfm_ctx(tfm); [all...] |
H A D | krng.c | 19 static int krng_get_random(struct crypto_rng *tfm, u8 *rdata, unsigned int dlen) argument 25 static int krng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) argument
|
H A D | testmgr.c | 187 static int test_hash(struct crypto_ahash *tfm, struct hash_testvec *template, argument 190 const char *algo = crypto_tfm_alg_driver_name(crypto_ahash_tfm(tfm)); 205 req = ahash_request_alloc(tfm, GFP_KERNEL); 228 crypto_ahash_clear_flags(tfm, ~0); 229 ret = crypto_ahash_setkey(tfm, template[i].key, 273 crypto_ahash_digestsize(tfm))) { 276 hexdump(result, crypto_ahash_digestsize(tfm)); 305 crypto_ahash_clear_flags(tfm, ~0); 306 ret = crypto_ahash_setkey(tfm, template[i].key, 341 crypto_ahash_digestsize(tfm))) { 361 __test_aead(struct crypto_aead *tfm, int enc, struct aead_testvec *template, unsigned int tcount, const bool diff_dst) argument 732 test_aead(struct crypto_aead *tfm, int enc, struct aead_testvec *template, unsigned int tcount) argument 746 test_cipher(struct crypto_cipher *tfm, int enc, struct cipher_testvec *template, unsigned int tcount) argument 821 __test_skcipher(struct crypto_ablkcipher *tfm, int enc, struct cipher_testvec *template, unsigned int tcount, const bool diff_dst) argument 1075 test_skcipher(struct crypto_ablkcipher *tfm, int enc, struct cipher_testvec *template, unsigned int tcount) argument 1089 test_comp(struct crypto_comp *tfm, struct comp_testvec *ctemplate, struct comp_testvec *dtemplate, int ctcount, int dtcount) argument 1169 test_pcomp(struct crypto_pcomp *tfm, struct pcomp_testvec *ctemplate, struct pcomp_testvec *dtemplate, int ctcount, int dtcount) argument 1346 test_cprng(struct crypto_rng *tfm, struct cprng_testvec *template, unsigned int tcount) argument 1410 struct crypto_aead *tfm; local 1439 struct crypto_cipher *tfm; local 1468 struct crypto_ablkcipher *tfm; local 1497 struct crypto_comp *tfm; local 1519 struct crypto_pcomp *tfm; local 1541 struct crypto_ahash *tfm; local 1564 struct crypto_shash *tfm; local [all...] |
H A D | tea.c | 47 static int tea_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument 50 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); 62 static void tea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 66 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); 90 static void tea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 94 struct tea_ctx *ctx = crypto_tfm_ctx(tfm); 120 static int xtea_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument 123 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); 135 static void xtea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 139 struct xtea_ctx *ctx = crypto_tfm_ctx(tfm); 156 xtea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 179 xeta_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 200 xeta_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument [all...] |
H A D | cts.c | 80 int bsize = crypto_blkcipher_blocksize(desc->tfm); 100 lcldesc.tfm = ctx->child; 129 struct crypto_cts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 130 int bsize = crypto_blkcipher_blocksize(desc->tfm); 136 lcldesc.tfm = ctx->child; 166 int bsize = crypto_blkcipher_blocksize(desc->tfm); 183 lcldesc.tfm = ctx->child; 223 struct crypto_cts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 224 int bsize = crypto_blkcipher_blocksize(desc->tfm); 230 lcldesc.tfm 252 crypto_cts_init_tfm(struct crypto_tfm *tfm) argument 267 crypto_cts_exit_tfm(struct crypto_tfm *tfm) argument [all...] |
H A D | ghash-generic.c | 44 static int ghash_setkey(struct crypto_shash *tfm, argument 47 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); 50 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); 67 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); 122 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); 134 static void ghash_exit_tfm(struct crypto_tfm *tfm) argument 136 struct ghash_ctx *ctx = crypto_tfm_ctx(tfm);
|