[BACK]Return to rijndael.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Annotation of src/usr.bin/ssh/rijndael.h, Revision 1.2

1.2     ! markus      1: /*
        !             2:  * rijndael-alg-fst.h   v2.4   April '2000
        !             3:  * rijndael-api-fst.h   v2.4   April '2000
        !             4:  *
        !             5:  * Optimised ANSI C code
        !             6:  *
        !             7:  */
        !             8:
        !             9: #ifndef RIJNDAEL_H
        !            10: #define RIJNDAEL_H
        !            11:
        !            12: #define RIJNDAEL_MAXKC         (256/32)
        !            13: #define RIJNDAEL_MAXROUNDS     14
        !            14:
        !            15: #define        RIJNDAEL_ENCRYPT        0
        !            16: #define        RIJNDAEL_DECRYPT        1
        !            17:
        !            18: typedef struct {
        !            19:        int ROUNDS;             /* key-length-dependent number of rounds */
        !            20:        u_int8_t keySched[RIJNDAEL_MAXROUNDS+1][4][4];
        !            21: } rijndael_key;
        !            22:
        !            23: int rijndael_encrypt(rijndael_key *key, u_int8_t a[16], u_int8_t b[16]);
        !            24: int rijndael_decrypt(rijndael_key *key, u_int8_t a[16], u_int8_t b[16]);
        !            25: int rijndael_makekey(rijndael_key *key, int direction, int keyLen, u_int8_t *keyMaterial);
1.1       markus     26:
1.2     ! markus     27: #endif