> On Nov 19, 2014, at 5:03 PM, Maarten Bodewes <maarten.bode...@gmail.com> 
> wrote:
> 
> Hi all,
> 
> I would be very grateful if somebody could explain why the following problem 
> occurs:
> 
> a test vector with an AAD of 20 bytes created an authentication tag that is 
> not correct,
> this could for instance be a padding bug in OpenSSL's GCM implementation.
> 
> Ref: http://stackoverflow.com/q/27023287/589259 
> <http://stackoverflow.com/q/27023287/589259>
> 
> The Bouncy Castle implementation does seem to generate the correct value for 
> the same test vector.
> 
> I'll try and execute the code, but currently my openssl development 
> environment is not up.
> 
> Regards,
> Maarten

I built your code against 1.0.1j and got the expected result for the authtag on 
your test vector:

should be: c75b7832b2a2d9bd827412b6ef5769db
result is: c75b7832b2a2d9bd827412b6ef5769db

$ openssl version
OpenSSL 1.0.1j 15 Oct 2014

Reply via email to