processBlock

Processes one block (8 bytes) of data.

The rounds must be greater than 0 and equal or smaller than 16.

  1. ubyte[] processBlock(const(ubyte)[] block, BitArray[16] subkeys, int rounds)
    pure
    ubyte[]
    processBlock
    (
    const(ubyte)[] block
    ,
    const BitArray[16] subkeys
    ,
    const int rounds
    )
  2. ubyte[] processBlock(const(ubyte)[] block, BitArray[16] subkeys)

Parameters

block const(ubyte)[]

The block to process (must be 8 bytes long)

subkeys BitArray[16]

The subkeys to use for processing

rounds int

The number of rounds applied

Return Value

Type: ubyte[]

The processed block

Meta