crypto

package
v0.2.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DESFinalTDESMac

func DESFinalTDESMac(dst *[8]byte, src []byte, key [16]byte, iv [8]byte) error

DESFinalTDESMac calculates a MAC with Single DES and a final round TripleDES in CBC mode. The length of input data must be a multiple of 8.

func Pad80

func Pad80(b []byte, blockSize int, force bool) ([]byte, error)

Pad80 takes a []byte and a block size which must be a multiple of 8 and appends '80' and zero bytes until the length of the resulting []byte reaches a multiple of the block size and returns the padded []byte. If force is false, the padding will only be applied, if the []byte is not a multiple of the blocksize. If force is true, the padding will be applied anyways.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL