Lines Matching refs:fprintf
127 fprintf(out, "Hash Test Vectors:\n\nThese are the hashes of nn bytes '00 01 02 03 .. (nn-1)'\n\n");
134 fprintf(out, "Hash: %s\n", hash_descriptor[x].name);
144 fprintf(out, "%3lu: ", y);
146 fprintf(out, "%02X", md[z]);
148 fprintf(out, "\n");
150 fprintf(out, "\n");
166 fprintf(out,
171 fprintf(out, "Cipher: %s\n", cipher_descriptor[x].name);
187 fprintf(out, "Key Size: %d bytes\n", kl);
208 fprintf(out, "%2lu: ", w);
210 fprintf(out, "%02X", pt[z]);
212 fprintf(out, "\n");
223 fprintf(out, "\n");
226 fprintf(out, "\n");
240 fprintf(out,
246 fprintf(out, "HMAC-%s\n", hash_descriptor[x].name);
268 fprintf(out, "%3d: ", y);
270 fprintf(out, "%02X", output[z]);
272 fprintf(out, "\n");
278 fprintf(out, "\n");
292 fprintf(out,
306 fprintf(out, "OMAC-%s (%d byte key)\n", cipher_descriptor[x].name, kl);
322 fprintf(out, "%3d: ", y);
324 fprintf(out, "%02X", output[z]);
326 fprintf(out, "\n");
333 fprintf(out, "\n");
347 fprintf(out,
361 fprintf(out, "PMAC-%s (%d byte key)\n", cipher_descriptor[x].name, kl);
377 fprintf(out, "%3d: ", y);
379 fprintf(out, "%02X", output[z]);
381 fprintf(out, "\n");
388 fprintf(out, "\n");
402 fprintf(out, "EAX Test Vectors. Uses the 00010203...NN-1 pattern for header/nonce/plaintext/key. The outputs\n"
415 fprintf(out, "EAX-%s (%d byte key)\n", cipher_descriptor[x].name, kl);
433 fprintf(out, "%3d: ", y1);
435 fprintf(out, "%02X", plaintext[z]);
437 fprintf(out, ", ");
439 fprintf(out, "%02X", tag[z]);
441 fprintf(out, "\n");
448 fprintf(out, "\n");
462 fprintf(out, "OCB Test Vectors. Uses the 00010203...NN-1 pattern for nonce/plaintext/key. The outputs\n"
475 fprintf(out, "OCB-%s (%d byte key)\n", cipher_descriptor[x].name, kl);
496 fprintf(out, "%3d: ", y1);
498 fprintf(out, "%02X", plaintext[z]);
500 fprintf(out, ", ");
502 fprintf(out, "%02X", tag[z]);
504 fprintf(out, "\n");
511 fprintf(out, "\n");
526 fprintf(out, "CCM Test Vectors. Uses the 00010203...NN-1 pattern for nonce/header/plaintext/key. The outputs\n"
539 fprintf(out, "CCM-%s (%d byte key)\n", cipher_descriptor[x].name, kl);
560 fprintf(out, "%3d: ", y1);
562 fprintf(out, "%02X", plaintext[z]);
564 fprintf(out, ", ");
566 fprintf(out, "%02X", tag[z]);
568 fprintf(out, "\n");
575 fprintf(out, "\n");
588 fprintf(out, "GCM Test Vectors. Uses the 00010203...NN-1 pattern for nonce/header/plaintext/key. The outputs\n"
601 fprintf(out, "GCM-%s (%d byte key)\n", cipher_descriptor[x].name, kl);
617 fprintf(out, "%3d: ", y1);
619 fprintf(out, "%02X", plaintext[z]);
621 fprintf(out, ", ");
623 fprintf(out, "%02X", tag[z]);
625 fprintf(out, "\n");
632 fprintf(out, "\n");
644 fprintf(out, "Base64 vectors. These are the base64 encodings of the strings 00,01,02...NN-1\n\n");
651 fprintf(out, "%2lu: %s\n", x, dst);
669 fprintf(out, "ecc vectors. These are for kG for k=1,3,9,27,...,3**n until k > order of the curve outputs are <k,x,y> triplets\n\n");
677 fprintf(out, "ECC-%d\n", ltc_ecc_sets[x].size*8);
688 mp_tohex(k, (char*)str); fprintf(out, "%s, ", (char*)str);
689 mp_tohex(R->x, (char*)str); fprintf(out, "%s, ", (char*)str);
690 mp_tohex(R->y, (char*)str); fprintf(out, "%s\n", (char*)str);
715 fprintf(stderr, "Error starting LRW-AES: %s\n", error_to_string(err));
725 fprintf(stderr, "Error encrypting with LRW-AES: %s\n", error_to_string(err));
730 fprintf(out, "%d:", x);
732 fprintf(out, "%02x", buf[y]);
734 fprintf(out, "\n");
738 fprintf(stderr, "Error setting IV: %s\n", error_to_string(err));
750 fprintf(stderr, "Error decrypting with LRW-AES: %s\n", error_to_string(err));
755 fprintf(out, "%d:", x);
757 fprintf(out, "%02x", buf[y]);
759 fprintf(out, "\n");