Deleted Added
full compact
aesni.h (285289) aesni.h (286049)
1/*-
2 * Copyright (c) 2010 Konstantin Belousov <kib@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2010 Konstantin Belousov <kib@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/crypto/aesni/aesni.h 285289 2015-07-08 19:15:29Z jmg $
26 * $FreeBSD: head/sys/crypto/aesni/aesni.h 286049 2015-07-29 23:37:15Z jmg $
27 */
28
29#ifndef _AESNI_H_
30#define _AESNI_H_
31
32#include <sys/types.h>
33#include <sys/malloc.h>
34#include <sys/queue.h>

--- 64 unchanged lines hidden (view full) ---

99
100/* GCM & GHASH functions */
101void AES_GCM_encrypt(const unsigned char *in, unsigned char *out,
102 const unsigned char *addt, const unsigned char *ivec,
103 unsigned char *tag, uint32_t nbytes, uint32_t abytes, int ibytes,
104 const unsigned char *key, int nr);
105int AES_GCM_decrypt(const unsigned char *in, unsigned char *out,
106 const unsigned char *addt, const unsigned char *ivec,
27 */
28
29#ifndef _AESNI_H_
30#define _AESNI_H_
31
32#include <sys/types.h>
33#include <sys/malloc.h>
34#include <sys/queue.h>

--- 64 unchanged lines hidden (view full) ---

99
100/* GCM & GHASH functions */
101void AES_GCM_encrypt(const unsigned char *in, unsigned char *out,
102 const unsigned char *addt, const unsigned char *ivec,
103 unsigned char *tag, uint32_t nbytes, uint32_t abytes, int ibytes,
104 const unsigned char *key, int nr);
105int AES_GCM_decrypt(const unsigned char *in, unsigned char *out,
106 const unsigned char *addt, const unsigned char *ivec,
107 unsigned char *tag, uint32_t nbytes, uint32_t abytes, int ibytes,
107 const unsigned char *tag, uint32_t nbytes, uint32_t abytes, int ibytes,
108 const unsigned char *key, int nr);
109
110int aesni_cipher_setup_common(struct aesni_session *ses, const uint8_t *key,
111 int keylen);
112uint8_t *aesni_cipher_alloc(struct cryptodesc *enccrd, struct cryptop *crp,
113 int *allocated);
114
115#endif /* _AESNI_H_ */
108 const unsigned char *key, int nr);
109
110int aesni_cipher_setup_common(struct aesni_session *ses, const uint8_t *key,
111 int keylen);
112uint8_t *aesni_cipher_alloc(struct cryptodesc *enccrd, struct cryptop *crp,
113 int *allocated);
114
115#endif /* _AESNI_H_ */