Deleted Added
full compact
aesni.h (213069) aesni.h (230426)
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 213069 2010-09-23 11:57:25Z pjd $
26 * $FreeBSD: head/sys/crypto/aesni/aesni.h 230426 2012-01-21 17:45:27Z kib $
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>

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

60 int algo;
61 int rounds;
62 /* uint8_t *ses_ictx; */
63 /* uint8_t *ses_octx; */
64 /* int ses_mlen; */
65 int used;
66 uint32_t id;
67 TAILQ_ENTRY(aesni_session) next;
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>

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

60 int algo;
61 int rounds;
62 /* uint8_t *ses_ictx; */
63 /* uint8_t *ses_octx; */
64 /* int ses_mlen; */
65 int used;
66 uint32_t id;
67 TAILQ_ENTRY(aesni_session) next;
68 struct fpu_kern_ctx fpu_ctx;
68 struct fpu_kern_ctx *fpu_ctx;
69};
70
71/*
72 * Internal functions, implemented in assembler.
73 */
74void aesni_enc(int rounds, const uint8_t *key_schedule,
75 const uint8_t from[AES_BLOCK_LEN], uint8_t to[AES_BLOCK_LEN],
76 const uint8_t iv[AES_BLOCK_LEN]);

--- 29 unchanged lines hidden ---
69};
70
71/*
72 * Internal functions, implemented in assembler.
73 */
74void aesni_enc(int rounds, const uint8_t *key_schedule,
75 const uint8_t from[AES_BLOCK_LEN], uint8_t to[AES_BLOCK_LEN],
76 const uint8_t iv[AES_BLOCK_LEN]);

--- 29 unchanged lines hidden ---