@@ -389,13 +389,13 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
389
389
var sigBytes = wordArray . sigBytes ;
390
390
391
391
// Convert
392
- var hexChars = '' ;
392
+ var hexStr = '' ;
393
393
for ( var i = 0 ; i < sigBytes ; i ++ ) {
394
394
var bite = ( words [ i >>> 2 ] >>> ( 24 - ( i % 4 ) * 8 ) ) & 0xff ;
395
- hexChars += ( bite >>> 4 ) . toString ( 16 ) + ( bite & 0xf ) . toString ( 16 ) ;
395
+ hexStr += ( bite >>> 4 ) . toString ( 16 ) + ( bite & 0xf ) . toString ( 16 ) ;
396
396
}
397
397
398
- return hexChars ;
398
+ return hexStr ;
399
399
} ,
400
400
401
401
/**
@@ -407,7 +407,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
407
407
*
408
408
* @static
409
409
*
410
- * @throws HexOctetError
410
+ * @throws OctetError
411
411
*
412
412
* @example
413
413
*
@@ -420,7 +420,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
420
420
// <?php if ($debug): ?>
421
421
{
422
422
if ( hexStrLength % 2 !== 0 ) {
423
- throw new HexOctetError ( 'The hex string must represent a whole number of bytes.' ) ;
423
+ throw new OctetError ( 'The hex string must represent a whole number of bytes.' ) ;
424
424
}
425
425
}
426
426
// <?php endif ?>
@@ -467,13 +467,13 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
467
467
var sigBytes = wordArray . sigBytes ;
468
468
469
469
// Convert
470
- var latin1Chars = '' ;
470
+ var latin1Str = '' ;
471
471
for ( var i = 0 ; i < sigBytes ; i ++ ) {
472
472
var bite = ( words [ i >>> 2 ] >>> ( 24 - ( i % 4 ) * 8 ) ) & 0xff ;
473
- latin1Chars += String . fromCharCode ( bite ) ;
473
+ latin1Str += String . fromCharCode ( bite ) ;
474
474
}
475
475
476
- return latin1Chars ;
476
+ return latin1Str ;
477
477
} ,
478
478
479
479
/**
@@ -655,7 +655,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
655
655
var nBytesReady = Math . min ( nWordsReady * 4 , dataSigBytes ) ;
656
656
657
657
// Process blocks
658
- if ( nBlocksReady ) {
658
+ if ( nWordsReady ) {
659
659
for ( var offset = 0 ; offset < nWordsReady ; offset += blockSize ) {
660
660
// Perform concrete-algorithm logic
661
661
this . _doProcessBlock ( dataWords . slice ( offset , offset + blockSize ) ) ;
@@ -728,6 +728,8 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
728
728
729
729
/**
730
730
* Constructor.
731
+ *
732
+ * @param {Object } cfg (Optional) The configuration options to use for this hash computation.
731
733
*/
732
734
constructor : function ( cfg ) {
733
735
// Apply config defaults
@@ -846,6 +848,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
846
848
* Shortcut to a hasher's object interface.
847
849
*
848
850
* @param {WordArray|string } message The message to hash.
851
+ * @param {Object } cfg (Optional) The configuration options to use for this hash computation.
849
852
*
850
853
* @return {WordArray } The hash.
851
854
*
@@ -870,9 +873,9 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
870
873
var C_ERR = C . err = { } ;
871
874
872
875
/**
873
- * Hex octet error.
876
+ * Octet error.
874
877
*/
875
- var HexOctetError = C_ERR . HexOctetError = O . extend . call ( Error ) ;
878
+ var OctetError = C_ERR . OctetError = O . extend . call ( Error ) ;
876
879
877
880
/**
878
881
* Malformed UTF-8 error.
0 commit comments