aesni.h (285216) | aesni.h (285289) |
---|---|
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 285216 2015-07-06 19:30:29Z jmg $ | 26 * $FreeBSD: head/sys/crypto/aesni/aesni.h 285289 2015-07-08 19:15:29Z 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> --- 24 unchanged lines hidden (view full) --- 59 int algo; 60 int rounds; 61 /* uint8_t *ses_ictx; */ 62 /* uint8_t *ses_octx; */ 63 /* int ses_mlen; */ 64 int used; 65 uint32_t id; 66 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> --- 24 unchanged lines hidden (view full) --- 59 int algo; 60 int rounds; 61 /* uint8_t *ses_ictx; */ 62 /* uint8_t *ses_octx; */ 63 /* int ses_mlen; */ 64 int used; 65 uint32_t id; 66 TAILQ_ENTRY(aesni_session) next; |
67 struct fpu_kern_ctx *fpu_ctx; | |
68}; 69 70/* 71 * Internal functions, implemented in assembler. 72 */ 73void aesni_set_enckey(const uint8_t *userkey, 74 uint8_t *encrypt_schedule /*__aligned(16)*/, int number_of_rounds); 75void aesni_set_deckey(const uint8_t *encrypt_schedule /*__aligned(16)*/, --- 41 unchanged lines hidden --- | 67}; 68 69/* 70 * Internal functions, implemented in assembler. 71 */ 72void aesni_set_enckey(const uint8_t *userkey, 73 uint8_t *encrypt_schedule /*__aligned(16)*/, int number_of_rounds); 74void aesni_set_deckey(const uint8_t *encrypt_schedule /*__aligned(16)*/, --- 41 unchanged lines hidden --- |