/arch/s390/crypto/ |
H A D | aes_s390.c | 94 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, argument 97 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); 101 sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags & 106 tfm->crt_flags &= ~CRYPTO_TFM_RES_MASK; 107 tfm->crt_flags |= (sctx->fallback.cip->base.crt_flags & 113 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument 116 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); 117 u32 *flags = &tfm->crt_flags; 132 return setkey_fallback_cip(tfm, in_key, key_len); 135 static void aes_encrypt(struct crypto_tfm *tfm, u argument 160 aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument 185 fallback_init_cip(struct crypto_tfm *tfm) argument 202 fallback_exit_cip(struct crypto_tfm *tfm) argument 233 setkey_fallback_blk(struct crypto_tfm *tfm, const u8 *key, unsigned int len) argument 257 struct crypto_blkcipher *tfm; local 274 struct crypto_blkcipher *tfm; local 286 ecb_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, unsigned int key_len) argument 366 fallback_init_blk(struct crypto_tfm *tfm) argument 383 fallback_exit_blk(struct crypto_tfm *tfm) argument 415 cbc_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, unsigned int key_len) argument 526 xts_fallback_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int len) argument 550 struct crypto_blkcipher *tfm; local 567 struct crypto_blkcipher *tfm; local 579 xts_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, unsigned int key_len) argument 679 xts_fallback_init(struct crypto_tfm *tfm) argument 695 xts_fallback_exit(struct crypto_tfm *tfm) argument 728 ctr_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, unsigned int key_len) argument [all...] |
H A D | des_s390.c | 34 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, argument 37 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); 38 u32 *flags = &tfm->crt_flags; 51 static void des_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument 53 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); 58 static void des_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument 60 struct s390_des_ctx *ctx = crypto_tfm_ctx(tfm); 139 struct s390_des_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 150 struct s390_des_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 182 struct s390_des_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 235 des3_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len) argument 252 des3_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 259 des3_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument [all...] |
H A D | ghash_s390.c | 37 static int ghash_setkey(struct crypto_shash *tfm, argument 40 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); 43 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); 57 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); 115 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm);
|
H A D | sha_common.c | 24 unsigned int bsize = crypto_shash_blocksize(desc->tfm); 64 unsigned int bsize = crypto_shash_blocksize(desc->tfm); 94 memcpy(out, ctx->state, crypto_shash_digestsize(desc->tfm));
|
/arch/x86/crypto/ |
H A D | ghash-clmulni-intel_glue.c | 57 static int ghash_setkey(struct crypto_shash *tfm, argument 60 struct ghash_ctx *ctx = crypto_shash_ctx(tfm); 63 crypto_shash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); 76 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); 129 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); 159 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 160 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); 172 desc->tfm = child; 183 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 184 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm); 201 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 216 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); local 235 ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen) argument 252 ghash_async_init_tfm(struct crypto_tfm *tfm) argument 268 ghash_async_exit_tfm(struct crypto_tfm *tfm) argument [all...] |
H A D | fpu.c | 47 struct crypto_fpu_ctx *ctx = crypto_blkcipher_ctx(desc_in->tfm); 50 .tfm = child, 56 err = crypto_blkcipher_crt(desc.tfm)->encrypt(&desc, dst, src, nbytes); 66 struct crypto_fpu_ctx *ctx = crypto_blkcipher_ctx(desc_in->tfm); 69 .tfm = child, 75 err = crypto_blkcipher_crt(desc.tfm)->decrypt(&desc, dst, src, nbytes); 80 static int crypto_fpu_init_tfm(struct crypto_tfm *tfm) argument 82 struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); 84 struct crypto_fpu_ctx *ctx = crypto_tfm_ctx(tfm); 95 static void crypto_fpu_exit_tfm(struct crypto_tfm *tfm) argument [all...] |
H A D | aes_glue.c | 25 static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 27 aes_enc_blk(crypto_tfm_ctx(tfm), dst, src); 30 static void aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 32 aes_dec_blk(crypto_tfm_ctx(tfm), dst, src);
|
H A D | twofish_glue.c | 54 static void twofish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 56 twofish_enc_blk(crypto_tfm_ctx(tfm), dst, src); 59 static void twofish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 61 twofish_dec_blk(crypto_tfm_ctx(tfm), dst, src);
|
H A D | aesni-intel_glue.c | 150 aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm) argument 155 crypto_tfm_ctx(crypto_aead_tfm(tfm)), AESNI_ALIGN); 169 static int aes_set_key_common(struct crypto_tfm *tfm, void *raw_ctx, argument 173 u32 *flags = &tfm->crt_flags; 193 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, argument 196 return aes_set_key_common(tfm, crypto_tfm_ctx(tfm), in_key, key_len); 199 static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 201 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); 212 static void aes_decrypt(struct crypto_tfm *tfm, u argument 246 __aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 253 __aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 489 ablk_set_key(struct crypto_ablkcipher *tfm, const u8 *key, unsigned int key_len) argument 507 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); local 528 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); local 547 ablk_exit(struct crypto_tfm *tfm) argument 554 ablk_init_common(struct crypto_tfm *tfm, struct cryptd_ablkcipher *cryptd_tfm) argument 564 ablk_ecb_init(struct crypto_tfm *tfm) argument 599 ablk_cbc_init(struct crypto_tfm *tfm) argument 636 ablk_ctr_init(struct crypto_tfm *tfm) argument 674 ablk_rfc3686_ctr_init(struct crypto_tfm *tfm) argument 715 ablk_lrw_init(struct crypto_tfm *tfm) argument 754 ablk_pcbc_init(struct crypto_tfm *tfm) argument 793 ablk_xts_init(struct crypto_tfm *tfm) argument 832 rfc4106_init(struct crypto_tfm *tfm) argument 852 rfc4106_exit(struct crypto_tfm *tfm) argument 936 struct crypto_tfm *tfm = crypto_aead_tfm(parent); local 1014 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 1035 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 1084 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local 1162 struct crypto_aead *tfm = crypto_aead_reqtfm(req); local [all...] |
H A D | salsa20_glue.c | 45 static int setkey(struct crypto_tfm *tfm, const u8 *key, argument 48 struct salsa20_ctx *ctx = crypto_tfm_ctx(tfm); 58 struct crypto_blkcipher *tfm = desc->tfm; local 59 struct salsa20_ctx *ctx = crypto_blkcipher_ctx(tfm);
|
H A D | serpent_sse2_glue.c | 79 struct serpent_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 151 struct serpent_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 192 struct serpent_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 298 struct serpent_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 315 struct serpent_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 442 static int lrw_serpent_setkey(struct crypto_tfm *tfm, const u8 *key, argument 445 struct serpent_lrw_ctx *ctx = crypto_tfm_ctx(tfm); 460 struct serpent_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 486 struct serpent_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 509 static void lrw_exit_tfm(struct crypto_tfm *tfm) argument 521 xts_serpent_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument 599 ablk_set_key(struct crypto_ablkcipher *tfm, const u8 *key, unsigned int key_len) argument 617 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); local 631 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); local 649 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); local 672 ablk_exit(struct crypto_tfm *tfm) argument 679 ablk_init(struct crypto_tfm *tfm) argument [all...] |
H A D | twofish_glue_3way.c | 67 struct twofish_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 129 struct twofish_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 170 struct twofish_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 271 struct twofish_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 288 struct twofish_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 405 static int lrw_twofish_setkey(struct crypto_tfm *tfm, const u8 *key, argument 408 struct twofish_lrw_ctx *ctx = crypto_tfm_ctx(tfm); 412 &tfm->crt_flags); 422 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 439 struct twofish_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 453 lrw_exit_tfm(struct crypto_tfm *tfm) argument 465 xts_twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument [all...] |
H A D | crc32c-intel.c | 103 u32 *mctx = crypto_shash_ctx(desc->tfm); 144 return __crc32c_intel_finup(crypto_shash_ctx(desc->tfm), data, len, 148 static int crc32c_intel_cra_init(struct crypto_tfm *tfm) argument 150 u32 *key = crypto_tfm_ctx(tfm);
|
H A D | blowfish_glue.c | 70 static void blowfish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 72 blowfish_enc_blk(crypto_tfm_ctx(tfm), dst, src); 75 static void blowfish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 77 blowfish_dec_blk(crypto_tfm_ctx(tfm), dst, src); 84 struct bf_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 146 struct bf_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 187 struct bf_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 286 struct bf_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 354 ctr_crypt_final(crypto_blkcipher_ctx(desc->tfm), &walk);
|
H A D | camellia_glue.c | 87 static void camellia_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 89 camellia_enc_blk(crypto_tfm_ctx(tfm), dst, src); 92 static void camellia_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 94 camellia_dec_blk(crypto_tfm_ctx(tfm), dst, src); 1308 static int camellia_setkey(struct crypto_tfm *tfm, const u8 *in_key, argument 1311 return __camellia_setkey(crypto_tfm_ctx(tfm), in_key, key_len, 1312 &tfm->crt_flags); 1319 struct camellia_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 1381 struct camellia_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 1422 struct camellia_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); 1655 lrw_camellia_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument 1705 lrw_exit_tfm(struct crypto_tfm *tfm) argument 1717 xts_camellia_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) argument [all...] |