Skip to content

Commit 1574803

Browse files
ferivozdavidlehn
authored andcommitted
Fix typos
Typos found with codespell.
1 parent 7208bf4 commit 1574803

File tree

17 files changed

+27
-27
lines changed

17 files changed

+27
-27
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ Contact
20242024
Donations
20252025
---------
20262026

2027-
Financial support is welcome and helps contribute to futher development:
2027+
Financial support is welcome and helps contribute to further development:
20282028

20292029
* For [PayPal][] please send to paypal@digitalbazaar.com.
20302030
* Something else? Please contact support@digitalbazaar.com.

‎flash/SocketPool.as‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ package
4242
private var mEventDispatcher:EventDispatcher;
4343

4444
/**
45-
* Creates a new, unitialized SocketPool.
45+
* Creates a new, uninitialized SocketPool.
4646
*
4747
* @throws Error - if no external interface is available to provide
4848
* javascript access.

‎lib/aes.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ var imix; // inverse mix-columns table
325325
* The word [a0, a1, a2, a3] is a polynomial a3x^3 + a2x^2 + a1x + a0.
326326
*
327327
* Addition is performed by XOR'ing like powers of x. Multiplication
328-
* is performed in two steps, the first is an algebriac expansion as
328+
* is performed in two steps, the first is an algebraic expansion as
329329
* you would do normally (where addition is XOR). But the result is
330330
* a polynomial larger than 3 degrees and thus it cannot fit in a word. So
331331
* next the result is modularly reduced by an AES-specific polynomial of

‎lib/pbe.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ pki.pbe.generatePkcs12Key = function(password, salt, id, iter, n, md) {
672672
D.fillWithByte(id, v);
673673

674674
/* 2. Concatenate copies of the salt together to create a string S of length
675-
v * ceil(s / v) bytes (the final copy of the salt may be trunacted
675+
v * ceil(s / v) bytes (the final copy of the salt may be truncated
676676
to create S).
677677
Note that if the salt is the empty string, then so is S. */
678678
var Slen = v * Math.ceil(s / v);

‎lib/prime.worker.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function findPrime(data) {
5656
}
5757

