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

1.1     ! root        1: /*
        !             2:  *     Decrypt 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:        Block lastcipher;
        !            17:        extern Block setup();
        !            18: 
        !            19:        key = setup(argc, argv);
        !            20:        key_setup(&key, 1);
        !            21:        lastcipher.left = 0;
        !            22:        lastcipher.right = 0;
        !            23:        while (c_source(&ciphertext)) {
        !            24:                plaintext = ciphertext;
        !            25:                des(&plaintext);
        !            26:                plaintext.left ^= lastcipher.left;
        !            27:                plaintext.right ^= lastcipher.right;
        !            28:                lastcipher = ciphertext;
        !            29:                p_sink(&plaintext);
        !            30:        }
        !            31: }

unix.superglobalmegacorp.com

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