RunTime Error System.Security.Cryptography.CryptographicException: 'Bad Data. ' in vb.net when trying to import RSA parameters
问题 Here's the code I am not sure if there's any hidden error but on runtime when trying to import the rsa parameters it pops up that error Function ModInverse(ByVal a As BigInteger, ByVal b As BigInteger) As BigInteger Dim b0 As BigInteger = b Dim t As BigInteger Dim q As BigInteger Dim x0 As BigInteger = 0 Dim x1 As BigInteger = 1 If b = 1 Then Return 1 While a > 1 q = BigInteger.Divide(a, b) t = b b = BigInteger.Remainder(a, b) a = t t = x0 x0 = BigInteger.Subtract(x1, BigInteger.Multiply(q,