[RFC PATCH v2] Initial implementation of GCM

Jussi Kivilinna jussi.kivilinna at iki.fi
Wed Nov 13 11:13:03 CET 2013


On 13.11.2013 05:42, Stephan Mueller wrote:
> Am Montag, 11. November 2013, 16:09:32 schrieb Jussi Kivilinna:
> 
> Hi Jussi,
> 
>> On 11.11.2013 15:02, Dmitry Eremin-Solenikov wrote:
>>> Hello,
>>>
>>> On Mon, Nov 11, 2013 at 4:46 PM, Jussi Kivilinna <jussi.kivilinna at iki.fi> 
> wrote:
> 
> [..]
> 
>>> I'm unsure about generate_iv/set_iv argument. More on that here:
>>> http://thread.gmane.org/gmane.comp.encryption.gpg.libgcrypt.devel/2896/foc
>>> us=2897
>> How is this handled in other libraries?
> 
> All libraries that undergo or underwent a FIPS 140-2 validation have 
> appropriate handling here.
> 
> As libgcrypt has a FIPS mode, it looks like FIPS is of importance. If so, 
> either the handling is implemented or GCM cannot be allowed in FIPS mode.
> 

So if I read that previous mail thread correctly, disabling GCM encryption
when setiv is invocate in FIPS mode should be enough. So with current
implementation before adding generate_iv API, libgcrypt would in FIPS mode
only provide decryption. Something like in the attached patch.

-Jussi

> Ciao
> Stephan
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 10-gcm-add-fips-mode-restrictions.patch
Type: text/x-patch
Size: 3364 bytes
Desc: not available
URL: </pipermail/attachments/20131113/389abbd7/attachment.bin>


More information about the Gcrypt-devel mailing list