Skip to content

Commit 6bd65c4

Browse files
committed
docs
1 parent e94e12d commit 6bd65c4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ JWE JSON Serialization cross-tested with [JWCrypto](https://github.com/latchset/
99
Library is fully FIPS compliant since v2.1
1010

1111
## Which version?
12-
- v5.3.0 Extended public SDK to allow custom algorithms implementations. New Elliptic Curve key utils to simplify conversion between P1363 and DER ASN.1 encodings.
12+
- v5.3.0 Extended public [SDK](#settings) to allow custom algorithms implementations. New Elliptic Curve key utils to simplify conversion between P1363 and DER ASN.1 encodings.
1313
- v5.2.0 Maintenence release, added .net6 target to remove dependencies on external outdated packages
1414
- v5.1.1 Maintenence release, improved memory allocation for deflated tokens (see https://github.com/dvsekhvalnov/jose-jwt/issues/258, https://github.com/dvsekhvalnov/jose-jwt/issues/257)
1515

@@ -495,7 +495,7 @@ var publicKey=EccKey.New(x, y, usage:CngKeyUsages.KeyAgreement);
495495
string token = Jose.JWT.Encode(payload, publicKey, JweAlgorithm.ECDH_ES, JweEncryption.A256GCM);
496496

497497
// or starting v5.3.0 can also:
498-
string token = Jose.JWT.Encode(payload, publicKey, "ECDH_ES", "A256GCM");
498+
string token = Jose.JWT.Encode(payload, publicKey, "ECDH-ES", "A256GCM");
499499
```
500500

501501
``` cs
@@ -1345,7 +1345,6 @@ string json = Jose.JWT.Decode(token, secretKey, JweAlgorithm.DIR, JweEncryption.
13451345
string json = Jose.JWT.Decrypt(token, secretKey, JweAlgorithm.DIR, JweEncryption.A256GCM);
13461346

13471347
// starting v5.3.0 can also:
1348-
13491348
string json = Jose.JWT.Decode(token, secretKey, "DIR", "A256GCM");
13501349
string json = Jose.JWT.Decrypt(token, secretKey, "DIR", "A256GCM");
13511350
```

0 commit comments

Comments
 (0)