Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004137 [Quercus] minor always 07-23-10 07:47 07-23-10 07:48
Reporter sblommers View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 4.0.9
Summary 0004137: hash_hmac always returning false
Description Reason: Mac.getInstance always fails because it resolves the sha* to SHA-* which is incorrect (HashModule.java)

  static {
    _algorithmMap.put("md2", "MD2");
    _algorithmMap.put("md5", "MD5");
    _algorithmMap.put("sha1", "SHA");
    _algorithmMap.put("sha256", "SHA-256");
    _algorithmMap.put("sha384", "SHA-384");
    _algorithmMap.put("sha512", "SHA-512");
  }
Additional Information   static {
    _algorithmMap.put("md2", "MD2");
    _algorithmMap.put("md5", "MD5");
    _algorithmMap.put("sha1", "SHA");
    _algorithmMap.put("sha256", "SHA256");
    _algorithmMap.put("sha384", "SHA384");
    _algorithmMap.put("sha512", "SHA512");
  }

fixed it
Attached Files

- Relationships

- Notes
(0004681)
sblommers
07-23-10 07:48

See http://bitbucket.org/sblommers/resin [^] for patchbranches
 

- Issue History
Date Modified Username Field Change
07-23-10 07:47 sblommers New Issue
07-23-10 07:48 sblommers Note Added: 0004681


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker