Home | History | Annotate | Download | only in bn

Lines Matching defs:out

34  *    The word 'cryptographic' can be left out if the rouines from the library
49 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
137 static void puts_fp(FILE *out, const char *m) {
138 if (out != nullptr) {
139 fputs(m, out);
143 static void flush_fp(FILE *out) {
144 if (out != nullptr) {
145 fflush(out);
149 static void message(FILE *out, const char *m) {
150 puts_fp(out, "print \"test ");
151 puts_fp(out, m);
152 puts_fp(out, "\\n\"\n");
189 puts_fp(bc_file.get(), "/* tr a-f A-F < bn_test.out | sed s/BAsE/base/ | bc "
333 static int HexToBIGNUM(ScopedBIGNUM *out, const char *in) {
336 out->reset(raw);
1465 uint8_t zeros[256], out[256], reference[128];
1476 memset(out, -1, sizeof(out));
1477 if (!BN_bn2bin_padded(out, sizeof(out), n.get())) {
1482 if (memcmp(zeros, out, sizeof(out))) {
1506 if (BN_bn2bin_padded(out, bytes - 1, n.get())) {
1511 if (!BN_bn2bin_padded(out, bytes, n.get()) ||
1512 memcmp(out, reference, bytes) != 0) {
1517 if (!BN_bn2bin_padded(out, bytes + 1, n.get()) ||
1518 memcmp(out + 1, reference, bytes) || memcmp(out, zeros, 1)) {
1523 if (!BN_bn2bin_padded(out, sizeof(out), n.get()) ||
1524 memcmp(out + sizeof(out) - bytes, reference, bytes) ||
1525 memcmp(out, zeros, sizeof(out) - bytes)) {
1534 static int DecimalToBIGNUM(ScopedBIGNUM *out, const char *in) {
1537 out->reset(raw);