Documentation ¶
Index ¶
- func AddPKCS7Pad(data []byte, blockSize int) []byte
- func ECBRepeatedBlockCount(ciphertext []byte, blockSize int) (count int, blocks int)
- func Equals(a, b []byte) bool
- func HammingDistance(a []byte, b []byte) (dist int)
- func NewPKCS7Reader(underlying io.Reader, blockSize int) io.Reader
- func RemovePKCS7Pad(data []byte, blockSize int) ([]byte, error)
- func WeakRemovePKCS7Pad(data []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPKCS7Pad ¶
func ECBRepeatedBlockCount ¶
func HammingDistance ¶
func WeakRemovePKCS7Pad ¶
This method is used when leading bytes are extracted, as the extraction method cannot work correctly with padding, so its just an unsafe cleanup
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.