[PATCH] MD2 for libgcrypt

Stephan Mueller smueller at chronox.de
Fri Jul 16 16:25:08 CEST 2010


Hi,

please see attached the patch adding MD2 to libgcrypt. The
implementation is copied from NSS. As this implementation is covered by
the LGPL, it should be consistent with libgcrypt.

The code works, the test case passes (and I even verified that negative
tests fail).

Furthermore, I am able to import the infamous Verisign Class 1
certificate using MD2 into the key store with gpgsm.

Please verify the code attached and let me know.

There is one issue I need help with: I have no real idea about the size I should add to burn_stack().

The code base is libgcrypt 1.4.4 as found on Ubuntu Lucid.

Thanks
Stephan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: md2_cipher.patch
Type: text/x-patch
Size: 9121 bytes
Desc: not available
URL: </pipermail/attachments/20100716/ea897e8b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: md2_confighin.patch
Type: text/x-patch
Size: 369 bytes
Desc: not available
URL: </pipermail/attachments/20100716/ea897e8b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: md2_configureac.patch
Type: text/x-patch
Size: 807 bytes
Desc: not available
URL: </pipermail/attachments/20100716/ea897e8b/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: md2_src.patch
Type: text/x-patch
Size: 513 bytes
Desc: not available
URL: </pipermail/attachments/20100716/ea897e8b/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: md2_tests.patch
Type: text/x-patch
Size: 592 bytes
Desc: not available
URL: </pipermail/attachments/20100716/ea897e8b/attachment-0004.bin>


More information about the Gcrypt-devel mailing list