コード例 #1
0
 public InheritedEncryptedNewKeySignedCipher()
     : base(CertificateFactory.GetEncryptingCertificate(), CertificateFactory.GetSigningCertificate(), null)
 {
 }
コード例 #2
0
 static ICipherAsync GetCipherImpl() => new EncryptedNewKeySignedCipher(
     CertificateFactory.GetDecryptingSha256Certificate(),
     CertificateFactory.GetSigningCertificate());                                             // SHA1 also works with this cert
コード例 #3
0
            CertificateFactory.GetSigningCertificate());                                             // SHA1 also works with this cert

        static ICipherAsync GetPublicCertCipherImpl() => new EncryptedNewKeySignedCipher(
            CertificateFactory.GetEncryptingCertificate(),
            CertificateFactory.GetSigningCertificate());                                                     // default SHA1, SHA256 doesn't work here
コード例 #4
0
 public override IHasherTasks GetHasher() => new RsaSigner(CertificateFactory.GetSigningCertificate());