Ejemplo n.º 1
0
        public SignatureManager(DSASigner dsa_signer)
        {
            if (dsa_signer == null)
            {
                throw new ArgumentException("SignatureManager: DSA signer object cannot be null");
            }

            _dsa_signer = dsa_signer;


            _dsa_public_key_bytes_encoded = new byte[_dsa_signer.GetPublicKeyEncodedMpi().Length];
            Buffer.BlockCopy(_dsa_signer.GetPublicKeyEncodedMpi(), 0, _dsa_public_key_bytes_encoded, 0, _dsa_public_key_bytes_encoded.Length);
        }