Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 15 of 15) sorted by relevance

/crypto/
Dhmac.c40 static int hmac_setkey(struct crypto_shash *parent, in hmac_setkey() argument
43 int bs = crypto_shash_blocksize(parent); in hmac_setkey()
44 int ds = crypto_shash_digestsize(parent); in hmac_setkey()
45 int ss = crypto_shash_statesize(parent); in hmac_setkey()
46 char *ipad = crypto_shash_ctx_aligned(parent); in hmac_setkey()
115 struct crypto_shash *parent = pdesc->tfm; in hmac_final() local
116 int ds = crypto_shash_digestsize(parent); in hmac_final()
117 int ss = crypto_shash_statesize(parent); in hmac_final()
118 char *opad = crypto_shash_ctx_aligned(parent) + ss; in hmac_final()
130 struct crypto_shash *parent = pdesc->tfm; in hmac_finup() local
[all …]
Dcmac.c50 static int crypto_cmac_digest_setkey(struct crypto_shash *parent, in crypto_cmac_digest_setkey() argument
53 unsigned long alignmask = crypto_shash_alignmask(parent); in crypto_cmac_digest_setkey()
54 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(parent); in crypto_cmac_digest_setkey()
55 unsigned int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_setkey()
121 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_update() local
122 unsigned long alignmask = crypto_shash_alignmask(parent); in crypto_cmac_digest_update()
123 struct cmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cmac_digest_update()
126 int bs = crypto_shash_blocksize(parent); in crypto_cmac_digest_update()
167 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_final() local
168 unsigned long alignmask = crypto_shash_alignmask(parent); in crypto_cmac_digest_final()
[all …]
Dxcbc.c51 static int crypto_xcbc_digest_setkey(struct crypto_shash *parent, in crypto_xcbc_digest_setkey() argument
54 unsigned long alignmask = crypto_shash_alignmask(parent); in crypto_xcbc_digest_setkey()
55 struct xcbc_tfm_ctx *ctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_setkey()
88 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_update() local
89 unsigned long alignmask = crypto_shash_alignmask(parent); in crypto_xcbc_digest_update()
90 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_update()
93 int bs = crypto_shash_blocksize(parent); in crypto_xcbc_digest_update()
134 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_final() local
135 unsigned long alignmask = crypto_shash_alignmask(parent); in crypto_xcbc_digest_final()
136 struct xcbc_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_xcbc_digest_final()
[all …]
Dccm.c569 static int crypto_rfc4309_setkey(struct crypto_aead *parent, const u8 *key, in crypto_rfc4309_setkey() argument
572 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4309_setkey()
582 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & in crypto_rfc4309_setkey()
587 static int crypto_rfc4309_setauthsize(struct crypto_aead *parent, in crypto_rfc4309_setauthsize() argument
590 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4309_setauthsize()
778 static int crypto_cbcmac_digest_setkey(struct crypto_shash *parent, in crypto_cbcmac_digest_setkey() argument
781 struct cbcmac_tfm_ctx *ctx = crypto_shash_ctx(parent); in crypto_cbcmac_digest_setkey()
801 struct crypto_shash *parent = pdesc->tfm; in crypto_cbcmac_digest_update() local
802 struct cbcmac_tfm_ctx *tctx = crypto_shash_ctx(parent); in crypto_cbcmac_digest_update()
805 int bs = crypto_shash_digestsize(parent); in crypto_cbcmac_digest_update()
[all …]
Dalgif_skcipher.c42 struct sock *psk = ask->parent; in skcipher_sendmsg()
55 struct sock *psk = ask->parent; in _skcipher_recvmsg()
215 psk = ask->parent; in skcipher_check_key()
216 pask = alg_sk(ask->parent); in skcipher_check_key()
312 struct sock *psk = ask->parent; in skcipher_sock_destruct()
Dalgif_aead.c47 struct sock *psk = ask->parent; in aead_sufficient_data()
65 struct sock *psk = ask->parent; in aead_sendmsg()
93 struct sock *psk = ask->parent; in _aead_recvmsg()
389 psk = ask->parent; in aead_check_key()
390 pask = alg_sk(ask->parent); in aead_check_key()
523 struct sock *psk = ask->parent; in aead_sock_destruct()
Dxts.c41 static int xts_setkey(struct crypto_skcipher *parent, const u8 *key, in xts_setkey() argument
44 struct xts_tfm_ctx *ctx = crypto_skcipher_ctx(parent); in xts_setkey()
49 err = xts_verify_key(parent, key, keylen); in xts_setkey()
62 crypto_cipher_set_flags(tweak, crypto_skcipher_get_flags(parent) & in xts_setkey()
71 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(parent) & in xts_setkey()
Dpcrypt.c42 static int pcrypt_aead_setkey(struct crypto_aead *parent, in pcrypt_aead_setkey() argument
45 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(parent); in pcrypt_aead_setkey()
50 static int pcrypt_aead_setauthsize(struct crypto_aead *parent, in pcrypt_aead_setauthsize() argument
53 struct pcrypt_aead_ctx *ctx = crypto_aead_ctx(parent); in pcrypt_aead_setauthsize()
Dcryptd.c227 static int cryptd_skcipher_setkey(struct crypto_skcipher *parent, in cryptd_skcipher_setkey() argument
230 struct cryptd_skcipher_ctx *ctx = crypto_skcipher_ctx(parent); in cryptd_skcipher_setkey()
235 crypto_skcipher_get_flags(parent) & in cryptd_skcipher_setkey()
452 static int cryptd_hash_setkey(struct crypto_ahash *parent, in cryptd_hash_setkey() argument
455 struct cryptd_hash_ctx *ctx = crypto_ahash_ctx(parent); in cryptd_hash_setkey()
459 crypto_shash_set_flags(child, crypto_ahash_get_flags(parent) & in cryptd_hash_setkey()
696 static int cryptd_aead_setkey(struct crypto_aead *parent, in cryptd_aead_setkey() argument
699 struct cryptd_aead_ctx *ctx = crypto_aead_ctx(parent); in cryptd_aead_setkey()
705 static int cryptd_aead_setauthsize(struct crypto_aead *parent, in cryptd_aead_setauthsize() argument
708 struct cryptd_aead_ctx *ctx = crypto_aead_ctx(parent); in cryptd_aead_setauthsize()
Dgcm.c691 static int crypto_rfc4106_setkey(struct crypto_aead *parent, const u8 *key, in crypto_rfc4106_setkey() argument
694 struct crypto_rfc4106_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4106_setkey()
704 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & in crypto_rfc4106_setkey()
709 static int crypto_rfc4106_setauthsize(struct crypto_aead *parent, in crypto_rfc4106_setauthsize() argument
712 struct crypto_rfc4106_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4106_setauthsize()
899 static int crypto_rfc4543_setkey(struct crypto_aead *parent, const u8 *key, in crypto_rfc4543_setkey() argument
902 struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4543_setkey()
912 crypto_aead_set_flags(child, crypto_aead_get_flags(parent) & in crypto_rfc4543_setkey()
917 static int crypto_rfc4543_setauthsize(struct crypto_aead *parent, in crypto_rfc4543_setauthsize() argument
920 struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(parent); in crypto_rfc4543_setauthsize()
Dctr.c169 static int crypto_rfc3686_setkey(struct crypto_skcipher *parent, in crypto_rfc3686_setkey() argument
172 struct crypto_rfc3686_ctx *ctx = crypto_skcipher_ctx(parent); in crypto_rfc3686_setkey()
185 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(parent) & in crypto_rfc3686_setkey()
Dlrw.c68 static int lrw_setkey(struct crypto_skcipher *parent, const u8 *key, in lrw_setkey() argument
71 struct lrw_tfm_ctx *ctx = crypto_skcipher_ctx(parent); in lrw_setkey()
79 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(parent) & in lrw_setkey()
Dcts.c76 static int crypto_cts_setkey(struct crypto_skcipher *parent, const u8 *key, in crypto_cts_setkey() argument
79 struct crypto_cts_ctx *ctx = crypto_skcipher_ctx(parent); in crypto_cts_setkey()
83 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(parent) & in crypto_cts_setkey()
Dalgif_hash.c252 err = af_alg_accept(ask->parent, newsock, kern); in hash_accept()
305 psk = ask->parent; in hash_check_key()
306 pask = alg_sk(ask->parent); in hash_check_key()
Daf_alg.c134 sk = ask->parent; in af_alg_release_parent()
321 alg_sk(sk2)->parent = sk; in af_alg_accept()