Interface: s3crypto.Padder
import "../ibm-cos-sdk-go/service/s3/s3crypto"
Overview
Padder handles padding of crypto data
Interface Method Summary collapse
-
Name() string
interface
Name returns the name of the padder.
-
Pad([]byte, int) ([]byte, error)
interface
Pad will pad the byte array.
-
Unpad([]byte) ([]byte, error)
interface
Unpad will unpad the byte bytes.
Interface Method Details
Name() string
This method is abstract.
Name returns the name of the padder. This is used when decrypting on instantiating new padders.
16 |
// File 'service/s3/s3crypto/padder.go', line 16
|
Pad([]byte, int) ([]byte, error)
This method is abstract.
Pad will pad the byte array. The second parameter is NOT how many bytes to pad by, but how many bytes have been read prior to the padding. This allows for streamable padding.
9 |
// File 'service/s3/s3crypto/padder.go', line 9
|
Unpad([]byte) ([]byte, error)
This method is abstract.
Unpad will unpad the byte bytes. Unpad methods must be constant time.
12 |
// File 'service/s3/s3crypto/padder.go', line 12
|