Lines Matching defs:pbytes
217 MPI m, unsigned int pbytes)
227 if (inlen < pbytes) {
229 crypto_sm3_update(desc, zero, pbytes - inlen);
231 } else if (inlen > pbytes) {
233 crypto_sm3_update(desc, in + inlen - pbytes, pbytes);
243 MPI_POINT point, struct mpi_ec_ctx *ec, unsigned int pbytes)
252 !sm2_z_digest_update(desc, x, pbytes) &&
253 !sm2_z_digest_update(desc, y, pbytes))
269 unsigned int pbytes;
278 pbytes = MPI_NBYTES(ec->p);
285 if (sm2_z_digest_update(desc, ec->a, pbytes) ||
286 sm2_z_digest_update(desc, ec->b, pbytes) ||
287 sm2_z_digest_update_point(desc, ec->G, ec, pbytes) ||
288 sm2_z_digest_update_point(desc, ec->Q, ec, pbytes))