Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decrypter ¶
type Decrypter struct {
// contains filtered or unexported fields
}
Decrypter allows decrypt payload of encrypted object.
func NewDecrypter ¶
NewDecrypter creates decrypter for regular encrypted object.
func NewMultipartDecrypter ¶
func NewMultipartDecrypter(p Params, decryptedObjectSize uint64, partsSizes []uint64, r *Range) (*Decrypter, error)
NewMultipartDecrypter creates new decrypted that can decrypt multipart object that contains concatenation of encrypted parts.
func (Decrypter) DecryptedLength ¶
DecryptedLength is actual (decrypted) length of data.
func (Decrypter) EncryptedLength ¶
EncryptedLength is size of encrypted data that should be read for successful decryption.
func (Decrypter) EncryptedOffset ¶
EncryptedOffset is offset of encrypted payload for successful decryption.
type ObjectEncryption ¶
ObjectEncryption stores parsed object encryption headers.
type Params ¶
type Params struct {
// contains filtered or unexported fields
}
Params contains encryption key info.
func (Params) MatchObjectEncryption ¶
func (p Params) MatchObjectEncryption(encInfo ObjectEncryption) error
MatchObjectEncryption checks if encryption params are valid for provided object.