aesni_ghash.c (275732) | aesni_ghash.c (281606) |
---|---|
1/*- 2 * Copyright (c) 2014 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by John-Mark Gurney under 6 * the sponsorship of the FreeBSD Foundation and 7 * Rubicon Communications, LLC (Netgate). 8 * Redistribution and use in source and binary forms, with or without --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * | 1/*- 2 * Copyright (c) 2014 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by John-Mark Gurney under 6 * the sponsorship of the FreeBSD Foundation and 7 * Rubicon Communications, LLC (Netgate). 8 * Redistribution and use in source and binary forms, with or without --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * |
30 * $FreeBSD: head/sys/crypto/aesni/aesni_ghash.c 275732 2014-12-12 19:56:36Z jmg $ | 30 * $FreeBSD: head/sys/crypto/aesni/aesni_ghash.c 281606 2015-04-16 17:42:52Z rodrigc $ |
31 * 32 */ 33 34/* 35 * Figure 5, 8 and 12 are copied from the Intel white paper: 36 * Intel�� Carry-Less Multiplication Instruction and its Usage for 37 * Computing the GCM Mode 38 * --- 23 unchanged lines hidden (view full) --- 62 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 63 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 64 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 65 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 66 */ 67 68#ifdef _KERNEL 69#include <crypto/aesni/aesni.h> | 31 * 32 */ 33 34/* 35 * Figure 5, 8 and 12 are copied from the Intel white paper: 36 * Intel�� Carry-Less Multiplication Instruction and its Usage for 37 * Computing the GCM Mode 38 * --- 23 unchanged lines hidden (view full) --- 62 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 63 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 64 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 65 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 66 */ 67 68#ifdef _KERNEL 69#include <crypto/aesni/aesni.h> |
70#include <crypto/aesni/aesni_os.h> |
|
70#else 71#include <stdint.h> 72#endif 73 74#include <wmmintrin.h> 75#include <emmintrin.h> 76#include <smmintrin.h> 77 --- 726 unchanged lines hidden --- | 71#else 72#include <stdint.h> 73#endif 74 75#include <wmmintrin.h> 76#include <emmintrin.h> 77#include <smmintrin.h> 78 --- 726 unchanged lines hidden --- |