Example #1
0
        public byte[] CalculateRawSignature(AsymmetricKeyParameter privateKey, byte[] md5andsha1)
        {
            ISigner sig = new GenericSigner(new Pkcs1Encoding(new RsaBlindedEngine()), new NullDigest());

            sig.Init(true, privateKey);
            sig.BlockUpdate(md5andsha1, 0, md5andsha1.Length);
            return(sig.GenerateSignature());
        }