summaryrefslogtreecommitdiffstats
path: root/sys/opencrypto/gmac.h
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2015-09-15 12:29:33 -0500
committerLuiz Otavio O Souza <luiz@netgate.com>2015-10-20 11:32:36 -0500
commit2d697711142c82967bd7d519bf253f9462bbc573 (patch)
tree829204069a08e1d22b3ccd5704b9da7e07bb0935 /sys/opencrypto/gmac.h
parent8debb5ec1f7f108a317cc2c7624198ba2eb03469 (diff)
downloadFreeBSD-src-2d697711142c82967bd7d519bf253f9462bbc573.zip
FreeBSD-src-2d697711142c82967bd7d519bf253f9462bbc573.tar.gz
Revert AESNI patches.
Revert "Importing pfSense patch aesgcm.soft.1.patch" This reverts commit 46e99a8858f1c843c1774e472c11d422ca2163ae. TAG: IPSEC-HEAD Issue: #4841
Diffstat (limited to 'sys/opencrypto/gmac.h')
-rw-r--r--sys/opencrypto/gmac.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/sys/opencrypto/gmac.h b/sys/opencrypto/gmac.h
deleted file mode 100644
index 94137da..0000000
--- a/sys/opencrypto/gmac.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/* $OpenBSD: gmac.h,v 1.2 2012/12/05 23:20:15 deraadt Exp $ */
-
-/*
- * Copyright (c) 2010 Mike Belopuhov <mike@vantronix.net>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-#ifndef _GMAC_H_
-#define _GMAC_H_
-
-#include <crypto/rijndael/rijndael.h>
-
-#define GMAC_BLOCK_LEN 16
-#define GMAC_DIGEST_LEN 16
-
-typedef struct _GHASH_CTX {
- uint8_t H[GMAC_BLOCK_LEN]; /* hash subkey */
- uint8_t S[GMAC_BLOCK_LEN]; /* state */
- uint8_t Z[GMAC_BLOCK_LEN]; /* initial state */
-} GHASH_CTX;
-
-typedef struct _AES_GMAC_CTX {
- GHASH_CTX ghash;
- uint32_t K[4*(RIJNDAEL_MAXNR + 1)];
- uint8_t J[GMAC_BLOCK_LEN]; /* counter block */
- int rounds;
-} AES_GMAC_CTX;
-
-__BEGIN_DECLS
-void AES_GMAC_Init(AES_GMAC_CTX *);
-void AES_GMAC_Setkey(AES_GMAC_CTX *, const uint8_t *, uint16_t);
-void AES_GMAC_Reinit(AES_GMAC_CTX *, const uint8_t *, uint16_t);
-int AES_GMAC_Update(AES_GMAC_CTX *, const uint8_t *, uint16_t);
-void AES_GMAC_Final(uint8_t [GMAC_DIGEST_LEN], AES_GMAC_CTX *);
-__END_DECLS
-
-#endif /* _GMAC_H_ */
OpenPOWER on IntegriCloud