Skip to content

Commit

Permalink
fixed algoirthm
Browse files Browse the repository at this point in the history
  • Loading branch information
popwarfour committed Jul 18, 2017
1 parent e3928a9 commit 41c4747
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions Sources/JWT.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public enum Algorithm: CustomStringConvertible {
/// RSA using SHA-256 hash algorithm
case rsa256(PrivateKey)

// RSA using SHA-512 hash algorithm
case rsa512(PrivateKey)

public var description: String {
switch self {
case .none:
Expand All @@ -33,6 +36,8 @@ public enum Algorithm: CustomStringConvertible {
return "HS512"
case .rsa256:
return "RSA256"
case .rsa512:
return "RS512"
}
}

Expand Down

0 comments on commit 41c4747

Please sign in to comment.