crypto.des #
fn encrypt_block #
fn encrypt_block(subkeys []u64, mut dst []u8, src []u8)
Encrypt one block from src into dst, using the subkeys.
fn new_cipher #
fn new_cipher(key []u8) cipher.Block
NewCipher creates and returns a new cipher.Block.
fn new_triple_des_cipher #
fn new_triple_des_cipher(key []u8) cipher.Block
NewTripleDesCipher creates and returns a new cipher.Block.
fn (DesCipher) encrypt #
fn (c &DesCipher) encrypt(mut dst []u8, src []u8)
fn (DesCipher) decrypt #
fn (c &DesCipher) decrypt(mut dst []u8, src []u8)
fn (TripleDesCipher) encrypt #
fn (c &TripleDesCipher) encrypt(mut dst []u8, src []u8)
fn (TripleDesCipher) decrypt #
fn (c &TripleDesCipher) decrypt(mut dst []u8, src []u8)