Skip to content

Commit d76da73

Browse files
author
jan.wagner
committed
fix: change naive powm for Base.GMP.MPZ.powm
1 parent 48a80ba commit d76da73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RSA.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ struct RSAKey
55
end
66

77
function RSAStep(msg::BigInt, e::BigInt, n::BigInt)
8-
return (msg ^ e) % n
8+
return Base.GMP.MPZ.powm(msg, e, n)
99
end
1010

1111
function RSAStep(msg::AbstractArray{T}, e::BigInt, n::BigInt) where T

0 commit comments

Comments
 (0)