go/src/crypto/des/cipher.go

const BlockSize

type KeySizeError

func (k KeySizeError) Error() string {}

type desCipher

// NewCipher creates and returns a new [cipher.Block].
func NewCipher(key []byte) (cipher.Block, error) {}

func (c *desCipher) BlockSize() int {}

func (c *desCipher) Encrypt(dst, src []byte) {}

func (c *desCipher) Decrypt(dst, src []byte) {}

type tripleDESCipher

// NewTripleDESCipher creates and returns a new [cipher.Block].
func NewTripleDESCipher(key []byte) (cipher.Block, error) {}

func (c *tripleDESCipher) BlockSize() int {}

func (c *tripleDESCipher) Encrypt(dst, src []byte) {}

func (c *tripleDESCipher) Decrypt(dst, src []byte) {}