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 41c4747 commit e722946
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Binary file modified .DS_Store
Binary file not shown.
10 changes: 5 additions & 5 deletions Sources/JWT.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public enum Algorithm: CustomStringConvertible {
case hs512(Data)

/// RSA using SHA-256 hash algorithm
case rsa256(PrivateKey)
case rs256(PrivateKey)

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

public var description: String {
switch self {
Expand All @@ -34,9 +34,9 @@ public enum Algorithm: CustomStringConvertible {
return "HS384"
case .hs512:
return "HS512"
case .rsa256:
return "RSA256"
case .rsa512:
case .rs256:
return "RS256"
case .rs512:
return "RS512"
}
}
Expand Down

0 comments on commit e722946

Please sign in to comment.