Skip to content

Commit

Permalink
fix modulus length, as encoded in COSE_Key, to be 256 bytes rather th…
Browse files Browse the repository at this point in the history
…an 257
  • Loading branch information
JeffH authored and JeffH committed Jan 10, 2018
1 parent bcc6bd9 commit 30de9f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Expand Up @@ -2563,7 +2563,7 @@ to be used with the PS256 signature algorithm
{
1: 3, ; kty: RSA key type
3:-37, ; alg: PS256
-1: n, ; n: RSA modulus n byte string 257 bytes in length
-1: n, ; n: RSA modulus n byte string 256 bytes in length
e.g., in hex (middle bytes elided for brevity): DB5F651550...6DC6548ACC3
-2: e ; e: RSA public exponent e byte string 3 bytes in length
e.g., in hex: 010001
Expand All @@ -2578,7 +2578,7 @@ to be used with the RS256 signature algorithm (RSASSA-PKCS1-v1_5 w/ SHA-256, see
{
1: 3, ; kty: RSA key type
3:-257, ; alg: RS256
-1: n, ; n: RSA modulus n byte string 257 bytes in length
-1: n, ; n: RSA modulus n byte string 256 bytes in length
e.g., in hex (middle bytes elided for brevity): DB5F651550...6DC6548ACC3
-2: e ; e: RSA public exponent e byte string 3 bytes in length
e.g., in hex: 010001
Expand Down

0 comments on commit 30de9f8

Please sign in to comment.