Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions luajwtjitsi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local function signRS (data, key, algo)
if privkey == nil then
return nil, 'Not a private PEM key'
else
return privkey:sign(digest.new(key, algo):update(data))
return privkey:sign(digest.new(algo):update(data))
end
end

Expand All @@ -18,7 +18,7 @@ local function verifyRS (data, signature, key, algo)
if pubkey == nil then
return nil, 'Not a public PEM key'
else
return pubkey:verify(signature, digest.new(key, algo):update(data))
return pubkey:verify(signature, digest.new(algo):update(data))
end
end

Expand Down