OLD | NEW |
1 /* | 1 /* |
2 * aes.h | 2 * aes.h |
3 * | 3 * |
4 * header file for the AES block cipher | 4 * header file for the AES block cipher |
5 * | 5 * |
6 * David A. McGrew | 6 * David A. McGrew |
7 * Cisco Systems, Inc. | 7 * Cisco Systems, Inc. |
8 */ | 8 */ |
9 | 9 |
10 /* | 10 /* |
(...skipping 28 matching lines...) Expand all Loading... |
39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | 39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
40 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 40 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
41 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 41 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
42 * OF THE POSSIBILITY OF SUCH DAMAGE. | 42 * OF THE POSSIBILITY OF SUCH DAMAGE. |
43 * | 43 * |
44 */ | 44 */ |
45 | 45 |
46 #ifndef _AES_H | 46 #ifndef _AES_H |
47 #define _AES_H | 47 #define _AES_H |
48 | 48 |
49 #include "config.h" | |
50 | |
51 #include "datatypes.h" | 49 #include "datatypes.h" |
52 #include "gf2_8.h" | 50 #include "gf2_8.h" |
53 #include "err.h" | 51 #include "err.h" |
54 | 52 |
55 /* aes internals */ | 53 /* aes internals */ |
56 | 54 |
57 typedef struct { | 55 typedef struct { |
58 v128_t round[15]; | 56 v128_t round[15]; |
59 int num_rounds; | 57 int num_rounds; |
60 } aes_expanded_key_t; | 58 } aes_expanded_key_t; |
(...skipping 20 matching lines...) Expand all Loading... |
81 */ | 79 */ |
82 | 80 |
83 void | 81 void |
84 aes_init_sbox(void); | 82 aes_init_sbox(void); |
85 | 83 |
86 void | 84 void |
87 aes_compute_tables(void); | 85 aes_compute_tables(void); |
88 #endif | 86 #endif |
89 | 87 |
90 #endif /* _AES_H */ | 88 #endif /* _AES_H */ |
OLD | NEW |