[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.1.2.2

1.1.2.1   jason       1: /*     $OpenBSD: rijndael.h,v 1.6 2001/01/29 01:58:17 niklas Exp $     */
                      2:
1.1       markus      3: #ifndef _RIJNDAEL_H_
                      4: #define _RIJNDAEL_H_
                      5:
                      6: /* 1. Standard types for AES cryptography source code               */
                      7:
                      8: typedef u_int8_t   u1byte; /* an 8 bit unsigned character type */
                      9: typedef u_int16_t  u2byte; /* a 16 bit unsigned integer type   */
                     10: typedef u_int32_t  u4byte; /* a 32 bit unsigned integer type   */
                     11:
                     12: typedef int8_t     s1byte; /* an 8 bit signed character type   */
                     13: typedef int16_t    s2byte; /* a 16 bit signed integer type     */
                     14: typedef int32_t    s4byte; /* a 32 bit signed integer type     */
                     15:
                     16: typedef struct _rijndael_ctx {
                     17:        u4byte  k_len;
                     18:        int decrypt;
                     19:        u4byte  e_key[64];
                     20:        u4byte  d_key[64];
                     21: } rijndael_ctx;
                     22:
                     23:
                     24: /* 2. Standard interface for AES cryptographic routines             */
                     25:
                     26: /* These are all based on 32 bit unsigned values and will therefore */
                     27: /* require endian conversions for big-endian architectures          */
                     28:
                     29: rijndael_ctx *rijndael_set_key  __P((rijndael_ctx *, const u4byte *, u4byte, int));
                     30: void rijndael_encrypt __P((rijndael_ctx *, const u4byte *, u4byte *));
                     31: void rijndael_decrypt __P((rijndael_ctx *, const u4byte *, u4byte *));
                     32:
                     33: #endif /* _RIJNDAEL_H_ */