Skip to content

Commit

Permalink
handle rsaEncryption algorithm case
Browse files Browse the repository at this point in the history
  • Loading branch information
freigeistig committed Apr 10, 2024
1 parent c28de5f commit d8e412f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/service/api/handlers/create_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ func validateSignedAttributes(signedAttributes, encapsulatedContent []byte, algo
}

func signatureAlgorithm(passedAlgorithm string) string {
if passedAlgorithm == "rsaEncryption" {
return SHA256withRSA
}

if strings.Contains(strings.ToUpper(passedAlgorithm), "PSS") {
return "" // RSA-PSS is not currently supported
}
Expand Down

0 comments on commit d8e412f

Please sign in to comment.