1.5 KiB
1.5 KiB
module des
Contents
encrypt_block
fn encrypt_block(subkeys []u64, mut dst []u8, src []u8)
Encrypt one block from src into dst, using the subkeys.
new_cipher
fn new_cipher(key []u8) cipher.Block
NewCipher creates and returns a new cipher.Block.
new_triple_des_cipher
fn new_triple_des_cipher(key []u8) cipher.Block
NewTripleDesCipher creates and returns a new cipher.Block.
DesCipher
encrypt
fn (c &DesCipher) encrypt(mut dst []u8, src []u8)
encrypt a block of data using the DES algorithm
decrypt
fn (c &DesCipher) decrypt(mut dst []u8, src []u8)
decrypt a block of data using the DES algorithm
TripleDesCipher
encrypt
fn (c &TripleDesCipher) encrypt(mut dst []u8, src []u8)
encrypt a block of data using the TripleDES algorithm
decrypt
fn (c &TripleDesCipher) decrypt(mut dst []u8, src []u8)
decrypt a block of data using the TripleDES algorithm