urbit-hob-0.1.0: Hoon-style atom manipulation and printing functions

Safe HaskellNone
LanguageHaskell2010

Urbit.Ob.Ob

Synopsis

Documentation

fein :: (Integral a, Bits a) => a -> a Source #

Conceal structure v3.

fynd :: (Integral a, Bits a) => a -> a Source #

Restore structure v3.

feis :: Word32 -> Word32 Source #

Generalised Feistel cipher

See: Black and Rogaway (2002), "Ciphers with arbitrary finite domains."

Note that this has been adjusted from the reference paper in order to support some legacy behaviour.

tail :: Word32 -> Word32 Source #

Reverse feis.

See: Black and Rogaway (2002), "Ciphers with arbitrary finite domains."

Note that this has been adjusted from the reference paper in order to support some legacy behaviour.

fe :: Integral a => Int -> a -> a -> (Int -> a -> a) -> a -> a Source #

fe in B&R (2002).

fen :: Integral a => Int -> a -> a -> (Int -> a -> a) -> a -> a Source #

fen in B&R (2002).

capF :: Int -> Word32 -> Word32 Source #

A PRF for j in [0, .., 3]

capFe :: Integral a => Int -> a -> a -> a -> (Int -> a -> a) -> a -> a Source #

Fe in B&R (2002).

capFen :: Integral a => Int -> a -> a -> a -> (Int -> a -> a) -> a -> a Source #

Fen in B&R (2002).