Home | History | Annotate | Download | only in demos

Lines Matching defs:plaintext

168 "The output of step N is used as the key and plaintext for step N+1 (key bytes repeated as required to fill the key)\n\n");
398 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE];
402 fprintf(out, "EAX Test Vectors. Uses the 00010203...NN-1 pattern for header/nonce/plaintext/key. The outputs\n"
424 plaintext[z] = (unsigned char)(z & 255);
429 if ((err = eax_encrypt_authenticate_memory(x, key, kl, nonce, y1, header, y1, plaintext, y1, plaintext, tag, &len)) != CRYPT_OK) {
435 fprintf(out, "%02X", plaintext[z]);
458 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE];
462 fprintf(out, "OCB Test Vectors. Uses the 00010203...NN-1 pattern for nonce/plaintext/key. The outputs\n"
489 plaintext[z] = (unsigned char)(z & 255);
492 if ((err = ocb_encrypt_authenticate_memory(x, key, kl, nonce, plaintext, y1, plaintext, tag, &len)) != CRYPT_OK) {
498 fprintf(out, "%02X", plaintext[z]);
522 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE];
526 fprintf(out, "CCM Test Vectors. Uses the 00010203...NN-1 pattern for nonce/header/plaintext/key. The outputs\n"
553 plaintext[z] = (unsigned char)(z & 255);
556 if ((err = ccm_memory(x, key, kl, NULL, nonce, 13, plaintext, y1, plaintext, y1, plaintext, tag, &len, CCM_ENCRYPT)) != CRYPT_OK) {
562 fprintf(out, "%02X", plaintext[z]);
584 unsigned char key[MAXBLOCKSIZE], plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE];
588 fprintf(out, "GCM Test Vectors. Uses the 00010203...NN-1 pattern for nonce/header/plaintext/key. The outputs\n"
610 plaintext[z] = (unsigned char)(z & 255);
613 if ((err = gcm_memory(x, key, kl, plaintext, y1, plaintext, y1, plaintext, y1, plaintext, tag, &len, GCM_ENCRYPT)) != CRYPT_OK) {
619 fprintf(out, "%02X", plaintext[z]);