Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix typo.

  • Loading branch information...
commit 606289ccefafcc5359c692d297189b85f1a62da6 1 parent 1821b35
Dan Bornstein authored
Showing with 10 additions and 10 deletions.
  1. +9 −9 lib/ursa.js
  2. +1 −1  package.json
View
18 lib/ursa.js
@@ -46,8 +46,8 @@ var MD5 = "md5";
var PEM_REGEX =
/^(-----BEGIN (.*) KEY-----\n[\/+=a-zA-Z0-9\n]*\n-----END \2 KEY-----\n)/m;
-/** "ununsealer" key object to authenticate objects */
-var theUnunsealer = [ "ursa ununsealer" ];
+/** "unsealer" key object to authenticate objects */
+var theUnsealer = [ "ursa unsealer" ];
/*
@@ -252,8 +252,8 @@ function PublicKey(rsa) {
return verifier.verify(self, sig, encoding);
}
- function ununseal(ununsealer) {
- return (ununsealer === theUnunsealer) ? self : undefined;
+ function unseal(unsealer) {
+ return (unsealer === theUnsealer) ? self : undefined;
}
self = {
@@ -266,7 +266,7 @@ function PublicKey(rsa) {
toPublicSsh: toPublicSsh,
toPublicSshFingerprint: toPublicSshFingerprint,
verify: verify,
- ununseal: ununseal
+ unseal: unseal
};
return self;
@@ -421,14 +421,14 @@ function isKey(obj) {
var obj2;
try {
- var ununseal = obj.ununseal;
- if (typeof ununseal !== "function") {
+ var unseal = obj.unseal;
+ if (typeof unseal !== "function") {
return false;
}
- obj2 = ununseal(theUnunsealer);
+ obj2 = unseal(theUnsealer);
} catch (ex) {
// Ignore; can't assume that other objects obey any particular
- // ununsealing protocol.
+ // unsealing protocol.
// TODO: Log?
return false;
}
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "ursa",
- "version": "0.6.7",
+ "version": "0.6.8",
"keywords": [
"crypto", "key", "openssl", "private", "public", "rsa", "sign",
"signature", "verify", "verification", "hash", "digest"
Please sign in to comment.
Something went wrong with that request. Please try again.