Lines Matching refs:hnbyte
252 unsigned int hnbyte = (bitlen + 15) >> 4;
277 return 4 + 2 * nbyte + 5 * hnbyte;
449 unsigned int hnbyte = (bitlen + 15) >> 4;
462 if (!read_lebn(&pin, hnbyte, &p))
464 if (!read_lebn(&pin, hnbyte, &q))
466 if (!read_lebn(&pin, hnbyte, &dmp1))
468 if (!read_lebn(&pin, hnbyte, &dmq1))
470 if (!read_lebn(&pin, hnbyte, &iqmp))
626 int nbyte, hnbyte, bitlen;
634 hnbyte = (bitlen + 15) >> 4;
644 * For private key each component must fit within nbyte or hnbyte.
651 if ((BN_num_bytes(iqmp) > hnbyte)
652 || (BN_num_bytes(p) > hnbyte)
653 || (BN_num_bytes(q) > hnbyte)
654 || (BN_num_bytes(dmp1) > hnbyte)
655 || (BN_num_bytes(dmq1) > hnbyte))
666 int nbyte, hnbyte;
670 hnbyte = (RSA_bits(rsa) + 15) >> 4;
678 write_lebn(out, p, hnbyte);
679 write_lebn(out, q, hnbyte);
680 write_lebn(out, dmp1, hnbyte);
681 write_lebn(out, dmq1, hnbyte);
682 write_lebn(out, iqmp, hnbyte);