Lines Matching refs:nbyte
94 static int read_lebn(const unsigned char **in, unsigned int nbyte, BIGNUM **r)
99 p = *in + nbyte - 1;
100 tmpbuf = OPENSSL_malloc(nbyte);
104 for (i = 0; i < nbyte; i++)
106 *r = BN_bin2bn(tmpbuf, nbyte, NULL);
109 *in += nbyte;
210 unsigned int nbyte, hnbyte;
211 nbyte = (bitlen + 7) >> 3;
220 return 44 + 3 * nbyte;
226 return 64 + 2 * nbyte;
230 return 4 + nbyte;
236 return 4 + 2 * nbyte + 5 * hnbyte;
311 unsigned int nbyte;
312 nbyte = (bitlen + 7) >> 3;
318 if (!read_lebn(&p, nbyte, &dsa->p))
322 if (!read_lebn(&p, nbyte, &dsa->g))
325 if (!read_lebn(&p, nbyte, &dsa->pub_key))
366 unsigned int nbyte, hnbyte;
367 nbyte = (bitlen + 7) >> 3;
378 if (!read_lebn(&p, nbyte, &rsa->n))
391 if (!read_lebn(&p, nbyte, &rsa->d))
554 int nbyte, hnbyte, bitlen;
558 nbyte = BN_num_bytes(rsa->n);
566 * For private key each component must fit within nbyte or hnbyte.
568 if (BN_num_bytes(rsa->d) > nbyte)
585 int nbyte, hnbyte;
586 nbyte = BN_num_bytes(rsa->n);
597 write_lebn(out, rsa->d, nbyte);
602 int nbyte;
603 nbyte = BN_num_bytes(dsa->p);
604 write_lebn(out, dsa->p, nbyte);
606 write_lebn(out, dsa->g, nbyte);
608 write_lebn(out, dsa->pub_key, nbyte);