coapapi

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashToSignerOpts

func HashToSignerOpts(hashtype HashFunction, pssOpts *PSSOptions) (crypto.SignerOpts, error)

Converts Protobuf hashtype to crypto.SignerOpts

Types

type AttestationRequest

type AttestationRequest struct {
	Id    string
	Nonce []byte
}

type AttestationResponse

type AttestationResponse struct {
	AttestationReport []byte
}

type HashFunction

type HashFunction int32
const (
	HashFunction_SHA1        HashFunction = 0
	HashFunction_SHA224      HashFunction = 1
	HashFunction_SHA256      HashFunction = 2
	HashFunction_SHA384      HashFunction = 3
	HashFunction_SHA512      HashFunction = 4
	HashFunction_MD4         HashFunction = 5
	HashFunction_MD5         HashFunction = 6
	HashFunction_MD5SHA1     HashFunction = 7
	HashFunction_RIPEMD160   HashFunction = 8
	HashFunction_SHA3_224    HashFunction = 9
	HashFunction_SHA3_256    HashFunction = 10
	HashFunction_SHA3_384    HashFunction = 11
	HashFunction_SHA3_512    HashFunction = 12
	HashFunction_SHA512_224  HashFunction = 13
	HashFunction_SHA512_256  HashFunction = 14
	HashFunction_BLAKE2s_256 HashFunction = 15
	HashFunction_BLAKE2b_256 HashFunction = 16
	HashFunction_BLAKE2b_384 HashFunction = 17
	HashFunction_BLAKE2b_512 HashFunction = 18
)

func SignerOptsToHash

func SignerOptsToHash(opts crypto.SignerOpts) (HashFunction, error)

Converts Hash Types from crypto.SignerOpts to the types specified in the CMC interface

type PSSOptions

type PSSOptions struct {
	SaltLength int32
}

type TLSCertRequest

type TLSCertRequest struct {
	Id string
}

type TLSCertResponse

type TLSCertResponse struct {
	Certificate [][]byte
}

type TLSSignRequest

type TLSSignRequest struct {
	Id       string
	Content  []byte
	Hashtype HashFunction
	PssOpts  *PSSOptions
}

type TLSSignResponse

type TLSSignResponse struct {
	SignedContent []byte
}

type VerificationRequest

type VerificationRequest struct {
	Nonce             []byte
	AttestationReport []byte
	Ca                []byte
	Policies          []byte
}

type VerificationResponse

type VerificationResponse struct {
	VerificationResult []byte
}

Jump to

Keyboard shortcuts

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