Documentation ¶
Index ¶
- Constants
- func Create() *enclaveProto.Notebook
- func Decrypt(sk ciphers.Subkey, ct ciphers.Ciphertext) (*enclaveProto.Notebook, error)
- func Encrypt(sk ciphers.Subkey, nb *enclaveProto.Notebook) (ciphers.Ciphertext, error)
- func Restore(subkeys [2]ciphers.Subkey) (*enclaveProto.Notebook, error)
- func RestoreFromConfig() ([2]ciphers.Subkey, *enclaveProto.Notebook, error)
Constants ¶
View Source
const NOTEBOOK_BYTES_MAX = NOTEBOOK_PAGE_BYTES_MAX * 128
View Source
const NOTEBOOK_PAGE_BYTES_MAX = 64 * 1024
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create() *enclaveProto.Notebook
func Decrypt ¶
func Decrypt(sk ciphers.Subkey, ct ciphers.Ciphertext) (*enclaveProto.Notebook, error)
func Encrypt ¶
func Encrypt(sk ciphers.Subkey, nb *enclaveProto.Notebook) (ciphers.Ciphertext, error)
func RestoreFromConfig ¶
func RestoreFromConfig() ([2]ciphers.Subkey, *enclaveProto.Notebook, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.