DecodeOpenSSLPrivateKey() private method

private DecodeOpenSSLPrivateKey ( [ instr ) : byte[]
instr [
return byte[]
Exemplo n.º 1
0
        private PrivateKeySigner([NotNull] string privateKey)
        {
            if (privateKey == null)
            {
                throw new ArgumentNullException("privateKey");
            }

            _key = OpenSslKey.DecodeOpenSSLPrivateKey(privateKey);
        }
Exemplo n.º 2
0
        PrivateKeySigner(string privateKey, SigningAlgorithm signingAlgorithm)
        {
            if (privateKey == null)
            {
                throw new ArgumentNullException("privateKey");
            }

            _key = OpenSslKey.DecodeOpenSSLPrivateKey(privateKey);

            _algorithmInfo = new AlgorithmInfo(signingAlgorithm);
        }