Re: [dev-crypto-csharp] PublicKeyFactor.CreateKey argument exception

2013-12-06 Thread Bogdan Suvar
st and then use those to create a parameters object. Regards, David On 06/12/13 03:35, Bogdan Suvar wrote: Another exception is EndOfStreamException: {"DEF length 88 object truncated by 2"} with the following stack trace: at Org.BouncyCastle.Asn1.DefiniteLengthInputStream.ToArray()

Re: [dev-crypto-csharp] PublicKeyFactor.CreateKey argument exception

2013-12-05 Thread Bogdan Suvar
xtCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() On 2013-12-05 16:20, Bogdan Suvar wrote: Hi, I'm currently t

[dev-crypto-csharp] PublicKeyFactor.CreateKey argument exception

2013-12-05 Thread Bogdan Suvar
Hi, I'm currently trying to create an AsymmetricKeyParameter public key parameter from an xml string like this: public static AsymmetricKeyParameter xmlStringToPubKey(string xmlString) { //AsymmetricCipherKeyPair keyPair; if (String.IsNullOrEmpty(xmlStr