Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BlockSize the RC5/32 block size in bytes. BlockSize32 = 8 P32 = 0xB7E15163 Q32 = 0x9E3779B9 )
View Source
const ( // BlockSize the RC5/64 block size in bytes. BlockSize64 = 16 P64 = 0xB7E151628AED2A6B Q64 = 0x9E3779B97F4A7C15 )
Variables ¶
This section is empty.
Functions ¶
func NewCipher ¶
NewCipher creates and returns a new cipher.Block. The key argument should be the RC5 key, the wordSize arguement should be word size in bits, the r argument should be number of rounds.
func NewCipher32 ¶
NewCipher32 creates and returns a new cipher.Block with 32 bits word size. The key argument should be the RC5 key, the r argument should be number of rounds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.