Skip to content

Commit

Permalink
Signature verify CLI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bigvo committed Dec 29, 2022
1 parent 0258848 commit b4d0690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftPQCLI/Main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ struct SwiftPQCLI: ParsableCommand {
print("MESSAGE: \(message)\n")
print("PUBLIC KEY: \(decodedPublicKey.base64EncodedString())\n")

if pqCryptoSIGN!.verify(signature: signature.toUInt8Array(), message: message.toUInt8Array(), publicKey: decodedPublicKey) {
if pqCryptoSIGN!.verify(signature: Data(base64Encoded: signature)!.bytes, message: message.toUInt8Array(), publicKey: decodedPublicKey) {
print("Signature is valid.")
return
}
Expand Down

0 comments on commit b4d0690

Please sign in to comment.