9af4f26d43
Co-authored-by: paul cannon <thepaul@users.noreply.github.com> Co-authored-by: Kaloyan Raev <kaloyan-raev@users.noreply.github.com>
24 lines
630 B
Go
24 lines
630 B
Go
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package uplink
|
|
|
|
import (
|
|
"storj.io/storj/pkg/storj"
|
|
)
|
|
|
|
const (
|
|
defaultCipher = storj.EncAESGCM
|
|
)
|
|
|
|
// EncryptionAccess specifies the encryption details needed to encrypt or
|
|
// decrypt objects.
|
|
type EncryptionAccess struct {
|
|
// Key is the base encryption key to be used for decrypting objects.
|
|
Key storj.Key
|
|
// EncryptedPathPrefix is the (possibly empty) encrypted version of the
|
|
// path from the top of the storage Bucket to this point. This is
|
|
// necessary to have in order to derive further encryption keys.
|
|
EncryptedPathPrefix storj.Path
|
|
}
|