Skip to content

Commit

Permalink
alg -37 is actually PS256; align PS256 & RS256 text with ES256 text
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffH authored and JeffH committed Jan 1, 2018
1 parent 1134d40 commit 66b2b7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.bs
Expand Up @@ -2512,13 +2512,13 @@ are included here for clarity and to match the [[CDDL]] presentation above:


Below is an example of a COSE_Key-encoded 2048-bit RSA public key (see [[RFC8230]] [Section 4](https://tools.ietf.org/html/rfc8230#section-4))
to be used with the RSASSA-PSS w/ SHA-256 signature algorithm
(see [[RFC8230]] [Section 2](https://tools.ietf.org/html/rfc8230#section-2)):
to be used with the PS256 signature algorithm
(RSASSA-PSS w/ SHA-256, see [[RFC8230]] [Section 2](https://tools.ietf.org/html/rfc8230#section-2)):

<pre class="example" highlight="json">
{
1: 3, ; kty: RSA key type
3:-37, ; alg: RS256
3:-37, ; alg: PS256
-1: n, ; n: RSA modulus n byte string 257 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
Expand All @@ -2528,7 +2528,7 @@ to be used with the RSASSA-PSS w/ SHA-256 signature algorithm

Below is an example of a COSE_Key-encoded 2048-bit RSA public key (see [[RFC8230]]
[Section 4](https://tools.ietf.org/html/rfc8230#section-4))
to be used with the RSASSA-PKCS1-v1_5 w/ SHA-256 signature algorithm (see [[#sctn-cose-alg-reg]]):
to be used with the RS256 signature algorithm (RSASSA-PKCS1-v1_5 w/ SHA-256, see [[#sctn-cose-alg-reg]]):

<pre class="example" highlight="json">
{
Expand Down

0 comments on commit 66b2b7f

Please sign in to comment.