(combine-four-bytes byte-array)
Takes an array of four bytes, and combines them into a single word.
Takes an array of four bytes, and combines them into a single word.
(ffAdd byte1 byte2)
Adds two bytes in a finite field via xor operation.
Adds two bytes in a finite field via xor operation.
(ffmultiply byte-a byte-b)
Multiplies two bytes (8 bits apiece) together in a finite field.
Multiplies two bytes (8 bits apiece) together in a finite field.
(msb-1? byte)
Determines if the most significant bit in the byte is 1.
Determines if the most significant bit in the byte is 1.
(number-of-32bit-words-in-key num-bits)
Computes the number of 32-bit words in the key.
Computes the number of 32-bit words in the key.
(number-of-rounds num-bits)
Computes the number of rounds based on the number of bits passed in.
Computes the number of rounds based on the number of bits passed in.
(separate-four-bytes word)
Takes a word (4 bytes) and returns a vector with each individual byte of the word.
Takes a word (4 bytes) and returns a vector with each individual byte of the word.
(xtime byte-in)
Multiplies a byte by two in a finite field, bit-xoring if the high bit is set.
Multiplies a byte by two in a finite field, bit-xoring if the high bit is set.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close