Module: crypto.bitops
Source: ./crypto/bitops.reef
Overview
crypto/bitops - Bit operations for cryptographic algorithms
Provides 32-bit unsigned arithmetic operations for hash functions. Handles Reef's signed 32-bit integer representation.
Functions
fn bit_not(x: int): int
fn bit_lsr1(value: int): int
Logical right shift by 1 bit
fn bit_lsr(value: int, bits: int): int
Logical right shift by n bits
fn bit_lsl(value: int, bits: int): int
Left shift by n bits
fn bit_rotl(value: int, n: int): int
Rotate left by n bits
fn bit_rotr(value: int, n: int): int
Rotate right by n bits
Generated by reefc doc