Documentation
¶
Overview ¶
From https://github.com/infinitybotlist/iblfile/blob/7d02b1ba186e0d6211330ae3d5442521345f90c1/consts.go
Index ¶
Constants ¶
View Source
const KeyCount = 16
The number of keys to encrypt the data with
Note that changing keycount does not need a change in protocol version
Variables ¶
This section is empty.
Functions ¶
func DecryptData ¶
Types ¶
type PemEncryptionData ¶
type PemEncryptionData struct {
// Public key to encrypt data with
PEM []byte `json:"p"`
// Encrypted OEAP keys
Keys [][]byte `json:"k"`
// Encryption nonce
Nonce string `json:"n"`
// Whether or not symmetric encryption is being used
//
// If this option is set, then a `privKey` section MUST be present (e.g. using an AutoEncrypted file)
Symmetric bool `json:"s"`
}
Click to show internal directories.
Click to hide internal directories.