/kernel/linux/linux-6.6/crypto/ |
H A D | cbc.c | 9 #include <crypto/internal/cipher.h> 25 struct crypto_cipher *cipher; in crypto_cbc_encrypt_segment() local 29 cipher = skcipher_cipher_simple(skcipher); in crypto_cbc_encrypt_segment() 30 tfm = crypto_cipher_tfm(cipher); in crypto_cbc_encrypt_segment() 31 fn = crypto_cipher_alg(cipher)->cia_encrypt; in crypto_cbc_encrypt_segment() 52 struct crypto_cipher *cipher; in crypto_cbc_encrypt_inplace() local 56 cipher = skcipher_cipher_simple(skcipher); in crypto_cbc_encrypt_inplace() 57 tfm = crypto_cipher_tfm(cipher); in crypto_cbc_encrypt_inplace() 58 fn = crypto_cipher_alg(cipher)->cia_encrypt; in crypto_cbc_encrypt_inplace() 100 struct crypto_cipher *cipher; in crypto_cbc_decrypt_segment() local 130 struct crypto_cipher *cipher; crypto_cbc_decrypt_inplace() local [all...] |
H A D | ecb.c | 9 #include <crypto/internal/cipher.h> 17 struct crypto_cipher *cipher, in crypto_ecb_crypt() 20 const unsigned int bsize = crypto_cipher_blocksize(cipher); in crypto_ecb_crypt() 32 fn(crypto_cipher_tfm(cipher), dst, src); in crypto_ecb_crypt() 47 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in crypto_ecb_encrypt() local 49 return crypto_ecb_crypt(req, cipher, in crypto_ecb_encrypt() 50 crypto_cipher_alg(cipher)->cia_encrypt); in crypto_ecb_encrypt() 56 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in crypto_ecb_decrypt() local 58 return crypto_ecb_crypt(req, cipher, in crypto_ecb_decrypt() 59 crypto_cipher_alg(cipher) in crypto_ecb_decrypt() 16 crypto_ecb_crypt(struct skcipher_request *req, struct crypto_cipher *cipher, void (*fn)(struct crypto_tfm *, u8 *, const u8 *)) crypto_ecb_crypt() argument [all...] |
H A D | cmac.c | 14 #include <crypto/internal/cipher.h> 206 struct crypto_cipher *cipher; in cmac_init_tfm() local 209 cipher = crypto_spawn_cipher(spawn); in cmac_init_tfm() 210 if (IS_ERR(cipher)) in cmac_init_tfm() 211 return PTR_ERR(cipher); in cmac_init_tfm() 213 ctx->child = cipher; in cmac_init_tfm() 222 struct crypto_cipher *cipher; in cmac_clone_tfm() local 224 cipher = crypto_clone_cipher(octx->child); in cmac_clone_tfm() 225 if (IS_ERR(cipher)) in cmac_clone_tfm() 226 return PTR_ERR(cipher); in cmac_clone_tfm() [all...] |
H A D | pcbc.c | 13 #include <crypto/internal/cipher.h> 67 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in crypto_pcbc_encrypt() local 77 cipher); in crypto_pcbc_encrypt() 80 cipher); in crypto_pcbc_encrypt() 134 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in crypto_pcbc_decrypt() local 144 cipher); in crypto_pcbc_decrypt() 147 cipher); in crypto_pcbc_decrypt() 193 MODULE_DESCRIPTION("PCBC block cipher mode of operation");
|
H A D | ofb.c | 11 #include <crypto/internal/cipher.h> 21 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in crypto_ofb_crypt() local 22 const unsigned int bsize = crypto_cipher_blocksize(cipher); in crypto_ofb_crypt() 35 crypto_cipher_encrypt_one(cipher, iv, iv); in crypto_ofb_crypt() 45 crypto_cipher_encrypt_one(cipher, walk.iv, walk.iv); in crypto_ofb_crypt() 65 /* OFB mode is a stream cipher. */ in crypto_ofb_create() 104 MODULE_DESCRIPTION("OFB block cipher mode of operation");
|
H A D | ctr.c | 10 #include <crypto/internal/cipher.h> 102 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in crypto_ctr_crypt() local 103 const unsigned int bsize = crypto_cipher_blocksize(cipher); in crypto_ctr_crypt() 112 nbytes = crypto_ctr_crypt_inplace(&walk, cipher); in crypto_ctr_crypt() 114 nbytes = crypto_ctr_crypt_segment(&walk, cipher); in crypto_ctr_crypt() 120 crypto_ctr_crypt_final(&walk, cipher); in crypto_ctr_crypt() 148 /* CTR mode is a stream cipher. */ in crypto_ctr_create() 223 struct crypto_skcipher *cipher; in crypto_rfc3686_init_tfm() local 227 cipher = crypto_spawn_skcipher(spawn); in crypto_rfc3686_init_tfm() 228 if (IS_ERR(cipher)) in crypto_rfc3686_init_tfm() [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | cbc.c | 24 struct crypto_cipher *cipher; in crypto_cbc_encrypt_segment() local 28 cipher = skcipher_cipher_simple(skcipher); in crypto_cbc_encrypt_segment() 29 tfm = crypto_cipher_tfm(cipher); in crypto_cbc_encrypt_segment() 30 fn = crypto_cipher_alg(cipher)->cia_encrypt; in crypto_cbc_encrypt_segment() 51 struct crypto_cipher *cipher; in crypto_cbc_encrypt_inplace() local 55 cipher = skcipher_cipher_simple(skcipher); in crypto_cbc_encrypt_inplace() 56 tfm = crypto_cipher_tfm(cipher); in crypto_cbc_encrypt_inplace() 57 fn = crypto_cipher_alg(cipher)->cia_encrypt; in crypto_cbc_encrypt_inplace() 99 struct crypto_cipher *cipher; in crypto_cbc_decrypt_segment() local 103 cipher in crypto_cbc_decrypt_segment() 129 struct crypto_cipher *cipher; crypto_cbc_decrypt_inplace() local [all...] |
H A D | ecb.c | 16 struct crypto_cipher *cipher, in crypto_ecb_crypt() 19 const unsigned int bsize = crypto_cipher_blocksize(cipher); in crypto_ecb_crypt() 31 fn(crypto_cipher_tfm(cipher), dst, src); in crypto_ecb_crypt() 46 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in crypto_ecb_encrypt() local 48 return crypto_ecb_crypt(req, cipher, in crypto_ecb_encrypt() 49 crypto_cipher_alg(cipher)->cia_encrypt); in crypto_ecb_encrypt() 55 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in crypto_ecb_decrypt() local 57 return crypto_ecb_crypt(req, cipher, in crypto_ecb_decrypt() 58 crypto_cipher_alg(cipher)->cia_decrypt); in crypto_ecb_decrypt() 102 MODULE_DESCRIPTION("ECB block cipher mod 15 crypto_ecb_crypt(struct skcipher_request *req, struct crypto_cipher *cipher, void (*fn)(struct crypto_tfm *, u8 *, const u8 *)) crypto_ecb_crypt() argument [all...] |
/kernel/linux/linux-5.10/drivers/crypto/amcc/ |
H A D | crypto4xx_alg.c | 73 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_crypt() local 74 struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher); in crypto4xx_crypt() 121 static int crypto4xx_setkey_aes(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes() argument 127 struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher); in crypto4xx_setkey_aes() 177 int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_cbc() argument 180 return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_CBC, in crypto4xx_setkey_aes_cbc() 184 int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_cfb() argument 187 return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_CFB, in crypto4xx_setkey_aes_cfb() 191 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_ecb() argument 194 return crypto4xx_setkey_aes(cipher, ke in crypto4xx_setkey_aes_ecb() 198 crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) crypto4xx_setkey_aes_ofb() argument 205 crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) crypto4xx_setkey_rfc3686() argument 224 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); crypto4xx_rfc3686_encrypt() local 239 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); crypto4xx_rfc3686_decrypt() local 255 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); crypto4xx_ctr_crypt() local 287 crypto4xx_sk_setup_fallback(struct crypto4xx_ctx *ctx, struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) crypto4xx_sk_setup_fallback() argument 299 crypto4xx_setkey_aes_ctr(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) crypto4xx_setkey_aes_ctr() argument 366 crypto4xx_aead_setup_fallback(struct crypto4xx_ctx *ctx, struct crypto_aead *cipher, const u8 *key, unsigned int keylen) crypto4xx_aead_setup_fallback() argument 381 crypto4xx_setkey_aes_ccm(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) crypto4xx_setkey_aes_ccm() argument 483 crypto4xx_setauthsize_aead(struct crypto_aead *cipher, unsigned int authsize) crypto4xx_setauthsize_aead() argument 527 crypto4xx_setkey_aes_gcm(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) crypto4xx_setkey_aes_gcm() argument [all...] |
H A D | crypto4xx_core.h | 125 struct crypto_sync_skcipher *cipher; member 137 struct skcipher_alg cipher; member 163 int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher, 165 int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher, 167 int crypto4xx_setkey_aes_ctr(struct crypto_skcipher *cipher, 169 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher, 171 int crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher, 173 int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher, 236 int crypto4xx_setkey_aes_ccm(struct crypto_aead *cipher, 240 int crypto4xx_setkey_aes_gcm(struct crypto_aead *cipher, [all...] |
/kernel/linux/linux-6.6/drivers/crypto/amcc/ |
H A D | crypto4xx_alg.c | 73 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_crypt() local 74 struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher); in crypto4xx_crypt() 121 static int crypto4xx_setkey_aes(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes() argument 127 struct crypto4xx_ctx *ctx = crypto_skcipher_ctx(cipher); in crypto4xx_setkey_aes() 177 int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_cbc() argument 180 return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_CBC, in crypto4xx_setkey_aes_cbc() 184 int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_cfb() argument 187 return crypto4xx_setkey_aes(cipher, key, keylen, CRYPTO_MODE_CFB, in crypto4xx_setkey_aes_cfb() 191 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_ecb() argument 194 return crypto4xx_setkey_aes(cipher, ke in crypto4xx_setkey_aes_ecb() 198 crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) crypto4xx_setkey_aes_ofb() argument 205 crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) crypto4xx_setkey_rfc3686() argument 224 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); crypto4xx_rfc3686_encrypt() local 239 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); crypto4xx_rfc3686_decrypt() local 255 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); crypto4xx_ctr_crypt() local 287 crypto4xx_sk_setup_fallback(struct crypto4xx_ctx *ctx, struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) crypto4xx_sk_setup_fallback() argument 299 crypto4xx_setkey_aes_ctr(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) crypto4xx_setkey_aes_ctr() argument 366 crypto4xx_aead_setup_fallback(struct crypto4xx_ctx *ctx, struct crypto_aead *cipher, const u8 *key, unsigned int keylen) crypto4xx_aead_setup_fallback() argument 381 crypto4xx_setkey_aes_ccm(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) crypto4xx_setkey_aes_ccm() argument 483 crypto4xx_setauthsize_aead(struct crypto_aead *cipher, unsigned int authsize) crypto4xx_setauthsize_aead() argument 527 crypto4xx_setkey_aes_gcm(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) crypto4xx_setkey_aes_gcm() argument [all...] |
H A D | crypto4xx_core.h | 125 struct crypto_sync_skcipher *cipher; member 137 struct skcipher_alg cipher; member 163 int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher, 165 int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher, 167 int crypto4xx_setkey_aes_ctr(struct crypto_skcipher *cipher, 169 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher, 171 int crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher, 173 int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher, 236 int crypto4xx_setkey_aes_ccm(struct crypto_aead *cipher, 240 int crypto4xx_setkey_aes_gcm(struct crypto_aead *cipher, [all...] |
/kernel/linux/linux-6.6/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_skcipher.c | 24 * supported cipher list 41 const struct nitrox_cipher *cipher = flexi_cipher_table; in flexi_cipher_type() local 43 while (cipher->name) { in flexi_cipher_type() 44 if (!strcmp(cipher->name, name)) in flexi_cipher_type() 46 cipher++; in flexi_cipher_type() 48 return cipher->value; in flexi_cipher_type() 83 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_cbc_cipher_callback() local 84 int ivsize = crypto_skcipher_ivsize(cipher); in nitrox_cbc_cipher_callback() 165 static inline int nitrox_skcipher_setkey(struct crypto_skcipher *cipher, in nitrox_skcipher_setkey() argument 169 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in nitrox_skcipher_setkey() 197 nitrox_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) nitrox_aes_setkey() argument 249 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); nitrox_skcipher_crypt() local 293 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); nitrox_cbc_decrypt() local 320 nitrox_3des_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) nitrox_3des_setkey() argument 337 nitrox_aes_xts_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) nitrox_aes_xts_setkey() argument 361 nitrox_aes_ctr_rfc3686_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) nitrox_aes_ctr_rfc3686_setkey() argument [all...] |
/kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_skcipher.c | 24 * supported cipher list 41 const struct nitrox_cipher *cipher = flexi_cipher_table; in flexi_cipher_type() local 43 while (cipher->name) { in flexi_cipher_type() 44 if (!strcmp(cipher->name, name)) in flexi_cipher_type() 46 cipher++; in flexi_cipher_type() 48 return cipher->value; in flexi_cipher_type() 83 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_cbc_cipher_callback() local 84 int ivsize = crypto_skcipher_ivsize(cipher); in nitrox_cbc_cipher_callback() 165 static inline int nitrox_skcipher_setkey(struct crypto_skcipher *cipher, in nitrox_skcipher_setkey() argument 169 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in nitrox_skcipher_setkey() 197 nitrox_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) nitrox_aes_setkey() argument 249 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); nitrox_skcipher_crypt() local 293 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); nitrox_cbc_decrypt() local 320 nitrox_3des_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) nitrox_3des_setkey() argument 337 nitrox_aes_xts_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) nitrox_aes_xts_setkey() argument 362 nitrox_aes_ctr_rfc3686_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) nitrox_aes_ctr_rfc3686_setkey() argument [all...] |
/kernel/linux/linux-6.6/drivers/crypto/cavium/cpt/ |
H A D | cptvf_algs.c | 232 static int cvm_xts_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_xts_setkey() argument 235 struct cvm_enc_ctx *ctx = crypto_skcipher_ctx(cipher); in cvm_xts_setkey() 240 err = xts_verify_key(cipher, key, keylen); in cvm_xts_setkey() 288 static int cvm_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_setkey() argument 291 struct cvm_enc_ctx *ctx = crypto_skcipher_ctx(cipher); in cvm_setkey() 302 static int cvm_cbc_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cbc_aes_setkey() argument 305 return cvm_setkey(cipher, key, keylen, AES_CBC); in cvm_cbc_aes_setkey() 308 static int cvm_ecb_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_ecb_aes_setkey() argument 311 return cvm_setkey(cipher, key, keylen, AES_ECB); in cvm_ecb_aes_setkey() 314 static int cvm_cfb_aes_setkey(struct crypto_skcipher *cipher, cons argument 320 cvm_cbc_des3_setkey(struct crypto_skcipher *cipher, const u8 *key, u32 keylen) cvm_cbc_des3_setkey() argument 327 cvm_ecb_des3_setkey(struct crypto_skcipher *cipher, const u8 *key, u32 keylen) cvm_ecb_des3_setkey() argument [all...] |
/kernel/linux/linux-5.10/drivers/crypto/cavium/cpt/ |
H A D | cptvf_algs.c | 232 static int cvm_xts_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_xts_setkey() argument 235 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in cvm_xts_setkey() 289 static int cvm_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_setkey() argument 292 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in cvm_setkey() 304 static int cvm_cbc_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cbc_aes_setkey() argument 307 return cvm_setkey(cipher, key, keylen, AES_CBC); in cvm_cbc_aes_setkey() 310 static int cvm_ecb_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_ecb_aes_setkey() argument 313 return cvm_setkey(cipher, key, keylen, AES_ECB); in cvm_ecb_aes_setkey() 316 static int cvm_cfb_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cfb_aes_setkey() argument 319 return cvm_setkey(cipher, ke in cvm_cfb_aes_setkey() 322 cvm_cbc_des3_setkey(struct crypto_skcipher *cipher, const u8 *key, u32 keylen) cvm_cbc_des3_setkey() argument 329 cvm_ecb_des3_setkey(struct crypto_skcipher *cipher, const u8 *key, u32 keylen) cvm_ecb_des3_setkey() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/cipher/ |
H A D | g84.c | 24 #include <engine/cipher.h> 80 g84_cipher_intr(struct nvkm_engine *cipher) in g84_cipher_intr() argument 82 struct nvkm_subdev *subdev = &cipher->subdev; in g84_cipher_intr() 92 chan = nvkm_chan_get_inst(cipher, (u64)inst << 12, &flags); in g84_cipher_intr() 108 g84_cipher_init(struct nvkm_engine *cipher) in g84_cipher_init() argument 110 struct nvkm_device *device = cipher->subdev.device; in g84_cipher_init()
|
/kernel/linux/linux-6.6/net/sunrpc/auth_gss/ |
H A D | gss_krb5_crypto.c | 66 * pad minimum plaintext length to at least a single cipher block. 88 * @tfm: initialized cipher transform 96 * cipher's ivsize. 143 * @tfm: initialized cipher transform 151 * cipher's ivsize. 592 gss_krb5_cts_crypt(struct crypto_sync_skcipher *cipher, struct xdr_buf *buf, in gss_krb5_cts_crypt() argument 597 SYNC_SKCIPHER_REQUEST_ON_STACK(req, cipher); in gss_krb5_cts_crypt() 626 skcipher_request_set_sync_tfm(req, cipher); in gss_krb5_cts_crypt() 649 memcpy(iv, data, crypto_sync_skcipher_ivsize(cipher)); in gss_krb5_cts_crypt() 659 * @cts_tfm: CBC cipher wit 787 struct crypto_sync_skcipher *cipher, *aux_cipher; gss_krb5_aes_encrypt() local 860 struct crypto_sync_skcipher *cipher, *aux_cipher; gss_krb5_aes_decrypt() local 929 krb5_etm_checksum(struct crypto_sync_skcipher *cipher, struct crypto_ahash *tfm, const struct xdr_buf *body, int body_offset, struct xdr_netobj *cksumout) krb5_etm_checksum() argument 1015 struct crypto_sync_skcipher *cipher, *aux_cipher; krb5_etm_encrypt() local 1103 struct crypto_sync_skcipher *cipher, *aux_cipher; krb5_etm_decrypt() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/cipher/ |
H A D | g84.c | 24 #include <engine/cipher.h> 80 g84_cipher_intr(struct nvkm_engine *cipher) in g84_cipher_intr() argument 82 struct nvkm_subdev *subdev = &cipher->subdev; in g84_cipher_intr() 109 g84_cipher_init(struct nvkm_engine *cipher) in g84_cipher_init() argument 111 struct nvkm_device *device = cipher->subdev.device; in g84_cipher_init()
|
/kernel/linux/linux-6.6/drivers/crypto/intel/keembay/ |
H A D | ocs-aes.h | 68 const u8 *key, const enum ocs_cipher cipher); 72 enum ocs_cipher cipher, 97 enum ocs_cipher cipher, 109 enum ocs_cipher cipher,
|
H A D | ocs-aes.c | 471 * @cipher: The cipher the key is for. 478 enum ocs_cipher cipher) in ocs_aes_set_key() 485 if (cipher == OCS_AES && !(key_size == 32 || key_size == 16)) { in ocs_aes_set_key() 487 "%d-bit keys not supported by AES cipher\n", in ocs_aes_set_key() 492 if (cipher == OCS_SM4 && key_size != 16) { in ocs_aes_set_key() 494 "%d-bit keys not supported for SM4 cipher\n", in ocs_aes_set_key() 525 enum ocs_cipher cipher, in set_ocs_aes_command() 554 val = (cipher << 14) | (mode << 8) | (instruction << 6) | in set_ocs_aes_command() 561 enum ocs_cipher cipher, in ocs_aes_init() 477 ocs_aes_set_key(struct ocs_aes_dev *aes_dev, u32 key_size, const u8 *key, enum ocs_cipher cipher) ocs_aes_set_key() argument 524 set_ocs_aes_command(struct ocs_aes_dev *aes_dev, enum ocs_cipher cipher, enum ocs_mode mode, enum ocs_instruction instruction) set_ocs_aes_command() argument 559 ocs_aes_init(struct ocs_aes_dev *aes_dev, enum ocs_mode mode, enum ocs_cipher cipher, enum ocs_instruction instruction) ocs_aes_init() argument 600 ocs_aes_validate_inputs(dma_addr_t src_dma_list, u32 src_size, const u8 *iv, u32 iv_size, dma_addr_t aad_dma_list, u32 aad_size, const u8 *tag, u32 tag_size, enum ocs_cipher cipher, enum ocs_mode mode, enum ocs_instruction instruction, dma_addr_t dst_dma_list) ocs_aes_validate_inputs() argument 796 ocs_aes_op(struct ocs_aes_dev *aes_dev, enum ocs_mode mode, enum ocs_cipher cipher, enum ocs_instruction instruction, dma_addr_t dst_dma_list, dma_addr_t src_dma_list, u32 src_size, u8 *iv, u32 iv_size) ocs_aes_op() argument 925 ocs_aes_gcm_op(struct ocs_aes_dev *aes_dev, enum ocs_cipher cipher, enum ocs_instruction instruction, dma_addr_t dst_dma_list, dma_addr_t src_dma_list, u32 src_size, const u8 *iv, dma_addr_t aad_dma_list, u32 aad_size, u8 *out_tag, u32 tag_size) ocs_aes_gcm_op() argument 1307 ocs_aes_ccm_op(struct ocs_aes_dev *aes_dev, enum ocs_cipher cipher, enum ocs_instruction instruction, dma_addr_t dst_dma_list, dma_addr_t src_dma_list, u32 src_size, u8 *iv, dma_addr_t adata_dma_list, u32 adata_size, u8 *in_tag, u32 tag_size) ocs_aes_ccm_op() argument [all...] |
/kernel/linux/linux-5.10/drivers/crypto/bcm/ |
H A D | cipher.c | 37 #include "cipher.h" 71 MODULE_PARM_DESC(cipher_pri, "Priority for cipher algos"); 154 if ((ctx->cipher.mode == CIPHER_MODE_XTS) && in spu_skcipher_rx_sg_create() 219 if ((ctx->cipher.mode == CIPHER_MODE_XTS) && in spu_skcipher_tx_sg_create() 282 * handle_skcipher_req() - Submit as much of a block cipher request as fits in 324 cipher_parms.alg = ctx->cipher.alg; in handle_skcipher_req() 325 cipher_parms.mode = ctx->cipher.mode; in handle_skcipher_req() 350 if ((ctx->cipher.mode == CIPHER_MODE_CBC) && in handle_skcipher_req() 366 if ((ctx->cipher.mode == CIPHER_MODE_CBC) && in handle_skcipher_req() 375 } else if (ctx->cipher in handle_skcipher_req() 1766 des_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) des_setkey() argument 1780 threedes_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) threedes_setkey() argument 1794 aes_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) aes_setkey() argument 1821 skcipher_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) skcipher_setkey() argument 2758 aead_authenc_setkey(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) aead_authenc_setkey() argument 2853 aead_gcm_ccm_setkey(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) aead_gcm_ccm_setkey() argument 2935 aead_gcm_esp_setkey(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) aead_gcm_esp_setkey() argument 2967 rfc4543_gcm_esp_setkey(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) rfc4543_gcm_esp_setkey() argument 3000 aead_ccm_esp_setkey(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) aead_ccm_esp_setkey() argument 3020 aead_setauthsize(struct crypto_aead *cipher, unsigned int authsize) aead_setauthsize() argument [all...] |
/kernel/linux/linux-6.6/drivers/crypto/bcm/ |
H A D | cipher.c | 37 #include "cipher.h" 71 MODULE_PARM_DESC(cipher_pri, "Priority for cipher algos"); 154 if ((ctx->cipher.mode == CIPHER_MODE_XTS) && in spu_skcipher_rx_sg_create() 219 if ((ctx->cipher.mode == CIPHER_MODE_XTS) && in spu_skcipher_tx_sg_create() 282 * handle_skcipher_req() - Submit as much of a block cipher request as fits in 324 cipher_parms.alg = ctx->cipher.alg; in handle_skcipher_req() 325 cipher_parms.mode = ctx->cipher.mode; in handle_skcipher_req() 350 if ((ctx->cipher.mode == CIPHER_MODE_CBC) && in handle_skcipher_req() 366 if ((ctx->cipher.mode == CIPHER_MODE_CBC) && in handle_skcipher_req() 375 } else if (ctx->cipher in handle_skcipher_req() 1763 des_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) des_setkey() argument 1777 threedes_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) threedes_setkey() argument 1791 aes_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) aes_setkey() argument 1818 skcipher_setkey(struct crypto_skcipher *cipher, const u8 *key, unsigned int keylen) skcipher_setkey() argument 2719 aead_authenc_setkey(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) aead_authenc_setkey() argument 2814 aead_gcm_ccm_setkey(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) aead_gcm_ccm_setkey() argument 2896 aead_gcm_esp_setkey(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) aead_gcm_esp_setkey() argument 2928 rfc4543_gcm_esp_setkey(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) rfc4543_gcm_esp_setkey() argument 2961 aead_ccm_esp_setkey(struct crypto_aead *cipher, const u8 *key, unsigned int keylen) aead_ccm_esp_setkey() argument 2981 aead_setauthsize(struct crypto_aead *cipher, unsigned int authsize) aead_setauthsize() argument [all...] |
/kernel/linux/linux-6.6/arch/arm64/crypto/ |
H A D | Makefile | 26 obj-$(CONFIG_CRYPTO_SM4_ARM64_CE) += sm4-ce-cipher.o 27 sm4-ce-cipher-y := sm4-ce-cipher-glue.o sm4-ce-cipher-core.o 50 obj-$(CONFIG_CRYPTO_AES_ARM64_CE) += aes-ce-cipher.o 51 aes-ce-cipher-y := aes-ce-core.o aes-ce-glue.o 79 aes-arm64-y := aes-cipher-core.o aes-cipher-glue.o
|
/kernel/linux/linux-6.6/tools/testing/crypto/chacha20-s390/ |
H A D | test-cipher.c | 50 /* Perform cipher operations with the chacha lib */ 51 static int test_lib_chacha(u8 *revert, u8 *cipher, u8 *plain) in test_lib_chacha() argument 72 chacha_crypt_arch(chacha_state, cipher, plain, data_size, 20); in test_lib_chacha() 78 16, 1, cipher, in test_lib_chacha() 87 chacha_crypt_arch(chacha_state, revert, cipher, data_size, 20); in test_lib_chacha() 100 /* Perform cipher operations with skcipher */ 125 /* Initialize and trigger cipher operations */ 126 static int test_skcipher(char *name, u8 *revert, u8 *cipher, u8 *plain) in test_skcipher() argument 174 sg_init_one(&sk.sgout, cipher, data_size); in test_skcipher() 191 16, 1, cipher, in test_skcipher() [all...] |