Skip to content

Commit

Permalink
Add RSA-OAEP to JWK algorithms to support decoding. (#226)
Browse files Browse the repository at this point in the history
add rsa-oaep
  • Loading branch information
madsodgaard authored Jan 30, 2025
1 parent 7bd6ecb commit 03f5013
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/JWTKit/JWK/JWK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ public struct JWK: Codable, Sendable {
public static let es512 = Self(backing: .es512)
/// EdDSA
public static let eddsa = Self(backing: .eddsa)
/// RSA with OAEP
public static let rsaOAEP = Self(backing: .rsaOAEP)

enum Backing: String, Codable {
case rs256 = "RS256"
Expand All @@ -155,6 +157,7 @@ public struct JWK: Codable, Sendable {
case es384 = "ES384"
case es512 = "ES512"
case eddsa = "EdDSA"
case rsaOAEP = "RSA-OAEP"
}

init(backing: Backing) {
Expand Down

0 comments on commit 03f5013

Please sign in to comment.