netdev-dpdk: fix mbuf leaks
[cascardo/ovs.git] / lib / aes128.h
1 /*
2  * Copyright (c) 2009 Nicira, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at:
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /*
18  * Based on rijndael.txt by Philip J. Erdelsky, downloaded from
19  * http://www.efgh.com/software/rijndael.htm on September 24, 2009.  The
20  * license information there is: "Public domain; no restrictions on use."
21  * The Apache license above applies only to Nicira's modifications to the
22  * original code.
23  */
24
25 #ifndef AES128_H
26 #define AES128_H
27
28 #include <stdint.h>
29
30 struct aes128 {
31     uint32_t rk[128/8 + 28];
32 };
33
34 void aes128_schedule(struct aes128 *, const uint8_t key[16]);
35 void aes128_encrypt(const struct aes128 *, const void *, void *);
36
37 #endif  /* aes128.h */