5858
function isProbablePrime(n) {
59-
// divide by low primes, ignore even checks, etc (n alread aligned properly)
59+
// divide by low primes, ignore even checks, etc (n already aligned properly)
6060
var i = 1;
6161
while(i < LOW_PRIMES.length) {
6262
var m = LOW_PRIMES[i];

‎lib/rsa.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ var digestInfoValidator = {
282282
constructed: false,
283283
capture: 'algorithmIdentifier'
284284
}, {
285-
// NULL paramters
285+
// NULL parameters
286286
name: 'DigestInfo.DigestAlgorithm.parameters',
287287
tagClass: asn1.Class.UNIVERSAL,
288288
type: asn1.Type.NULL,
@@ -316,7 +316,7 @@ var digestInfoValidator = {
316316
*
317317
* @param md the message digest object with the hash to sign.
318318
*
319-
* @return the encoded message (ready for RSA encrytion)
319+
* @return the encoded message (ready for RSA encryption)
320320
*/
321321
var emsaPkcs1v15encode = function(md) {
322322
// get the oid for the algorithm
@@ -498,7 +498,7 @@ var _modPow = function(x, key, pub) {
498498
*
499499
* The parameter bt controls whether to put padding bytes before the
500500
* message passed in. Set bt to either true or false to disable padding
501-
* completely (in order to handle e.g. EMSA-PSS encoding seperately before),
501+
* completely (in order to handle e.g. EMSA-PSS encoding separately before),
502502
* signaling whether the encryption operation is a public key operation
503503
* (i.e. encrypting data) or not, i.e. private key operation (data signing).
504504
*
@@ -1173,7 +1173,7 @@ pki.setRsaPublicKey = pki.rsa.setPublicKey = function(n, e) {
11731173
}
11741174
// check hash algorithm identifier
11751175
// see PKCS1-v1-5DigestAlgorithms in RFC 8017
1176-
// FIXME: add support to vaidator for strict value choices
1176+
// FIXME: add support to validator for strict value choices
11771177
var oid = asn1.derToOid(capture.algorithmIdentifier);
11781178
if(!(oid === forge.oids.md2 ||
11791179
oid === forge.oids.md5 ||
@@ -1196,7 +1196,7 @@ pki.setRsaPublicKey = pki.rsa.setPublicKey = function(n, e) {
11961196
throw new Error(
11971197
'ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 ' +
11981198
'DigestInfo value. ' +
1199-
'Missing algorithm identifer NULL parameters.');
1199+
'Missing algorithm identifier NULL parameters.');
12001200
}
12011201
}
12021202

@@ -1637,7 +1637,7 @@ function _decodePkcs1_v1_5(em, key, pub, ml) {
16371637
16381638
1. The encryption block EB cannot be parsed unambiguously.
16391639
2. The padding string PS consists of fewer than eight octets
1640-
or is inconsisent with the block type BT.
1640+
or is inconsistent with the block type BT.
16411641
3. The decryption process is a public-key operation and the block
16421642
type BT is not 00 or 01, or the decryption process is a
16431643
private-key operation and the block type is not 02.

‎lib/tls.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ tls.handleUnexpected = function(c, record) {
758758
*/
759759
tls.handleHelloRequest = function(c, record, length) {
760760
// ignore renegotiation requests from the server during a handshake, but
761-
// if handshaking, send a warning alert that renegotation is denied
761+
// if handshaking, send a warning alert that renegotiation is denied
762762
if(!c.handshaking && c.handshakes > 0) {
763763
// send alert warning
764764
tls.queue(c, tls.createAlert(c, {
@@ -2258,7 +2258,7 @@ hsTable[tls.ConnectionEnd.client] = [
22582258
];
22592259

22602260
// map server current expect state and handshake type to function
2261-
// Note: CAD[CH] does not map to FB because renegotation is prohibited
2261+
// Note: CAD[CH] does not map to FB because renegotiation is prohibited
22622262
var H7 = tls.handleClientHello;
22632263
var H8 = tls.handleClientKeyExchange;
22642264
var H9 = tls.handleCertificateVerify;

‎lib/util.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ util.ByteStringBuffer.prototype.clear = function() {
677677
};
678678

679679
/**
680-
* Shortens this buffer by triming bytes off of the end of this buffer.
680+
* Shortens this buffer by trimming bytes off of the end of this buffer.
681681
*
682682
* @param count the number of bytes to trim off.
683683
*
@@ -1343,7 +1343,7 @@ util.DataBuffer.prototype.clear = function() {
13431343
};
13441344

13451345
/**
1346-
* Shortens this buffer by triming bytes off of the end of this buffer.
1346+
* Shortens this buffer by trimming bytes off of the end of this buffer.
13471347
*
13481348
* @param count the number of bytes to trim off.
13491349
*
@@ -2316,7 +2316,7 @@ util.format = function(format) {
23162316
parts.push('<?>');
23172317
}
23182318
break;
2319-
// FIXME: do proper formating for numbers, etc
2319+
// FIXME: do proper formatting for numbers, etc
23202320
//case 'f':
23212321
//case 'd':
23222322
case '%':

‎lib/x509.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2289,7 +2289,7 @@ function _fillMissingExtensionFields(e, options) {
22892289
* Convert signature parameters object to ASN.1
22902290
*
22912291
* @param {String} oid Signature algorithm OID
2292-
* @param params The signature parametrs object
2292+
* @param params The signature parameters object
22932293
* @return ASN.1 object representing signature parameters
22942294
*/
22952295
function _signatureParametersToAsn1(oid, params) {

‎lib/xhr.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ xhrApi.create = function(options) {
459459
// set request method to given method
460460
// set request URL
461461
// set username, password
462-
// set asychronous flag
462+
// set asynchronous flag
463463
_state.sendFlag = false;
464464
xhr.responseText = '';
465465
xhr.responseXML = null;

0 commit comments

Comments
 (0)