Skip to content

Commit e722946

Browse files
committed
fixed algoirthm
1 parent 41c4747 commit e722946

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Sources/JWT.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ public enum Algorithm: CustomStringConvertible {
1919
case hs512(Data)
2020

2121
/// RSA using SHA-256 hash algorithm
22-
case rsa256(PrivateKey)
22+
case rs256(PrivateKey)
2323

2424
// RSA using SHA-512 hash algorithm
25-
case rsa512(PrivateKey)
25+
case rs512(PrivateKey)
2626

2727
public var description: String {
2828
switch self {
@@ -34,9 +34,9 @@ public enum Algorithm: CustomStringConvertible {
3434
return "HS384"
3535
case .hs512:
3636
return "HS512"
37-
case .rsa256:
38-
return "RSA256"
39-
case .rsa512:
37+
case .rs256:
38+
return "RS256"
39+
case .rs512:
4040
return "RS512"
4141
}
4242
}

0 commit comments

Comments
 (0)