Home
last modified time | relevance | path

Searched refs:pdesc (Results 1 – 4 of 4) sorted by relevance

/crypto/
Dhmac.c83 static int hmac_export(struct shash_desc *pdesc, void *out) in hmac_export() argument
85 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_export()
90 static int hmac_import(struct shash_desc *pdesc, const void *in) in hmac_import() argument
92 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_import()
93 struct hmac_ctx *ctx = hmac_ctx(pdesc->tfm); in hmac_import()
100 static int hmac_init(struct shash_desc *pdesc) in hmac_init() argument
102 return hmac_import(pdesc, crypto_shash_ctx_aligned(pdesc->tfm)); in hmac_init()
105 static int hmac_update(struct shash_desc *pdesc, in hmac_update() argument
108 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_update()
113 static int hmac_final(struct shash_desc *pdesc, u8 *out) in hmac_final() argument
[all …]
Dxcbc.c72 static int crypto_xcbc_digest_init(struct shash_desc *pdesc) in crypto_xcbc_digest_init() argument
74 unsigned long alignmask = crypto_shash_alignmask(pdesc->tfm); in crypto_xcbc_digest_init()
75 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_init()
76 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_xcbc_digest_init()
85 static int crypto_xcbc_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_xcbc_digest_update() argument
88 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_update()
91 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_update()
132 static int crypto_xcbc_digest_final(struct shash_desc *pdesc, u8 *out) in crypto_xcbc_digest_final() argument
134 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_final()
137 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_final()
Dcmac.c105 static int crypto_cmac_digest_init(struct shash_desc *pdesc) in crypto_cmac_digest_init() argument
107 unsigned long alignmask = crypto_shash_alignmask(pdesc->tfm); in crypto_cmac_digest_init()
108 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_init()
109 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_cmac_digest_init()
118 static int crypto_cmac_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_cmac_digest_update() argument
121 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_update()
124 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_update()
165 static int crypto_cmac_digest_final(struct shash_desc *pdesc, u8 *out) in crypto_cmac_digest_final() argument
167 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_final()
170 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_final()
Dccm.c786 static int crypto_cbcmac_digest_init(struct shash_desc *pdesc) in crypto_cbcmac_digest_init() argument
788 struct cbcmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cbcmac_digest_init()
789 int bs = crypto_shash_digestsize(pdesc->tfm); in crypto_cbcmac_digest_init()
790 u8 *dg = (u8 *)ctx + crypto_shash_descsize(pdesc->tfm) - bs; in crypto_cbcmac_digest_init()
798 static int crypto_cbcmac_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_cbcmac_digest_update() argument
801 struct crypto_shash *parent = pdesc->tfm; in crypto_cbcmac_digest_update()
803 struct cbcmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cbcmac_digest_update()
825 static int crypto_cbcmac_digest_final(struct shash_desc *pdesc, u8 *out) in crypto_cbcmac_digest_final() argument
827 struct crypto_shash *parent = pdesc->tfm; in crypto_cbcmac_digest_final()
829 struct cbcmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cbcmac_digest_final()