]> andersk Git - openssh.git/blame - rijndael.h
- (djm) Big OpenBSD sync:
[openssh.git] / rijndael.h
CommitLineData
94ec8c6b 1#ifndef _RIJNDAEL_H_
2#define _RIJNDAEL_H_
3
4/* 1. Standard types for AES cryptography source code */
5
6typedef u_int8_t u1byte; /* an 8 bit unsigned character type */
7typedef u_int16_t u2byte; /* a 16 bit unsigned integer type */
8typedef u_int32_t u4byte; /* a 32 bit unsigned integer type */
9
10typedef int8_t s1byte; /* an 8 bit signed character type */
11typedef int16_t s2byte; /* a 16 bit signed integer type */
12typedef int32_t s4byte; /* a 32 bit signed integer type */
13
14typedef struct _rijndael_ctx {
15 u4byte k_len;
16 int decrypt;
17 u4byte e_key[64];
18 u4byte d_key[64];
19} rijndael_ctx;
20
21
22/* 2. Standard interface for AES cryptographic routines */
23
24/* These are all based on 32 bit unsigned values and will therefore */
25/* require endian conversions for big-endian architectures */
26
27rijndael_ctx *rijndael_set_key __P((rijndael_ctx *, const u4byte *, u4byte, int));
28void rijndael_encrypt __P((rijndael_ctx *, const u4byte *, u4byte *));
29void rijndael_decrypt __P((rijndael_ctx *, const u4byte *, u4byte *));
30
31#endif /* _RIJNDAEL_H_ */
This page took 0.050436 seconds and 5 git commands to generate.