Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeySaltBytes = 8 KeySizeBytes = 32 NonceSizeBytes = 24 )
Variables ¶
View Source
var (
ErrFailDecrypt = errors.New("could not decrypt value")
)
Functions ¶
This section is empty.
Types ¶
type NaclSecretStore ¶
type NaclSecretStore struct {
// contains filtered or unexported fields
}
func NewSecretStore ¶
func NewSecretStore(secret []byte) *NaclSecretStore
func (*NaclSecretStore) Decrypt ¶
func (a *NaclSecretStore) Decrypt(encrypted []byte) ([]byte, error)
func (*NaclSecretStore) SharedSecret ¶
func (a *NaclSecretStore) SharedSecret() []byte
Click to show internal directories.
Click to hide internal directories.