public void IsCertificatePublicKeyValid_WhenRsaSsaPkcsV1_5_2048Bits_ReturnsTrue() { using (var certificate = SigningTestUtility.GenerateCertificate( "test", generator => { }, publicKeyLength: 2048)) { Assert.True(CertificateUtility.IsCertificatePublicKeyValid(certificate)); } }
public void IsCertificatePublicKeyValid_WhenNotRsaSsaPkcsV1_5_ReturnsTrue() { using (var certificate = SigningTestUtility.GenerateCertificate( "test", generator => { }, "SHA256WITHRSAANDMGF1", publicKeyLength: 2048)) { Assert.True(CertificateUtility.IsCertificatePublicKeyValid(certificate)); } }
public void IsCertificatePublicKeyValid_WhenNotRsaSsaPkcsV1_5_ReturnsTrue() { using (var certificate = SigningTestUtility.GenerateCertificate( "test", generator => { }, Common.HashAlgorithmName.SHA256, RSASignaturePaddingMode.Pss, publicKeyLength: 2048)) { Assert.True(CertificateUtility.IsCertificatePublicKeyValid(certificate)); } }