Skip to content

Commit

Permalink
Tweak comment type so that it is removed from declaration file
Browse files Browse the repository at this point in the history
  • Loading branch information
Caligatio committed Apr 15, 2020
1 parent 485ab1b commit 04602a8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
8 changes: 0 additions & 8 deletions dist/sha3.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,6 @@ declare abstract class jsSHABase<StateT, VariantT> {
protected _getHMAC(): number[];
}

/**
* Note 1: All the functions in this file guarantee only that the bottom 32-bits of the returned Int_64 are correct.
* JavaScript is flakey when it comes to bit operations and a '1' in the highest order bit of a 32-bit number causes
* it to be interpreted as a negative number per two's complement.
*
* Note 2: Per the ECMAScript spec, all JavaScript operations mask the shift amount by 0x1F. This results in weird
* cases like 1 << 32 == 1 and 1 << 33 === 1 << 1 === 2
*/
/**
* Int_64 is a object for 2 32-bit numbers emulating a 64-bit number.
*/
Expand Down
8 changes: 0 additions & 8 deletions dist/sha512.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,6 @@ declare abstract class jsSHABase<StateT, VariantT> {
protected _getHMAC(): number[];
}

/**
* Note 1: All the functions in this file guarantee only that the bottom 32-bits of the returned Int_64 are correct.
* JavaScript is flakey when it comes to bit operations and a '1' in the highest order bit of a 32-bit number causes
* it to be interpreted as a negative number per two's complement.
*
* Note 2: Per the ECMAScript spec, all JavaScript operations mask the shift amount by 0x1F. This results in weird
* cases like 1 << 32 == 1 and 1 << 33 === 1 << 1 === 2
*/
/**
* Int_64 is a object for 2 32-bit numbers emulating a 64-bit number.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/primitives_32.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Note 1: All the functions in this file guarantee only that the bottom 32-bits of the return value are correct.
* JavaScript is flakey when it comes to bit operations and a '1' in the highest order bit of a 32-bit number causes
* it to be interpreted as a negative number per two's complement.
Expand Down
2 changes: 1 addition & 1 deletion src/primitives_64.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Note 1: All the functions in this file guarantee only that the bottom 32-bits of the returned Int_64 are correct.
* JavaScript is flakey when it comes to bit operations and a '1' in the highest order bit of a 32-bit number causes
* it to be interpreted as a negative number per two's complement.
Expand Down

0 comments on commit 04602a8

Please sign in to comment.