gnu-crypto-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNU Crypto] FYI: EAX, OMAC


From: Casey Marshall
Subject: [GNU Crypto] FYI: EAX, OMAC
Date: Mon, 19 Jan 2004 01:01:05 -0800
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've just checked in implementations of the EAX block cipher mode and
the OMAC message authentication code.

EAX is an authenticating mode, meaning that a MAC is produced at the
end of encipherment, which can be used to verify the integrity of the
ciphertext when decrypted. It is based on CTR mode and OMAC. This also
adds a new interface, IAuthenticatedMode, which is really just the
trivial conjunction of IMode and IMac.

OMAC is a MAC based on a block cipher in CBC mode.

CTR has also been improved to accept block sizes from 1 to the
underlying cipher's block size, and uses the IV parameter as the
initial counter value.

Cheers,

2004-01-19  Casey Marshall  <address@hidden>

        * source/gnu/crypto/mode/ModeFactory.java
        (getInstance): return EAX if requested.

        * source/gnu/crypto/mac/MacFactory.java
        (getInstance): return OMAC if requested.

        * source/gnu/crypto/Registry.java
        (EAX_MODE): new constant.
        (OMAC_PREFIX): new constant.

        * source/gnu/crypto/mode/BaseMode.java
        (testSymmetry): use cipherBlockSize for CIPHER_BLOCK_SIZE.

        * source/gnu/crypto/mode/CTR.java
        (setup): allow smaller block sizes; use IV for initial counter.
        (blockSizes): new method; override default implementation.
        (ctr): modified for varying block sizes.

        * source/gnu/crypto/mode/IAuthenticatedMode.java,
        source/gnu/crypto/mode/EAX.java,
        source/gnu/crypto/mac/OMAC.java,
        source/gnu/testlet/gnu/crypto/mac/TestOfOMAC.java,
        source/gnu/testlet/gnu/crypto/mode/TestOfEAX.java:
        New files.

- -- 
Casey Marshall || address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>

iD8DBQFAC5zOgAuWMgRGsWsRAj44AJ9RCVmql0X8Tz9kgnHfnU24Reik3gCgiIwF
q9DM7B7BBJk4CGULEihuwM0=
=GhEb
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]