ertcrypto

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package ertcrypto provides cryptographic functionalities for Go enclaves

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext []byte, key []byte) ([]byte, error)

Decrypt decrypts a given ciphertext (with prepended nonce) with a supplied key using AES-GCM

func Encrypt

func Encrypt(plaintext []byte, key []byte) ([]byte, error)

Encrypt encrypts a given plaintext with a supplied key using AES-GCM

func SealWithProductKey

func SealWithProductKey(plaintext []byte) ([]byte, error)

SealWithProductKey encrypts a given plaintext with the a key from the signer and product id of the enclave.

func SealWithUniqueKey

func SealWithUniqueKey(plaintext []byte) ([]byte, error)

SealWithUniqueKey encrypts a given plaintext with a key derived from a measurement of the enclave.

func Unseal

func Unseal(ciphertext []byte) ([]byte, error)

Unseal decrypts data encrypted with the unique or product CPU key with the help of the embedded key info

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL