summaryrefslogtreecommitdiffstats
path: root/sys/crypto/cryptosoft.h
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2010-09-22 11:54:23 +0000
committermikeb <mikeb@openbsd.org>2010-09-22 11:54:23 +0000
commit112808b6ee76dc5b96194401fae4a712ecf06f7e (patch)
tree2e49d2457cae25d2dc930dbbff616994cdec1ce4 /sys/crypto/cryptosoft.h
parentunify MS-CHAP implementation to sbin/iked/chap_ms.[ch]. (diff)
downloadwireguard-openbsd-112808b6ee76dc5b96194401fae4a712ecf06f7e.tar.xz
wireguard-openbsd-112808b6ee76dc5b96194401fae4a712ecf06f7e.zip
OCF support for the Galois/Counter Mode (GCM) for AES as
described in FIPS SP 800-38D. This implementation supports 16 byte authentication tag only, splitting transformation into two parts: encryption and authentication. Encryption is handled by the existing AES-CTR implementation, while authentication requires new AES_GMAC hash function. Additional routine is added to the software crypto driver to deal with peculiarities of a combined authentication- encryption transformation. With suggestions from reyk, naddy and toby.
Diffstat (limited to 'sys/crypto/cryptosoft.h')
-rw-r--r--sys/crypto/cryptosoft.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/crypto/cryptosoft.h b/sys/crypto/cryptosoft.h
index d7133645a27..9a1c6840312 100644
--- a/sys/crypto/cryptosoft.h
+++ b/sys/crypto/cryptosoft.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptosoft.h,v 1.12 2010/01/10 12:43:07 markus Exp $ */
+/* $OpenBSD: cryptosoft.h,v 1.13 2010/09/22 11:54:23 mikeb Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
@@ -63,6 +63,7 @@ extern const u_int8_t hmac_opad_buffer[HMAC_MAX_BLOCK_LEN];
int swcr_encdec(struct cryptodesc *, struct swcr_data *, caddr_t, int);
int swcr_authcompute(struct cryptop *, struct cryptodesc *, struct swcr_data *,
caddr_t, int);
+int swcr_combined(struct cryptop *);
int swcr_compdec(struct cryptodesc *, struct swcr_data *, caddr_t, int);
int swcr_process(struct cryptop *);
int swcr_newsession(u_int32_t *, struct cryptoini *);