a");
  var hSig = rsa.sign("aaa", 'sha1');
  equal(hSig, hSigAAA,
         "String 'aaa' is signed properly with SHA1withRSA algorithm." );
});

test("RSAKey.sign(aaa,sha1) via readPEM", function() {
  expect(2);

  var rsa = new RSAKey();
  rsa.readPrivateKeyFromPEMString(sKey1PEM);
  equal(rsa.n.bitLength(), 1024, "check key size");

  //var hSig = rsa.signStringWithSHA1("aaa");
  var hSig = rsa.sign("aaa", 'sha1');
  equal(hSig, hSigAAA,
         "String 'aaa' is signed properly with SHA1withRSA algorith