mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 16:26:16 -04:00
ESM: Tidied up Rotate operations
This commit is contained in:
parent
af51090ebb
commit
fad4713a90
6 changed files with 18 additions and 36 deletions
|
@ -9,13 +9,6 @@
|
|||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Default values for rotation operations
|
||||
*/
|
||||
export const ROTATE_AMOUNT = 1;
|
||||
export const ROTATE_CARRY = false;
|
||||
|
||||
|
||||
/**
|
||||
* Runs rotation operations across the input data.
|
||||
*
|
||||
|
@ -64,7 +57,6 @@ export function rotl(b) {
|
|||
* Rotates a byte array to the right by a specific amount as a whole, so that bits are wrapped
|
||||
* from the end of the array to the beginning.
|
||||
*
|
||||
* @private
|
||||
* @param {byteArray} data
|
||||
* @param {number} amount
|
||||
* @returns {byteArray}
|
||||
|
@ -90,7 +82,6 @@ export function rotrCarry(data, amount) {
|
|||
* Rotates a byte array to the left by a specific amount as a whole, so that bits are wrapped
|
||||
* from the beginning of the array to the end.
|
||||
*
|
||||
* @private
|
||||
* @param {byteArray} data
|
||||
* @param {number} amount
|
||||
* @returns {byteArray}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue