Searched refs:pdesc (Results 1 – 5 of 5) sorted by relevance
/linux-4.19.296/crypto/ |
D | hmac.c | 90 static int hmac_export(struct shash_desc *pdesc, void *out) in hmac_export() argument 92 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_export() 94 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_export() 99 static int hmac_import(struct shash_desc *pdesc, const void *in) in hmac_import() argument 101 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_import() 102 struct hmac_ctx *ctx = hmac_ctx(pdesc->tfm); in hmac_import() 105 desc->flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in hmac_import() 110 static int hmac_init(struct shash_desc *pdesc) in hmac_init() argument 112 return hmac_import(pdesc, crypto_shash_ctx_aligned(pdesc->tfm)); in hmac_init() 115 static int hmac_update(struct shash_desc *pdesc, in hmac_update() argument [all …]
|
D | xcbc.c | 81 static int crypto_xcbc_digest_init(struct shash_desc *pdesc) in crypto_xcbc_digest_init() argument 83 unsigned long alignmask = crypto_shash_alignmask(pdesc->tfm); in crypto_xcbc_digest_init() 84 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_init() 85 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_xcbc_digest_init() 94 static int crypto_xcbc_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_xcbc_digest_update() argument 97 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_update() 100 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_update() 141 static int crypto_xcbc_digest_final(struct shash_desc *pdesc, u8 *out) in crypto_xcbc_digest_final() argument 143 struct crypto_shash *parent = pdesc->tfm; in crypto_xcbc_digest_final() 146 struct xcbc_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_xcbc_digest_final()
|
D | cmac.c | 109 static int crypto_cmac_digest_init(struct shash_desc *pdesc) in crypto_cmac_digest_init() argument 111 unsigned long alignmask = crypto_shash_alignmask(pdesc->tfm); in crypto_cmac_digest_init() 112 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_init() 113 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_cmac_digest_init() 122 static int crypto_cmac_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_cmac_digest_update() argument 125 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_update() 128 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_update() 169 static int crypto_cmac_digest_final(struct shash_desc *pdesc, u8 *out) in crypto_cmac_digest_final() argument 171 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_final() 174 struct cmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cmac_digest_final()
|
D | ccm.c | 860 static int crypto_cbcmac_digest_init(struct shash_desc *pdesc) in crypto_cbcmac_digest_init() argument 862 struct cbcmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cbcmac_digest_init() 863 int bs = crypto_shash_digestsize(pdesc->tfm); in crypto_cbcmac_digest_init() 864 u8 *dg = (u8 *)ctx + crypto_shash_descsize(pdesc->tfm) - bs; in crypto_cbcmac_digest_init() 872 static int crypto_cbcmac_digest_update(struct shash_desc *pdesc, const u8 *p, in crypto_cbcmac_digest_update() argument 875 struct crypto_shash *parent = pdesc->tfm; in crypto_cbcmac_digest_update() 877 struct cbcmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cbcmac_digest_update() 899 static int crypto_cbcmac_digest_final(struct shash_desc *pdesc, u8 *out) in crypto_cbcmac_digest_final() argument 901 struct crypto_shash *parent = pdesc->tfm; in crypto_cbcmac_digest_final() 903 struct cbcmac_desc_ctx *ctx = shash_desc_ctx(pdesc); in crypto_cbcmac_digest_final()
|
/linux-4.19.296/drivers/s390/char/ |
D | hmcdrv_ftp.c | 84 const struct hmcdrv_ftp_cmd_desc *pdesc; in hmcdrv_ftp_cmd_getid() local 92 pdesc = ftpcmds + (crc % ARRAY_SIZE(ftpcmds)); in hmcdrv_ftp_cmd_getid() 96 if (!pdesc->str || strncmp(pdesc->str, cmd, len)) in hmcdrv_ftp_cmd_getid() 100 pdesc->str, pdesc->cmd); in hmcdrv_ftp_cmd_getid() 102 return pdesc->cmd; in hmcdrv_ftp_cmd_getid()
|