Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMAC SHA1 Not passing test cases #2

Closed
GoogleCodeExporter opened this issue Apr 28, 2016 · 3 comments
Closed

HMAC SHA1 Not passing test cases #2

GoogleCodeExporter opened this issue Apr 28, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

When using the HMAC SHA1 functions, the functions do not return the same
data as provided by the RFC2202 (http://www.faqs.org/rfcs/rfc2202.html).

Original issue reported on code.google.com by robin.du...@gmail.com on 15 Mar 2010 at 2:09

@GoogleCodeExporter
Copy link
Author

Hi, Robin. Thanks for taking the time to help improve this library.

I tried to reproduce the error, but the tests attached all passed. Can you post 
code 
that reproduces the error?

Since JavaScript strings are composed of Unicode, multi-byte characters, this 
library 
converts strings to UTF-8 encoded byte arrays. If you want to hash a literal 
set of 
octets, you'll need to pass them as a byte array, as in the test cases 
attached. The 
project home page doesn't document this behavior.

Original comment by Jeff.Mott.OR on 15 Mar 2010 at 5:45

Attachments:

@GoogleCodeExporter
Copy link
Author

Hi Jeff,

You aren't going to believe this, but I had the key and message the wrong way 
around.

That'll learn me for not paying attention.

Sorry!

Original comment by robin.du...@gmail.com on 15 Mar 2010 at 8:07

@GoogleCodeExporter
Copy link
Author

Original comment by Jeff.Mott.OR on 15 Mar 2010 at 9:00

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant