public void Test_sha512_2048_PEM_Encrypted() { string pathKey = Path.Combine(path_RSA_sha512_2048, "sha512_key.pem"); string pathCert = Path.Combine(path_RSA_sha512_2048, "sha512_cert.pem"); PrivateKeyManager key = new PrivateKeyManager(); key.LoadEncrypted(pathKey, password); CertificateX509 cert = new CertificateX509(); cert.Load(pathCert); runTestWithEncoding(key, cert, "SHA512"); }
public void Test_sha256_2048_PEM_Encrypted() { string pathKey = Path.Combine(path_RSA_sha256_2048, "sha256_key.pem"); string pathCert = Path.Combine(path_RSA_sha256_2048, "sha256_cert.pem"); PrivateKeyManager key = new PrivateKeyManager(); CertificateX509 cert = new CertificateX509(); key.LoadEncrypted(pathKey, password); cert.Load(pathCert); string alg = "RS256"; bulkTest(key, cert, alg); }