Hi everyone,
I'm using VB.Net 2005 and I have to verify a data with a public RSA key that I have . My problem is that I don't know how can I asign this public key to a RSACryptoServiceProvider before using its verify function.
The only way that I could find to assign a key to a RSACryptoServiceProvider
is its FromXmlString(key) function which key has XmlString format like this :
"<RSAKeyValue><Modulus>5n2vHYCxjY/QlVVUPX24gmHdjI64jCTf9oXKQkq00N4Yqf1/A8uU7NX+c147M7BKxHNSjBvHBn58t/iysrS5LkFvQCiyywed7qbl9xd0nxWWIOISaxsiB2AU9sBFN9hlU6ByDtAj1ehyE+V5yGnrRvyfv7mRNKDAVm6BULSj7ek=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>"
but format of the public key that I have is Hex values like this :
Modulus = 00C03E3915F536AC4A5EA5BCD2B9E2A237E24BFD28895CE3B677D03D9D0FC84F60206B70B6CA7D0F175BBD6CEAD0B5FA55D585AD66B3711B3323119A3F163D8AD9
Exponent = 010001
I'll appreciate it if anyone could help me to verify my signature with the public key that I have.
Best Regards,
Sheler
I'm using VB.Net 2005 and I have to verify a data with a public RSA key that I have . My problem is that I don't know how can I asign this public key to a RSACryptoServiceProvider before using its verify function.
The only way that I could find to assign a key to a RSACryptoServiceProvider
is its FromXmlString(key) function which key has XmlString format like this :
"<RSAKeyValue><Modulus>5n2vHYCxjY/QlVVUPX24gmHdjI64jCTf9oXKQkq00N4Yqf1/A8uU7NX+c147M7BKxHNSjBvHBn58t/iysrS5LkFvQCiyywed7qbl9xd0nxWWIOISaxsiB2AU9sBFN9hlU6ByDtAj1ehyE+V5yGnrRvyfv7mRNKDAVm6BULSj7ek=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>"
but format of the public key that I have is Hex values like this :
Modulus = 00C03E3915F536AC4A5EA5BCD2B9E2A237E24BFD28895CE3B677D03D9D0FC84F60206B70B6CA7D0F175BBD6CEAD0B5FA55D585AD66B3711B3323119A3F163D8AD9
Exponent = 010001
I'll appreciate it if anyone could help me to verify my signature with the public key that I have.
Best Regards,
Sheler