MCPcopy Create free account
hub / github.com/andreburgaud/crypt2go / Padding

Interface Padding

padding/padding.go:16–19  ·  view source on GitHub ↗

Padding interface defines functions Pad and Unpad implemented for PKCS #5 and PKCS #7 types of padding.

Source from the content-addressed store, hash-verified

14// Padding interface defines functions Pad and Unpad implemented for PKCS #5 and
15// PKCS #7 types of padding.
16type Padding interface {
17 Pad(p []byte) ([]byte, error)
18 Unpad(p []byte) ([]byte, error)
19}
20
21// Padder struct embeds attributes necessary for the padding calculation
22// (e.g. block size). It implements the Padding interface.

Callers 12

ExamplePadder_PadFunction · 0.65
ExamplePadder_Pad_secondFunction · 0.65
ExamplePadder_Pad_thirdFunction · 0.65
encryptFunction · 0.65
encryptFunction · 0.65
ExamplePadder_UnpadFunction · 0.65
decryptFunction · 0.65
decryptFunction · 0.65

Implementers 1

Padderpadding/padding.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…