/linux-master/arch/arm64/crypto/ |
H A D | aes-ce-setkey.h | 3 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key,
|
/linux-master/crypto/ |
H A D | 842.c | 31 static void *crypto842_alloc_ctx(struct crypto_scomp *tfm) argument 42 static int crypto842_init(struct crypto_tfm *tfm) argument 44 struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm); 53 static void crypto842_free_ctx(struct crypto_scomp *tfm, void *ctx) argument 58 static void crypto842_exit(struct crypto_tfm *tfm) argument 60 struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm); 65 static int crypto842_compress(struct crypto_tfm *tfm, argument 69 struct crypto842_ctx *ctx = crypto_tfm_ctx(tfm); 74 static int crypto842_scompress(struct crypto_scomp *tfm, argument 81 static int crypto842_decompress(struct crypto_tfm *tfm, argument 88 crypto842_sdecompress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) argument [all...] |
H A D | crypto_null.c | 27 static int null_compress(struct crypto_tfm *tfm, const u8 *src, argument 59 static int null_hash_setkey(struct crypto_shash *tfm, const u8 *key, argument 63 static int null_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, argument 67 static int null_setkey(struct crypto_tfm *tfm, const u8 *key, argument 71 static void null_crypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) argument 155 struct crypto_sync_skcipher *tfm; local 158 tfm = crypto_default_null_skcipher; 160 if (!tfm) { 161 tfm = crypto_alloc_sync_skcipher("ecb(cipher_null)", 0, 0); 162 if (IS_ERR(tfm)) [all...] |
H A D | lz4.c | 19 static void *lz4_alloc_ctx(struct crypto_scomp *tfm) argument 30 static int lz4_init(struct crypto_tfm *tfm) argument 32 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); 41 static void lz4_free_ctx(struct crypto_scomp *tfm, void *ctx) argument 46 static void lz4_exit(struct crypto_tfm *tfm) argument 48 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); 66 static int lz4_scompress(struct crypto_scomp *tfm, const u8 *src, argument 73 static int lz4_compress_crypto(struct crypto_tfm *tfm, const u8 *src, argument 76 struct lz4_ctx *ctx = crypto_tfm_ctx(tfm); 93 static int lz4_sdecompress(struct crypto_scomp *tfm, cons argument 100 lz4_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen) argument [all...] |
H A D | lz4hc.c | 18 static void *lz4hc_alloc_ctx(struct crypto_scomp *tfm) argument 29 static int lz4hc_init(struct crypto_tfm *tfm) argument 31 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); 40 static void lz4hc_free_ctx(struct crypto_scomp *tfm, void *ctx) argument 45 static void lz4hc_exit(struct crypto_tfm *tfm) argument 47 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); 65 static int lz4hc_scompress(struct crypto_scomp *tfm, const u8 *src, argument 72 static int lz4hc_compress_crypto(struct crypto_tfm *tfm, const u8 *src, argument 76 struct lz4hc_ctx *ctx = crypto_tfm_ctx(tfm); 94 static int lz4hc_sdecompress(struct crypto_scomp *tfm, cons argument 101 lz4hc_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen) argument [all...] |
H A D | lzo-rle.c | 18 static void *lzorle_alloc_ctx(struct crypto_scomp *tfm) argument 29 static int lzorle_init(struct crypto_tfm *tfm) argument 31 struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm); 40 static void lzorle_free_ctx(struct crypto_scomp *tfm, void *ctx) argument 45 static void lzorle_exit(struct crypto_tfm *tfm) argument 47 struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm); 67 static int lzorle_compress(struct crypto_tfm *tfm, const u8 *src, argument 70 struct lzorle_ctx *ctx = crypto_tfm_ctx(tfm); 75 static int lzorle_scompress(struct crypto_scomp *tfm, const u8 *src, argument 97 static int lzorle_decompress(struct crypto_tfm *tfm, cons argument 103 lzorle_sdecompress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) argument [all...] |
H A D | lzo.c | 18 static void *lzo_alloc_ctx(struct crypto_scomp *tfm) argument 29 static int lzo_init(struct crypto_tfm *tfm) argument 31 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); 40 static void lzo_free_ctx(struct crypto_scomp *tfm, void *ctx) argument 45 static void lzo_exit(struct crypto_tfm *tfm) argument 47 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); 67 static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, argument 70 struct lzo_ctx *ctx = crypto_tfm_ctx(tfm); 75 static int lzo_scompress(struct crypto_scomp *tfm, const u8 *src, argument 97 static int lzo_decompress(struct crypto_tfm *tfm, cons argument 103 lzo_sdecompress(struct crypto_scomp *tfm, const u8 *src, unsigned int slen, u8 *dst, unsigned int *dlen, void *ctx) argument [all...] |
/linux-master/drivers/crypto/cavium/zip/ |
H A D | zip_crypto.h | 60 int zip_alloc_comp_ctx_deflate(struct crypto_tfm *tfm); 61 int zip_alloc_comp_ctx_lzs(struct crypto_tfm *tfm); 62 void zip_free_comp_ctx(struct crypto_tfm *tfm); 63 int zip_comp_compress(struct crypto_tfm *tfm, 66 int zip_comp_decompress(struct crypto_tfm *tfm, 70 void *zip_alloc_scomp_ctx_deflate(struct crypto_scomp *tfm); 71 void *zip_alloc_scomp_ctx_lzs(struct crypto_scomp *tfm); 72 void zip_free_scomp_ctx(struct crypto_scomp *tfm, void *zip_ctx); 73 int zip_scomp_compress(struct crypto_scomp *tfm, 76 int zip_scomp_decompress(struct crypto_scomp *tfm, [all...] |
/linux-master/drivers/crypto/nx/ |
H A D | nx-842.c | 104 int nx842_crypto_init(struct crypto_tfm *tfm, struct nx842_driver *driver) argument 106 struct nx842_crypto_ctx *ctx = crypto_tfm_ctx(tfm); 124 void nx842_crypto_exit(struct crypto_tfm *tfm) argument 126 struct nx842_crypto_ctx *ctx = crypto_tfm_ctx(tfm); 249 int nx842_crypto_compress(struct crypto_tfm *tfm, argument 253 struct nx842_crypto_ctx *ctx = crypto_tfm_ctx(tfm); 432 int nx842_crypto_decompress(struct crypto_tfm *tfm, argument 436 struct nx842_crypto_ctx *ctx = crypto_tfm_ctx(tfm);
|
/linux-master/drivers/misc/sgi-gru/ |
H A D | grukdump.c | 70 struct gru_tlb_fault_map *tfm; local 77 tfm = get_tfm(gru->gs_gru_base_vaddr, i); 78 if (gru_user_copy_handle(&ubuf, tfm))
|
/linux-master/include/crypto/ |
H A D | blowfish.h | 21 int blowfish_setkey(struct crypto_tfm *tfm, const u8 *key,
|
H A D | cast5.h | 19 int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
|
/linux-master/include/crypto/internal/ |
H A D | rng.h | 29 static inline void *crypto_rng_ctx(struct crypto_rng *tfm) argument 31 return crypto_tfm_ctx(&tfm->base); 34 static inline void crypto_rng_set_entropy(struct crypto_rng *tfm, argument 37 crypto_rng_alg(tfm)->set_ent(tfm, data, len);
|
/linux-master/net/mac80211/ |
H A D | aead_api.h | 13 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, 17 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, 21 void aead_key_free(struct crypto_aead *tfm);
|
H A D | aes_ccm.h | 21 ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, argument 25 return aead_encrypt(tfm, b_0, aad + 2, 31 ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, argument 35 return aead_decrypt(tfm, b_0, aad + 2, 40 static inline void ieee80211_aes_key_free(struct crypto_aead *tfm) argument 42 return aead_key_free(tfm);
|
H A D | aes_cmac.h | 14 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, 16 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, 18 void ieee80211_aes_cmac_key_free(struct crypto_shash *tfm);
|
H A D | aes_gcm.h | 13 static inline int ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, argument 17 return aead_encrypt(tfm, j_0, aad + 2, 22 static inline int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, argument 26 return aead_decrypt(tfm, j_0, aad + 2, 38 static inline void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm) argument 40 return aead_key_free(tfm);
|
H A D | aes_gmac.h | 17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, 19 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm);
|
/linux-master/net/mac802154/ |
H A D | llsec.h | 22 /* one tfm for each authsize (4/8/16) */ 23 struct crypto_aead *tfm[3]; member in struct:mac802154_llsec_key
|
/linux-master/arch/arm/crypto/ |
H A D | aes-ce-glue.c | 137 static int ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument 140 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); 150 static int xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, argument 153 struct crypto_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm); 156 ret = xts_verify_key(tfm, in_key, key_len); 169 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 170 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); 189 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 190 struct crypto_aes_ctx *ctx = crypto_skcipher_ctx(tfm); 210 struct crypto_skcipher *tfm local 240 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 269 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 327 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 385 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 421 ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) argument 446 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 518 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local [all...] |
H A D | aes-cipher-glue.c | 16 static void aes_arm_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument 18 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); 24 static void aes_arm_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) argument 26 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
|
H A D | aes-neonbs-glue.c | 68 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument 71 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); 92 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 93 struct aesbs_ctx *ctx = crypto_skcipher_ctx(tfm); 127 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, argument 130 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); 151 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 152 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); 166 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 167 struct aesbs_cbc_ctx *ctx = crypto_skcipher_ctx(tfm); 192 cbc_init(struct crypto_skcipher *tfm) argument 209 cbc_exit(struct crypto_skcipher *tfm) argument 216 aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument 237 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 270 ctr_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) argument 293 aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) argument 314 xts_init(struct crypto_skcipher *tfm) argument 329 xts_exit(struct crypto_skcipher *tfm) argument 341 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local [all...] |
H A D | chacha-glue.c | 145 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 146 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm); 163 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); local 164 struct chacha_ctx *ctx = crypto_skcipher_ctx(tfm);
|
H A D | crc32-ce-glue.c | 36 static int crc32_cra_init(struct crypto_tfm *tfm) argument 38 u32 *key = crypto_tfm_ctx(tfm); 44 static int crc32c_cra_init(struct crypto_tfm *tfm) argument 46 u32 *key = crypto_tfm_ctx(tfm); 65 u32 *mctx = crypto_shash_ctx(desc->tfm);
|
H A D | curve25519-glue.c | 49 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, argument 52 u8 *secret = kpp_tfm_ctx(tfm); 66 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); local 67 const u8 *secret = kpp_tfm_ctx(tfm); 97 static unsigned int curve25519_max_size(struct crypto_kpp *tfm) argument
|