Skip to content

crypto.des #

fn encrypt_block #

fn encrypt_block(subkeys []u64, mut dst []byte, src []byte)

Encrypt one block from src into dst, using the subkeys.

fn new_cipher #

fn new_cipher(key []byte) cipher.Block

NewCipher creates and returns a new cipher.Block.

fn new_triple_des_cipher #

fn new_triple_des_cipher(key []byte) cipher.Block

NewTripleDesCipher creates and returns a new cipher.Block.

fn (DesCipher) encrypt #

fn (c &DesCipher) encrypt(mut dst []byte, src []byte)

fn (DesCipher) decrypt #

fn (c &DesCipher) decrypt(mut dst []byte, src []byte)

fn (TripleDesCipher) encrypt #

fn (c &TripleDesCipher) encrypt(mut dst []byte, src []byte)

fn (TripleDesCipher) decrypt #

fn (c &TripleDesCipher) decrypt(mut dst []byte, src []byte)