Lines Matching defs:desc
27 const char *desc; /* Description of the curve. */
52 .desc = "sm2p256v1",
113 ec->name = ecp->desc;
222 static int sm2_z_digest_update(struct shash_desc *desc,
236 err = crypto_shash_update(desc, zero, pbytes - inlen) ?:
237 crypto_shash_update(desc, in, inlen);
240 err = crypto_shash_update(desc, in + inlen - pbytes, pbytes);
242 err = crypto_shash_update(desc, in, inlen);
249 static int sm2_z_digest_update_point(struct shash_desc *desc,
260 sm2_z_digest_update(desc, x, pbytes) ?:
261 sm2_z_digest_update(desc, y, pbytes);
268 int sm2_compute_z_digest(struct shash_desc *desc,
296 err = crypto_shash_init(desc);
300 err = crypto_shash_update(desc, entl, 2);
304 err = crypto_shash_update(desc, SM2_DEFAULT_USERID,
309 err = sm2_z_digest_update(desc, ec->a, pbytes) ?:
310 sm2_z_digest_update(desc, ec->b, pbytes) ?:
311 sm2_z_digest_update_point(desc, ec->G, ec, pbytes) ?:
312 sm2_z_digest_update_point(desc, ec->Q, ec, pbytes);
316 err = crypto_shash_final(desc, dgst);