File:  [Research Unix] / researchv10no / cmd / descrypt / encrypt.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

/*
 *	Encrypt a Message with New Crypt Algorithm
 *	D.P.Mitchell  83/06/08.
 */

#include <stdio.h>
#include "crypt.h"

main(argc, argv)
int argc;
char *argv[];
{
	Block key;
	Block plaintext;
	Block ciphertext;
	extern Block setup();

	key = setup(argc, argv);
	key_setup(&key, 0);
	ciphertext.left = 0;
	ciphertext.right = 0;
	while (p_source(&plaintext)) {
		plaintext.left ^= ciphertext.left;
		plaintext.right ^= ciphertext.right;
		des(&plaintext);
		ciphertext = plaintext;
		c_sink(&ciphertext);
	}
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.