/crypto/ |
D | hmac.c | 44 static int hmac_setkey(struct crypto_shash *parent, in hmac_setkey() argument 47 int bs = crypto_shash_blocksize(parent); in hmac_setkey() 48 int ds = crypto_shash_digestsize(parent); in hmac_setkey() 49 int ss = crypto_shash_statesize(parent); in hmac_setkey() 50 char *ipad = crypto_shash_ctx_aligned(parent); in hmac_setkey() 59 shash->flags = crypto_shash_get_flags(parent) in hmac_setkey() 126 struct crypto_shash *parent = pdesc->tfm; in hmac_final() local 127 int ds = crypto_shash_digestsize(parent); in hmac_final() 128 int ss = crypto_shash_statesize(parent); in hmac_final() 129 char *opad = crypto_shash_ctx_aligned(parent) + ss; in hmac_final() [all …]
|
D | xcbc.c | 61 static int crypto_xcbc_digest_setkey(struct crypto_shash *parent, in crypto_xcbc_digest_setkey() argument 64 unsigned long alignmask = crypto_shash_alignmask(parent); in crypto_xcbc_digest_setkey() 65 struct xcbc_tfm_ctx *ctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_setkey() 66 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_setkey() 98 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_update() local 99 unsigned long alignmask = crypto_shash_alignmask(parent); in crypto_xcbc_digest_update() 100 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_update() 103 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_update() 144 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_final() local 145 unsigned long alignmask = crypto_shash_alignmask(parent); in crypto_xcbc_digest_final() [all …]
|
D | cmac.c | 54 static int crypto_cmac_digest_setkey(struct crypto_shash *parent, in crypto_cmac_digest_setkey() argument 57 unsigned long alignmask = crypto_shash_alignmask(parent); in crypto_cmac_digest_setkey() 58 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(parent); in crypto_cmac_digest_setkey() 59 unsigned int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_setkey() 124 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_update() local 125 unsigned long alignmask = crypto_shash_alignmask(parent); in crypto_cmac_digest_update() 126 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cmac_digest_update() 129 int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_update() 170 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_final() local 171 unsigned long alignmask = crypto_shash_alignmask(parent); in crypto_cmac_digest_final() [all …]
|
D | xts.c | 33 static int setkey(struct crypto_tfm *parent, const u8 *key, in setkey() argument 36 struct priv *ctx = crypto_tfm_ctx(parent); in setkey() 40 err = xts_check_key(parent, key, keylen); in setkey() 50 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in setkey() 56 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in setkey() 63 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in setkey() 69 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in setkey()
|
D | ctr.c | 38 static int crypto_ctr_setkey(struct crypto_tfm *parent, const u8 *key, in crypto_ctr_setkey() argument 41 struct crypto_ctr_ctx *ctx = crypto_tfm_ctx(parent); in crypto_ctr_setkey() 46 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_ctr_setkey() 49 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in crypto_ctr_setkey() 252 static int crypto_rfc3686_setkey(struct crypto_skcipher *parent, in crypto_rfc3686_setkey() argument 255 struct crypto_rfc3686_ctx *ctx = crypto_skcipher_ctx(parent); in crypto_rfc3686_setkey() 269 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(parent) & in crypto_rfc3686_setkey() 272 crypto_skcipher_set_flags(parent, crypto_skcipher_get_flags(child) & in crypto_rfc3686_setkey()
|
D | ecb.c | 25 static int crypto_ecb_setkey(struct crypto_tfm *parent, const u8 *key, in crypto_ecb_setkey() argument 28 struct crypto_ecb_ctx *ctx = crypto_tfm_ctx(parent); in crypto_ecb_setkey() 33 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_ecb_setkey() 36 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in crypto_ecb_setkey()
|
D | cryptd.c | 206 static int cryptd_blkcipher_setkey(struct crypto_ablkcipher *parent, in cryptd_blkcipher_setkey() argument 209 struct cryptd_blkcipher_ctx *ctx = crypto_ablkcipher_ctx(parent); in cryptd_blkcipher_setkey() 214 crypto_blkcipher_set_flags(child, crypto_ablkcipher_get_flags(parent) & in cryptd_blkcipher_setkey() 217 crypto_ablkcipher_set_flags(parent, crypto_blkcipher_get_flags(child) & in cryptd_blkcipher_setkey() 461 static int cryptd_hash_setkey(struct crypto_ahash *parent, in cryptd_hash_setkey() argument 464 struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(parent); in cryptd_hash_setkey() 469 crypto_shash_set_flags(child, crypto_ahash_get_flags(parent) & in cryptd_hash_setkey() 472 crypto_ahash_set_flags(parent, crypto_shash_get_flags(child) & in cryptd_hash_setkey() 709 static int cryptd_aead_setkey(struct crypto_aead *parent, in cryptd_aead_setkey() argument 712 struct cryptd_aead_ctx *ctx = crypto_aead_ctx(parent); in cryptd_aead_setkey() [all …]
|
D | keywrap.c | 305 static int crypto_kw_setkey(struct crypto_tfm *parent, const u8 *key, in crypto_kw_setkey() argument 308 struct crypto_kw_ctx *ctx = crypto_tfm_ctx(parent); in crypto_kw_setkey() 313 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_kw_setkey() 316 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in crypto_kw_setkey()
|
D | cbc.c | 26 static int crypto_cbc_setkey(struct crypto_tfm *parent, const u8 *key, in crypto_cbc_setkey() argument 29 struct crypto_cbc_ctx *ctx = crypto_tfm_ctx(parent); in crypto_cbc_setkey() 34 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_cbc_setkey() 37 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in crypto_cbc_setkey()
|
D | pcbc.c | 29 static int crypto_pcbc_setkey(struct crypto_tfm *parent, const u8 *key, in crypto_pcbc_setkey() argument 32 struct crypto_pcbc_ctx *ctx = crypto_tfm_ctx(parent); in crypto_pcbc_setkey() 37 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in crypto_pcbc_setkey() 40 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in crypto_pcbc_setkey()
|
D | gcm.c | 784 static int crypto_rfc4106_setkey(struct crypto_aead *parent, const u8 *key, in crypto_rfc4106_setkey() argument 787 struct crypto_rfc4106_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4106_setkey() 798 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & in crypto_rfc4106_setkey() 801 crypto_aead_set_flags(parent, crypto_aead_get_flags(child) & in crypto_rfc4106_setkey() 807 static int crypto_rfc4106_setauthsize(struct crypto_aead *parent, in crypto_rfc4106_setauthsize() argument 810 struct crypto_rfc4106_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4106_setauthsize() 1017 static int crypto_rfc4543_setkey(struct crypto_aead *parent, const u8 *key, in crypto_rfc4543_setkey() argument 1020 struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4543_setkey() 1031 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & in crypto_rfc4543_setkey() 1034 crypto_aead_set_flags(parent, crypto_aead_get_flags(child) & in crypto_rfc4543_setkey() [all …]
|
D | lrw.c | 79 static int setkey(struct crypto_tfm *parent, const u8 *key, in setkey() argument 82 struct priv *ctx = crypto_tfm_ctx(parent); in setkey() 88 crypto_cipher_set_flags(child, crypto_tfm_get_flags(parent) & in setkey() 93 crypto_tfm_set_flags(parent, crypto_cipher_get_flags(child) & in setkey()
|
D | cts.c | 74 static int crypto_cts_setkey(struct crypto_skcipher *parent, const u8 *key, in crypto_cts_setkey() argument 77 struct crypto_cts_ctx *ctx = crypto_skcipher_ctx(parent); in crypto_cts_setkey() 82 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(parent) & in crypto_cts_setkey() 85 crypto_skcipher_set_flags(parent, crypto_skcipher_get_flags(child) & in crypto_cts_setkey()
|
D | vmac.c | 544 static int vmac_setkey(struct crypto_shash *parent, in vmac_setkey() argument 547 struct vmac_ctx_t *ctx = crypto_shash_ctx(parent); in vmac_setkey() 550 crypto_shash_set_flags(parent, CRYPTO_TFM_RES_BAD_KEY_LEN); in vmac_setkey() 565 struct crypto_shash *parent = pdesc->tfm; in vmac_update() local 566 struct vmac_ctx_t *ctx = crypto_shash_ctx(parent); in vmac_update() 600 struct crypto_shash *parent = pdesc->tfm; in vmac_final() local 601 struct vmac_ctx_t *ctx = crypto_shash_ctx(parent); in vmac_final()
|
D | pcrypt.c | 102 static int pcrypt_aead_setkey(struct crypto_aead *parent, in pcrypt_aead_setkey() argument 105 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(parent); in pcrypt_aead_setkey() 110 static int pcrypt_aead_setauthsize(struct crypto_aead *parent, in pcrypt_aead_setauthsize() argument 113 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(parent); in pcrypt_aead_setauthsize()
|
D | ccm.c | 668 static int crypto_rfc4309_setkey(struct crypto_aead *parent, const u8 *key, in crypto_rfc4309_setkey() argument 671 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4309_setkey() 682 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & in crypto_rfc4309_setkey() 685 crypto_aead_set_flags(parent, crypto_aead_get_flags(child) & in crypto_rfc4309_setkey() 691 static int crypto_rfc4309_setauthsize(struct crypto_aead *parent, in crypto_rfc4309_setauthsize() argument 694 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4309_setauthsize()
|
D | mcryptd.c | 298 static int mcryptd_hash_setkey(struct crypto_ahash *parent, in mcryptd_hash_setkey() argument 301 struct mcryptd_hash_ctx *ctx = crypto_ahash_ctx(parent); in mcryptd_hash_setkey() 306 crypto_ahash_set_flags(child, crypto_ahash_get_flags(parent) & in mcryptd_hash_setkey() 309 crypto_ahash_set_flags(parent, crypto_ahash_get_flags(child) & in mcryptd_hash_setkey()
|
D | algif_hash.c | 258 err = af_alg_accept(ask->parent, newsock); in hash_accept() 314 psk = ask->parent; in hash_check_key() 315 pask = alg_sk(ask->parent); in hash_check_key()
|
D | algif_skcipher.c | 305 struct sock *psk = ask->parent; in skcipher_sendmsg() 511 struct sock *psk = ask->parent; in skcipher_recvmsg_async() 647 struct sock *psk = ask->parent; in skcipher_recvmsg_sync() 780 psk = ask->parent; in skcipher_check_key() 781 pask = alg_sk(ask->parent); in skcipher_check_key()
|
D | af_alg.c | 136 sk = ask->parent; in af_alg_release_parent() 309 alg_sk(sk2)->parent = sk; in af_alg_accept()
|
D | algif_aead.c | 753 psk = ask->parent; in aead_check_key() 754 pask = alg_sk(ask->parent); in aead_check_key()
|