Ejemplo n.º 1
0
 public InheritedEncryptedKeyCipher()
     : base(CertificateFactory.GetDecryptingCertificate(), null)
 {
 }
Ejemplo n.º 2
0
 public override ICipherAsync GetPublicCertCipher(bool base64 = false)
 => new EncryptedKeyCipher(CertificateFactory.GetEncryptingCertificate(), null, _keyFileName)
 {
     Base64Encoded = base64,
 };
Ejemplo n.º 3
0
 public override IHasherAsync GetHasher() => new RsaSigner(CertificateFactory.GetSigningSha256Certificate(), Algorithms.Hash.Sha256);     // SHA1 also works with this cert
 public override IHasherTasks GetHasher() => new KeyedHasher(CertificateFactory.GetDecryptingCertificate(), _keyFileName, hashAlgorithmName: null).ReleaseCertificate();
Ejemplo n.º 5
0
 public override IHasherTasks GetHasher() => new RsaSigner(CertificateFactory.GetSigningCertificate());
#pragma warning disable CS0618 // Type or member is obsolete
        public override ICipherAsync GetPublicCertCipher(bool base64 = false) => new EncryptedNewKeyHashedCipher(CertificateFactory.GetEncryptingCertificate(), Algorithms.Symmetric.Aes, Algorithms.Hash.MD5);
 public InheritedEncryptedNewKeyHashedCipher()
     : base(CertificateFactory.GetEncryptingCertificate(), null)
 {
 }
Ejemplo n.º 8
0
 public override ICipherTasks GetPublicCertCipher(bool base64 = false)
 => new EncryptedNewKeyCipher(CertificateFactory.GetEncryptingCertificate())
 {
     Base64Encoded = base64,
 };
Ejemplo n.º 9
0
 static ICipherAsync GetCipherImpl() => new EncryptedNewKeySignedCipher(
     CertificateFactory.GetDecryptingSha256Certificate(),
     CertificateFactory.GetSigningSha256Certificate());                                             // SHA1 also works with this cert