We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3928a9 commit 41c4747Copy full SHA for 41c4747
.DS_Store
0 Bytes
Sources/JWT.swift
@@ -21,6 +21,9 @@ public enum Algorithm: CustomStringConvertible {
21
/// RSA using SHA-256 hash algorithm
22
case rsa256(PrivateKey)
23
24
+ // RSA using SHA-512 hash algorithm
25
+ case rsa512(PrivateKey)
26
+
27
public var description: String {
28
switch self {
29
case .none:
@@ -33,6 +36,8 @@ public enum Algorithm: CustomStringConvertible {
33
36
return "HS512"
34
37
case .rsa256:
35
38
return "RSA256"
39
+ case .rsa512:
40
+ return "RS512"
41
}
42
43
0 commit comments