ic3b3rg
ic3b3rg

Reputation: 14927

BigInteger ModInverse

Is this VB calculation

Dim s As BigInteger = (BigInteger.ModPow(k,q - 2,q) * (m + x * r)) Mod q

a proper implementation of this written calculation

enter image description here

I'm basing my calculation of the fact that

enter image description here

can be computed by

enter image description here

as per this Wikipedia article on Digital Signature Algorithm

Upvotes: 1

Views: 827

Answers (1)

ic3b3rg
ic3b3rg

Reputation: 14927

I can confirm that this equation is correct.

Upvotes: 1

Related Questions