NetBSD-Bugs archive

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

Re: bin/42881: openssl sha384 broken. Returns 64 bytes instead of 48



The following reply was made to PR bin/42881; it has been noted by GNATS.

From: Marko Kreen <markokr%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/42881: openssl sha384 broken. Returns 64 bytes instead of 48
Date: Wed, 10 Mar 2010 14:25:10 +0200

 --001636498b65b3f0b10481716331
 Content-Type: text/plain; charset=ISO-8859-1
 
 test program for the bug.
 
 -- 
 marko
 
 --001636498b65b3f0b10481716331
 Content-Type: text/plain; charset=US-ASCII; name="test.c"
 Content-Disposition: attachment; filename="test.c"
 Content-Transfer-Encoding: base64
 X-Attachment-Id: f_g6m3qjx0
 
 I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KI2luY2x1ZGUgPG9wZW5zc2wv
 ZXZwLmg+CgpzdGF0aWMgdm9pZCB0ZXN0X2hhc2goY29uc3QgY2hhciAqbmFtZSkKewoJY29uc3Qg
 RVZQX01EICptZDsKCUVWUF9NRF9DVFggY3R4WzFdOwoJaW50IGksIHJsZW47Cgl1bnNpZ25lZCBj
 aGFyIGhhc2hbMTAwXTsKCgltZCA9IEVWUF9nZXRfZGlnZXN0YnluYW1lKG5hbWUpOwoJaWYgKCFt
 ZCkgewoJCXByaW50ZigiJS02czogbm90IGF2YWlsYWJsZVxuIiwgbmFtZSk7CgkJcmV0dXJuOwoJ
 fQoKCWZvciAoaSA9IDA7IGkgPCAxMDA7IGkrKykKCQloYXNoW2ldID0gJzAnICsgaS8xMDsKCWhh
 c2hbaV0gPSAwOwoKCW1lbXNldChjdHgsIDAsIHNpemVvZihjdHgpKTsKCUVWUF9EaWdlc3RJbml0
 X2V4KGN0eCwgbWQsIE5VTEwpOwoJcmxlbiA9IEVWUF9NRF9DVFhfc2l6ZShjdHgpOwoJRVZQX0Rp
 Z2VzdEZpbmFsX2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