Skip to content

Commit 41c4747

Browse files
committed
fixed algoirthm
1 parent e3928a9 commit 41c4747

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Sources/JWT.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public enum Algorithm: CustomStringConvertible {
2121
/// RSA using SHA-256 hash algorithm
2222
case rsa256(PrivateKey)
2323

24+
// RSA using SHA-512 hash algorithm
25+
case rsa512(PrivateKey)
26+
2427
public var description: String {
2528
switch self {
2629
case .none:
@@ -33,6 +36,8 @@ public enum Algorithm: CustomStringConvertible {
3336
return "HS512"
3437
case .rsa256:
3538
return "RSA256"
39+
case .rsa512:
40+
return "RS512"
3641
}
3742
}
3843

0 commit comments

Comments
 (0)