Searched refs:pdesc (Results 1 – 4 of 4) sorted by relevance
/crypto/ |
D | hmac.c | 83 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 …]
|
D | xcbc.c | 71 static int crypto_xcbc_digest_init(struct shash_desc *pdesc) in crypto_xcbc_digest_init() argument 73 unsigned long alignmask = crypto_shash_alignmask(pdesc->tfm); in crypto_xcbc_digest_init() 74 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_init() 75 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_xcbc_digest_init() 84 static int crypto_xcbc_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_xcbc_digest_update() argument 87 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_update() 90 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_update() 131 static int crypto_xcbc_digest_final(struct shash_desc *pdesc, u8 *out) in crypto_xcbc_digest_final() argument 133 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_final() 136 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_final()
|
D | cmac.c | 104 static int crypto_cmac_digest_init(struct shash_desc *pdesc) in crypto_cmac_digest_init() argument 106 unsigned long alignmask = crypto_shash_alignmask(pdesc->tfm); in crypto_cmac_digest_init() 107 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_init() 108 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_cmac_digest_init() 117 static int crypto_cmac_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_cmac_digest_update() argument 120 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_update() 123 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_update() 164 static int crypto_cmac_digest_final(struct shash_desc *pdesc, u8 *out) in crypto_cmac_digest_final() argument 166 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_final() 169 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_final()
|
D | ccm.c | 840 static int crypto_cbcmac_digest_init(struct shash_desc *pdesc) in crypto_cbcmac_digest_init() argument 842 struct cbcmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cbcmac_digest_init() 843 int bs = crypto_shash_digestsize(pdesc->tfm); in crypto_cbcmac_digest_init() 844 u8 *dg = (u8 *)ctx + crypto_shash_descsize(pdesc->tfm) - bs; in crypto_cbcmac_digest_init() 852 static int crypto_cbcmac_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_cbcmac_digest_update() argument 855 struct crypto_shash *parent = pdesc->tfm; in crypto_cbcmac_digest_update() 857 struct cbcmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cbcmac_digest_update() 879 static int crypto_cbcmac_digest_final(struct shash_desc *pdesc, u8 *out) in crypto_cbcmac_digest_final() argument 881 struct crypto_shash *parent = pdesc->tfm; in crypto_cbcmac_digest_final() 883 struct cbcmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cbcmac_digest_final()
|