Skip to content

Commit

Permalink
removed unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
brainfoolong committed Nov 23, 2023
1 parent 817e926 commit 1096ba2
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/Ascon.php
Original file line number Diff line number Diff line change
Expand Up @@ -770,29 +770,6 @@ public static function bitRotateRight(array $intArr, int $places): array
];
}

/**
* Set a specific bit in given integer
* @param int $int The integer to manipulate
* @param int $nr The bit nr to set
* @param int $value The value to set, 0 or 1
* @return int The new integer
*/
public static function bitSet(int $int, int $nr, int $value): int
{
return ($int & ~(1 << $nr)) | ($value << $nr);
}

/**
* Get a specific bit value, 0 or 1
* @param int $int The integer to check
* @param int $nr The bit nr to set
* @return int The value of the bit, 0 or 1
*/
public static function bitGet(int $int, int $nr): int
{
return ($int >> $nr) & 1;
}

/**
* Split 2 32bit integers into 8 bytes
* @param int[] $intArray
Expand Down

0 comments on commit 1096ba2

Please sign in to comment.