Package: python2.3-crypto
Version: 2.0+dp1-2
Severity: important

[EMAIL PROTECTED]:~$ python
Python 2.3.5 (#2, Feb  9 2005, 11:41:59)
[GCC 3.3.5 (Debian 1:3.3.5-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from Crypto.Hash import SHA256
>>> s = SHA256.new()
>>> s.update('')
>>> s.hexdigest()
'47a69ec7598bed0f7b25e49ee6b4d2abe4200e497d8046b216343f0e36c608a3'
>>> s = SHA256.new()
>>> s.update('abc')
>>> s.hexdigest()
'551ce4769446b343295ea7f819bae21157541986a4de11ab46b2340ea9831f22'


Both of those supposed SHA256 hash results are wrong.  Verify them
against a correct implementation of SHA256.

  e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

and

  ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

respectively are correct.


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: alpha
Kernel: Linux 2.6.10-rc3-nfs31-isa
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages python2.3-crypto depends on:
ii  libc6.1                     2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  python2.3                   2.3.5-1      An interactive high-level object-o

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to