Lines Matching defs:hnbyte
207 unsigned int nbyte, hnbyte;
209 hnbyte = (bitlen + 15) >> 4;
233 return 4 + 2 * nbyte + 5 * hnbyte;
357 unsigned int nbyte, hnbyte;
359 hnbyte = (bitlen + 15) >> 4;
372 if (!read_lebn(&p, hnbyte, &rsa->p))
374 if (!read_lebn(&p, hnbyte, &rsa->q))
376 if (!read_lebn(&p, hnbyte, &rsa->dmp1))
378 if (!read_lebn(&p, hnbyte, &rsa->dmq1))
380 if (!read_lebn(&p, hnbyte, &rsa->iqmp))
545 int nbyte, hnbyte, bitlen;
550 hnbyte = (BN_num_bits(rsa->n) + 15) >> 4;
557 * For private key each component must fit within nbyte or hnbyte.
561 if ((BN_num_bytes(rsa->iqmp) > hnbyte)
562 || (BN_num_bytes(rsa->p) > hnbyte)
563 || (BN_num_bytes(rsa->q) > hnbyte)
564 || (BN_num_bytes(rsa->dmp1) > hnbyte)
565 || (BN_num_bytes(rsa->dmq1) > hnbyte))
576 int nbyte, hnbyte;
578 hnbyte = (BN_num_bits(rsa->n) + 15) >> 4;
583 write_lebn(out, rsa->p, hnbyte);
584 write_lebn(out, rsa->q, hnbyte);
585 write_lebn(out, rsa->dmp1, hnbyte);
586 write_lebn(out, rsa->dmq1, hnbyte);
587 write_lebn(out, rsa->iqmp, hnbyte);