types

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: GPL-3.0 Imports: 1 Imported by: 6

Documentation

Overview

types and interfaces used by all other packages

Index

Constants

View Source
const ConfigAddress string = "address"

--address config flag

View Source
const ConfigClientTimeout string = "clientTimeout"

--clientTimeout config flag

View Source
const ConfigFSPath string = "fspath"

--fspath config flagclient.getStoragePath()

View Source
const ConfigKeySize string = "keysize"

--keysize config flag

View Source
const ConfigMode string = "mode"

--mode config flag

View Source
const ConfigStorage string = "storage"

--storage config flag

Variables

This section is empty.

Functions

This section is empty.

Types

type DoubleEncryptedCipherText

type DoubleEncryptedCipherText struct {
	CipherText     []byte
	CipherTextKeys [][]byte
	Nonce          []byte
}

Struct defining the encrypted data in CipherText, an encrypted symmetric key in CipherTextKeys (1 for each given public key) and the nonce needed for the AES_GCM decryption.

type KeyIdentifier added in v0.14.0

type KeyIdentifier interface {
	// String returns a human readable representation for this KeyIdentifier
	String() string
	// Owner returns the identifier of the entity owning this key pair (e.g. LegalEntity, person, organization, etc). The
	// owner must uniquely identify this entity (in other words, multiple entities must not share the same identifier).
	Owner() string
	// Qualifier returns the identifier which points to a key pair for this owner. It must be unique for this owner (but
	// other owners can have key pairs with the same qualifier).
	Qualifier() string
	// WithQualifier returns a new KeyIdentifier with the specified qualifier.
	WithQualifier(qualifier string) KeyIdentifier
}

KeyIdentifier is the reference to a key pair

func KeyForEntity added in v0.14.0

func KeyForEntity(entity LegalEntity) KeyIdentifier

KeyForEntity returns a KeyIdentifier for the given LegalEntity. The KeyIdentifier will not have a qualifier.

type LegalEntity

type LegalEntity struct {
	URI string
}

type identifying the legalEntity responsible for the Patient/medical data

Jump to

Keyboard shortcuts

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