Home | History | Annotate | Download | only in testprof

Lines Matching defs:l3

9    unsigned long x, y, l1, l2, l3, i1, i2, lparamlen, saltlen, modlen;
27 l3 = (rand() & 31) + 8;
28 for (y = 0; y < l3; y++) buf[0][y] = rand() & 255;
41 DO(pkcs_1_oaep_encode(buf[0], l3, lparam, lparamlen, modlen, &yarrow_prng, prng_idx, hash_idx, buf[1], &l1));
47 if (res1 != 1 || l2 != l3 || memcmp(buf[2], buf[0], l3) != 0) {
48 fprintf(stderr, "Outsize == %lu, should have been %lu, res1 = %d, lparamlen = %lu, msg contents follow.\n", l2, l3, res1, lparamlen);
50 for (x = 0; x < l3; x++) {
63 DO(pkcs_1_pss_encode(buf[0], l3, saltlen, &yarrow_prng, prng_idx, hash_idx, modlen, buf[1], &l1));
64 DO(pkcs_1_pss_decode(buf[0], l3, buf[1], l1, saltlen, hash_idx, modlen, &res1));
66 buf[0][i1 = abs(rand()) % l3] ^= 1;
67 DO(pkcs_1_pss_decode(buf[0], l3, buf[1], l1, saltlen, hash_idx, modlen, &res2));
71 pkcs_1_pss_decode(buf[0], l3, buf[1], l1, saltlen, hash_idx, modlen, &res3);
73 fprintf(stderr, "PSS failed: %d, %d, %d, %lu, %lu\n", res1, res2, res3, l3, saltlen);