encrypt

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	URL        matrix.URL        `json:"url"`
	Key        JSONWebKey        `json:"key"`
	InitVector string            `json:"iv"`
	Hashes     map[string]string `json:"hashes"`
	Version    string            `json:"v"`
}

File represents an encrypted file.

type JSONWebKey

type JSONWebKey struct {
	KeyType       string   `json:"kty"`     // Type of key. Must be "oct".
	KeyOperations []string `json:"key_ops"` // Key operations.
	Algorithm     string   `json:"alg"`     // URLSafe unpadded base64 key.
	Extractable   bool     `json:"ext"`     // Must be true.
}

JSONWebKey represents a JSON web key.

Jump to

Keyboard shortcuts

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