History log of /openbsd-current/sys/crypto/gmac.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_6_2_BASE
# 1.10 02-May-2017 mikeb

Switch OCF and IPsec over to the new AES

ok djm


Revision tags: OPENBSD_6_1_BASE
# 1.9 19-Sep-2016 tedu

convert bcopy to memcpy. from david hill


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.8 07-Nov-2015 mikeb

Update copyright information


# 1.7 07-Nov-2015 mikeb

Pass AES_GMAC context as a void pointer to cut down on casts in xform.c


# 1.6 07-Nov-2015 naddy

Allow overriding ghash_update() with an optimized MD function. Use
this on amd64 to provide a version that uses the PCLMUL instruction
on CPUs that support it but don't have AESNI. ok mikeb@


# 1.5 06-Nov-2015 naddy

Instead of multiplying with 0..1, extend the bit into a mask and do an AND.
The same technique was already used a few lines above. ok mikeb@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 12-Nov-2014 mikeb

Improve performance of an internal loop by saving up on branching
Pointed out by John-Mark Gurney <jmg at funkthat ! com>, thanks!


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.3 11-Jan-2011 deraadt

in AES_GMAC_Final(), explicitly clear the local buffer
ok mikeb


# 1.2 08-Nov-2010 mikeb

use a well established define instead of rolling our own; no binary change


# 1.1 22-Sep-2010 mikeb

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.