Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit ebe1481

Browse files
committed
chore: add euint256 to supported types for rotr/rotl
1 parent f623583 commit ebe1481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/contracts/TFHEExecutorNoEvents.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ contract TFHEExecutorNoEvents is UUPSUpgradeable, Ownable2StepUpgradeable {
314314
* @return result Result.
315315
*/
316316
function fheRotl(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) public virtual returns (bytes32 result) {
317-
uint256 supportedTypes = (1 << 2) + (1 << 3) + (1 << 4) + (1 << 5) + (1 << 6);
317+
uint256 supportedTypes = (1 << 2) + (1 << 3) + (1 << 4) + (1 << 5) + (1 << 6) + (1 << 8);
318318
_requireType(lhs, supportedTypes);
319319
uint8 lhsType = _typeOf(lhs);
320320
bytes1 scalar = scalarByte & 0x01;
@@ -330,7 +330,7 @@ contract TFHEExecutorNoEvents is UUPSUpgradeable, Ownable2StepUpgradeable {
330330
* @return result Result.
331331
*/
332332
function fheRotr(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) public virtual returns (bytes32 result) {
333-
uint256 supportedTypes = (1 << 2) + (1 << 3) + (1 << 4) + (1 << 5) + (1 << 6);
333+
uint256 supportedTypes = (1 << 2) + (1 << 3) + (1 << 4) + (1 << 5) + (1 << 6) + (1 << 8);
334334
_requireType(lhs, supportedTypes);
335335
uint8 lhsType = _typeOf(lhs);
336336
bytes1 scalar = scalarByte & 0x01;

0 commit comments

Comments
 (0)