Annotation of researchv10no/cmd/descrypt/encrypt.c, revision 1.1

1.1     ! root        1: /*
        !             2:  *     Encrypt a Message with New Crypt Algorithm
        !             3:  *     D.P.Mitchell  83/06/08.
        !             4:  */
        !             5: 
        !             6: #include <stdio.h>
        !             7: #include "crypt.h"
        !             8: 
        !             9: main(argc, argv)
        !            10: int argc;
        !            11: char *argv[];
        !            12: {
        !            13:        Block key;
        !            14:        Block plaintext;
        !            15:        Block ciphertext;
        !            16:        extern Block setup();
        !            17: 
        !            18:        key = setup(argc, argv);
        !            19:        key_setup(&key, 0);
        !            20:        ciphertext.left = 0;
        !            21:        ciphertext.right = 0;
        !            22:        while (p_source(&plaintext)) {
        !            23:                plaintext.left ^= ciphertext.left;
        !            24:                plaintext.right ^= ciphertext.right;
        !            25:                des(&plaintext);
        !            26:                ciphertext = plaintext;
        !            27:                c_sink(&ciphertext);
        !            28:        }
        !            29: }

unix.superglobalmegacorp.com

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