Ejemplo n.º 1
0
        public RsaSigningContext(RsaSignConfigurationSet configuration)
        {
            ContextCreationTime = DateTimeOffset.Now;
            _rsa = configuration.Rsa;

            FileDigestAlgorithmName = configuration.FileDigestAlgorithm;
            PkcsDigestAlgorithmName = configuration.PkcsDigestAlgorithm;
            Certificate             = configuration.SigningCertificate;
        }
 /// <summary>
 /// Creates a signature from the enqueued parts.
 /// </summary>
 /// <param name="configuration">The configuration of properties used to create the signature.
 /// See the documented of <see cref="RsaSignConfigurationSet"/> for more information.</param>
 public Task <OpcSignature> SignAsync(RsaSignConfigurationSet configuration)
 {
     return(SignAsyncImpl <RsaSignConfigurationSet, RsaSigningContext>(configuration));
 }