annando / salmon-protocol

Automatically exported from code.google.com/p/salmon-protocol
0 stars 0 forks source link

Example in section 7.1 should not contain padding. #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Section 7.1 (Signing Messages with RSA-SHA256) contains an example on how to 
build the string M used to compute the hash. In this example, the base64url 
encoding of "application/atom+xml" is shown to be 
"YXBwbGljYXRpb24vYXRvbSt4bWw=" but I understand from section 3.1 that padding 
should be removed and it should read "YXBwbGljYXRpb24vYXRvbSt4bWw"

The string M should therefore read:
"Tm90IHJlYWxseSBBdG9t.YXBwbGljYXRpb24vYXRvbSt4bWw.YmFzZTY0dXJs.UlNBLVNIQTI1Ng"

Original issue reported on code.google.com by laurent....@gmail.com on 15 Mar 2011 at 2:41

GoogleCodeExporter commented 9 years ago
Yep, typo, there should be no padding (no = characters) anywhere.

Original comment by jpanzer@google.com on 23 Mar 2011 at 5:21