We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48a80ba commit d76da73Copy full SHA for d76da73
src/RSA.jl
@@ -5,7 +5,7 @@ struct RSAKey
5
end
6
7
function RSAStep(msg::BigInt, e::BigInt, n::BigInt)
8
- return (msg ^ e) % n
+ return Base.GMP.MPZ.powm(msg, e, n)
9
10
11
function RSAStep(msg::AbstractArray{T}, e::BigInt, n::BigInt) where T
0 commit comments