Padding interface defines functions Pad and Unpad implemented for PKCS #5 and PKCS #7 types of padding.
| 14 | // Padding interface defines functions Pad and Unpad implemented for PKCS #5 and |
| 15 | // PKCS #7 types of padding. |
| 16 | type 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…