Documentation ¶
Index ¶
- func HashToSignerOpts(hashtype HashFunction, pssOpts *PSSOptions) (crypto.SignerOpts, error)
- type AttestationRequest
- type AttestationResponse
- type HashFunction
- type PSSOptions
- type TLSCertRequest
- type TLSCertResponse
- type TLSSignRequest
- type TLSSignResponse
- type VerificationRequest
- type VerificationResponse
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 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 VerificationResponse ¶
type VerificationResponse struct {
VerificationResult []byte
}
Click to show internal directories.
Click to hide internal directories.