[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcrypt-devel
Subject:    Re: [PATCH 2/2] [v2] Add CMAC (Cipher-based MAC) to MAC API
From:       Jussi Kivilinna <jussi.kivilinna () iki ! fi>
Date:       2013-11-19 11:53:15
Message-ID: 528B512B.1090308 () iki ! fi
[Download RAW message or body]

On 19.11.2013 12:32, Werner Koch wrote:
> On Mon, 18 Nov 2013 17:32, jussi.kivilinna@iki.fi said:
> 
>> +++ b/src/gcrypt.h.in
>> @@ -1309,7 +1309,19 @@ enum gcry_mac_algos
>>      GCRY_MAC_HMAC_WHIRLPOOL     = 10,
>>      GCRY_MAC_HMAC_GOSTR3411_94  = 11,
>>      GCRY_MAC_HMAC_STRIBOG256    = 12,
>> -    GCRY_MAC_HMAC_STRIBOG512    = 13
>> +    GCRY_MAC_HMAC_STRIBOG512    = 13,
>> +
>> +    GCRY_MAC_CMAC_AES           = 100,
>> +    GCRY_MAC_CMAC_3DES          = 101,
> 
> What do you think about using 101 for the first HMAC algo and start CMAC
> at 201 ?  This might be helpful to detect the use of a cipher/hash
> algorithm in place of a MAC algorithm id.

Sure, that makes sense and later GMAC can be added starting at 401.

> 
> 
> Shalom-Salam,
> 
>    Werner
> 
> 
> p.s.
> Please put the name of a function in its definition at pos 0.

Ok.

-Jussi


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic