Lines Matching refs:scratch
1930 uint8_t scratch[10], reversed[10]; in test_bn2signed() local
1944 i = sizeof(scratch) - test->mpi_len; in test_bn2signed()
1945 if (!TEST_int_eq(BN_signed_bn2bin(bn, scratch, sizeof(scratch)), in test_bn2signed()
1946 sizeof(scratch)) in test_bn2signed()
1947 || !TEST_true(copy_reversed(reversed, scratch, sizeof(scratch))) in test_bn2signed()
1948 || !TEST_mem_eq(test->mpi, test->mpi_len, scratch + i, test->mpi_len)) in test_bn2signed()
1951 if (!TEST_ptr(bn2 = BN_signed_bin2bn(scratch, sizeof(scratch), NULL)) in test_bn2signed()
1972 if (!TEST_int_eq(BN_signed_bn2lebin(bn, scratch, sizeof(scratch)), in test_bn2signed()
1973 sizeof(scratch)) in test_bn2signed()
1974 || !TEST_true(copy_reversed(reversed, scratch, sizeof(scratch))) in test_bn2signed()
1978 if (!TEST_ptr(bn2 = BN_signed_lebin2bn(scratch, sizeof(scratch), NULL)) in test_bn2signed()
2197 uint8_t scratch[8]; in test_mpi() local
2208 if (!TEST_size_t_le(mpi_len, sizeof(scratch))) in test_mpi()
2211 if (!TEST_size_t_eq(mpi_len2 = BN_bn2mpi(bn, scratch), mpi_len) in test_mpi()
2212 || !TEST_mem_eq(test->mpi, test->mpi_len, scratch, mpi_len)) in test_mpi()
2215 if (!TEST_ptr(bn2 = BN_mpi2bn(scratch, mpi_len, NULL))) in test_mpi()