Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Default encryption options. DefaultEncryption = SealConfigOptions{ Algorithm: key.AES256CBC, Iterations: 1, MinPasswordLength: 32, SaltBits: 256, } // Default integrity options. DefaultIntegrity = SealConfigOptions{ Algorithm: key.SHA256, Iterations: 1, MinPasswordLength: 32, SaltBits: 256, } )
Functions ¶
Types ¶
type SealConfig ¶
type SealConfig struct { // Encryption config options. Encryption SealConfigOptions // Integrity config options. Integrity SealConfigOptions // Time to live in seconds - how long the sealed message is valid for. // // 0 means it is valid forever. TTL int // Maximum skew allowed in seconds for incoming expirations. // // Defaults to 60 seconds. Set to -1 to disable. TimestampSkewSec int // Local time offset in milliseconds. LocalTimeOffsetMsec int }
Config options for a seal.
type SealConfigOptions ¶
type SealConfigOptions struct { // Algorithm to use for encryption or integrity. // // AES256CBC or AES128CTR for encryption. SHA256 for integrity. Algorithm key.Algorithm // Number of iterations to use when deriving a key from the password. Iterations int // Minimum length of the password. MinPasswordLength int // Number of bits to use for the random salt. SaltBits int }
Seal config options for encryption and integrity.
Click to show internal directories.
Click to hide internal directories.