From 930a3fb4d27edc8562d31e3496cf0ca3b9667514 Mon Sep 17 00:00:00 2001 From: Veres Lajos Date: Wed, 5 Mar 2014 23:41:20 +0000 Subject: [PATCH] typofixes - https://github.com/vlajos/misspell_fixer --- phpseclib/Crypt/AES.php | 2 +- phpseclib/Crypt/Base.php | 10 +++++----- phpseclib/Crypt/Blowfish.php | 2 +- phpseclib/Crypt/DES.php | 2 +- phpseclib/Crypt/RC2.php | 2 +- phpseclib/Crypt/RC4.php | 2 +- phpseclib/Crypt/RSA.php | 8 ++++---- phpseclib/Crypt/Rijndael.php | 6 +++--- phpseclib/Crypt/TripleDES.php | 4 ++-- phpseclib/Crypt/Twofish.php | 2 +- phpseclib/File/X509.php | 2 +- phpseclib/Math/BigInteger.php | 2 +- 12 files changed, 22 insertions(+), 22 deletions(-) diff --git a/phpseclib/Crypt/AES.php b/phpseclib/Crypt/AES.php index cf8c050a..8f098734 100644 --- a/phpseclib/Crypt/AES.php +++ b/phpseclib/Crypt/AES.php @@ -157,7 +157,7 @@ class Crypt_AES extends Crypt_Rijndael * * - CRYPT_AES_MODE_OFB * - * If not explictly set, CRYPT_AES_MODE_CBC will be used. + * If not explicitly set, CRYPT_AES_MODE_CBC will be used. * * @see Crypt_Rijndael::Crypt_Rijndael() * @see Crypt_Base::Crypt_Base() diff --git a/phpseclib/Crypt/Base.php b/phpseclib/Crypt/Base.php index f08529b9..4ab417ab 100644 --- a/phpseclib/Crypt/Base.php +++ b/phpseclib/Crypt/Base.php @@ -279,7 +279,7 @@ class Crypt_Base * $buffer bytes > $cfb_init_len than * using the $ecb resource furthermore. * - * This value depends of the choosen cipher + * This value depends of the chosen cipher * and the time it would be needed for it's * initialization [by mcrypt_generic_init()] * which, typically, depends on the complexity @@ -438,9 +438,9 @@ class Crypt_Base * * - CRYPT_MODE_OFB * - * (or the alias constants of the choosen cipher, for example for AES: CRYPT_AES_MODE_ECB or CRYPT_AES_MODE_CBC ...) + * (or the alias constants of the chosen cipher, for example for AES: CRYPT_AES_MODE_ECB or CRYPT_AES_MODE_CBC ...) * - * If not explictly set, CRYPT_MODE_CBC will be used. + * If not explicitly set, CRYPT_MODE_CBC will be used. * * @param optional Integer $mode * @access public @@ -500,7 +500,7 @@ class Crypt_Base /** * Sets the initialization vector. (optional) * - * SetIV is not required when CRYPT_MODE_ECB (or ie for AES: CRYPT_AES_MODE_ECB) is being used. If not explictly set, it'll be assumed + * SetIV is not required when CRYPT_MODE_ECB (or ie for AES: CRYPT_AES_MODE_ECB) is being used. If not explicitly set, it'll be assumed * to be all zero's. * * Note: Could, but not must, extend by the child Crypt_* class @@ -1446,7 +1446,7 @@ class Crypt_Base * - each time on _setup(), after(!) _setupKey() * * - * This ensures that _setupInlineCrypt() has allways a + * This ensures that _setupInlineCrypt() has always a * full ready2go initializated internal cipher $engine state * where, for example, the keys allready expanded, * keys/block_size calculated and such. diff --git a/phpseclib/Crypt/Blowfish.php b/phpseclib/Crypt/Blowfish.php index b352e7c4..b4636711 100644 --- a/phpseclib/Crypt/Blowfish.php +++ b/phpseclib/Crypt/Blowfish.php @@ -386,7 +386,7 @@ class Crypt_Blowfish extends Crypt_Base * * - CRYPT_BLOWFISH_MODE_OFB * - * If not explictly set, CRYPT_BLOWFISH_MODE_CBC will be used. + * If not explicitly set, CRYPT_BLOWFISH_MODE_CBC will be used. * * @see Crypt_Base::Crypt_Base() * @param optional Integer $mode diff --git a/phpseclib/Crypt/DES.php b/phpseclib/Crypt/DES.php index fcbf0199..6b330b71 100644 --- a/phpseclib/Crypt/DES.php +++ b/phpseclib/Crypt/DES.php @@ -679,7 +679,7 @@ class Crypt_DES extends Crypt_Base * * - CRYPT_DES_MODE_OFB * - * If not explictly set, CRYPT_DES_MODE_CBC will be used. + * If not explicitly set, CRYPT_DES_MODE_CBC will be used. * * @see Crypt_Base::Crypt_Base() * @param optional Integer $mode diff --git a/phpseclib/Crypt/RC2.php b/phpseclib/Crypt/RC2.php index de22d631..126ace88 100644 --- a/phpseclib/Crypt/RC2.php +++ b/phpseclib/Crypt/RC2.php @@ -333,7 +333,7 @@ class Crypt_RC2 extends Crypt_Base * * - CRYPT_RC2_MODE_OFB * - * If not explictly set, CRYPT_RC2_MODE_CBC will be used. + * If not explicitly set, CRYPT_RC2_MODE_CBC will be used. * * @see Crypt_Base::Crypt_Base() * @param optional Integer $mode diff --git a/phpseclib/Crypt/RC4.php b/phpseclib/Crypt/RC4.php index d062be25..a65a71a1 100644 --- a/phpseclib/Crypt/RC4.php +++ b/phpseclib/Crypt/RC4.php @@ -241,7 +241,7 @@ class Crypt_RC4 extends Crypt_Base * Decrypts a message. * * $this->decrypt($this->encrypt($plaintext)) == $this->encrypt($this->encrypt($plaintext)). - * Atleast if the continuous buffer is disabled. + * At least if the continuous buffer is disabled. * * @see Crypt_Base::encrypt() * @see Crypt_RC4::_crypt() diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index feb887c7..998dffb3 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -104,7 +104,7 @@ define('CRYPT_RSA_ENCRYPTION_OAEP', 1); * Use PKCS#1 padding. * * Although CRYPT_RSA_ENCRYPTION_OAEP offers more security, including PKCS#1 padding is necessary for purposes of backwards - * compatability with protocols (like SSH-1) written before OAEP's introduction. + * compatibility with protocols (like SSH-1) written before OAEP's introduction. */ define('CRYPT_RSA_ENCRYPTION_PKCS1', 2); /**#@-*/ @@ -128,7 +128,7 @@ define('CRYPT_RSA_SIGNATURE_PSS', 1); * Use the PKCS#1 scheme by default. * * Although CRYPT_RSA_SIGNATURE_PSS offers more security, including PKCS#1 signing is necessary for purposes of backwards - * compatability with protocols (like SSH-2) written before PSS's introduction. + * compatibility with protocols (like SSH-2) written before PSS's introduction. */ define('CRYPT_RSA_SIGNATURE_PKCS1', 2); /**#@-*/ @@ -2275,11 +2275,11 @@ class Crypt_RSA * * See {@link http://tools.ietf.org/html/rfc3447#section-7.2.2 RFC3447#section-7.2.2}. * - * For compatability purposes, this function departs slightly from the description given in RFC3447. + * For compatibility purposes, this function departs slightly from the description given in RFC3447. * The reason being that RFC2313#section-8.1 (PKCS#1 v1.5) states that ciphertext's encrypted by the * private key should have the second byte set to either 0 or 1 and that ciphertext's encrypted by the * public key should have the second byte set to 2. In RFC3447 (PKCS#1 v2.1), the second byte is supposed - * to be 2 regardless of which key is used. For compatability purposes, we'll just check to make sure the + * to be 2 regardless of which key is used. For compatibility purposes, we'll just check to make sure the * second byte is 2 or less. If it is, we'll accept the decrypted string as valid. * * As a consequence of this, a private key encrypted ciphertext produced with Crypt_RSA may not decrypt diff --git a/phpseclib/Crypt/Rijndael.php b/phpseclib/Crypt/Rijndael.php index 42531516..70cac5da 100644 --- a/phpseclib/Crypt/Rijndael.php +++ b/phpseclib/Crypt/Rijndael.php @@ -167,7 +167,7 @@ class Crypt_Rijndael extends Crypt_Base * Mcrypt is useable for 128/192/256-bit $block_size/$key_size. For 160/224 not. * Crypt_Rijndael determines automatically whether mcrypt is useable * or not for the current $block_size/$key_size. - * In case of, $cipher_name_mcrypt will be set dynamicaly at run time accordingly. + * In case of, $cipher_name_mcrypt will be set dynamically at run time accordingly. * * @see Crypt_Base::cipher_name_mcrypt * @see Crypt_Base::engine @@ -693,7 +693,7 @@ class Crypt_Rijndael extends Crypt_Base * * - CRYPT_RIJNDAEL_MODE_OFB * - * If not explictly set, CRYPT_RIJNDAEL_MODE_CBC will be used. + * If not explicitly set, CRYPT_RIJNDAEL_MODE_CBC will be used. * * @see Crypt_Base::Crypt_Base() * @param optional Integer $mode @@ -755,7 +755,7 @@ class Crypt_Rijndael extends Crypt_Base * you should not setKeyLength(160) or setKeyLength(224). * * Additional: In case of 160- and 224-bit keys, phpseclib will/can, for that reason, not use - * the mcrypt php extention, even if available. + * the mcrypt php extension, even if available. * This results then in slower encryption. * * @access public diff --git a/phpseclib/Crypt/TripleDES.php b/phpseclib/Crypt/TripleDES.php index 21318209..241b5170 100644 --- a/phpseclib/Crypt/TripleDES.php +++ b/phpseclib/Crypt/TripleDES.php @@ -180,7 +180,7 @@ class Crypt_TripleDES extends Crypt_DES * * - CRYPT_DES_MODE_3CBC * - * If not explictly set, CRYPT_DES_MODE_CBC will be used. + * If not explicitly set, CRYPT_DES_MODE_CBC will be used. * * @see Crypt_DES::Crypt_DES() * @see Crypt_Base::Crypt_Base() @@ -217,7 +217,7 @@ class Crypt_TripleDES extends Crypt_DES /** * Sets the initialization vector. (optional) * - * SetIV is not required when CRYPT_DES_MODE_ECB is being used. If not explictly set, it'll be assumed + * SetIV is not required when CRYPT_DES_MODE_ECB is being used. If not explicitly set, it'll be assumed * to be all zero's. * * @see Crypt_Base::setIV() diff --git a/phpseclib/Crypt/Twofish.php b/phpseclib/Crypt/Twofish.php index 9be5fd10..0dd44807 100644 --- a/phpseclib/Crypt/Twofish.php +++ b/phpseclib/Crypt/Twofish.php @@ -465,7 +465,7 @@ class Crypt_Twofish extends Crypt_Base * * - CRYPT_TWOFISH_MODE_OFB * - * If not explictly set, CRYPT_TWOFISH_MODE_CBC will be used. + * If not explicitly set, CRYPT_TWOFISH_MODE_CBC will be used. * * @see Crypt_Base::Crypt_Base() * @param optional Integer $mode diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index 9e7b0b3b..a90c7c86 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -2531,7 +2531,7 @@ class File_X509 return strtolower(bin2hex(pack('N', $hash))); } - // Defaut is to return a string. + // Default is to return a string. $start = true; $output = ''; $asn1 = new File_ASN1(); diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 125cac79..52fe15a5 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -3283,7 +3283,7 @@ class Math_BigInteger * Checks a numer to see if it's prime * * Assuming the $t parameter is not set, this function has an error rate of 2**-80. The main motivation for the - * $t parameter is distributability. Math_BigInteger::randomPrime() can be distributed accross multiple pageloads + * $t parameter is distributability. Math_BigInteger::randomPrime() can be distributed across multiple pageloads * on a website instead of just one. * * @param optional Integer $t