Documentation ¶
Index ¶
- Variables
- type PEMKeyFile
- type PKCS11Config
- func (*PKCS11Config) Descriptor() ([]byte, []int)deprecated
- func (x *PKCS11Config) GetPin() string
- func (x *PKCS11Config) GetPublicKey() string
- func (x *PKCS11Config) GetTokenLabel() string
- func (*PKCS11Config) ProtoMessage()
- func (x *PKCS11Config) ProtoReflect() protoreflect.Message
- func (x *PKCS11Config) Reset()
- func (x *PKCS11Config) String() string
- type PrivateKey
- type PublicKey
- type Specification
- func (*Specification) Descriptor() ([]byte, []int)deprecated
- func (x *Specification) GetEcdsaParams() *Specification_ECDSA
- func (x *Specification) GetEd25519Params() *Specification_Ed25519
- func (m *Specification) GetParams() isSpecification_Params
- func (x *Specification) GetRsaParams() *Specification_RSA
- func (*Specification) ProtoMessage()
- func (x *Specification) ProtoReflect() protoreflect.Message
- func (x *Specification) Reset()
- func (x *Specification) String() string
- type Specification_ECDSA
- func (*Specification_ECDSA) Descriptor() ([]byte, []int)deprecated
- func (x *Specification_ECDSA) GetCurve() Specification_ECDSA_Curve
- func (*Specification_ECDSA) ProtoMessage()
- func (x *Specification_ECDSA) ProtoReflect() protoreflect.Message
- func (x *Specification_ECDSA) Reset()
- func (x *Specification_ECDSA) String() string
- type Specification_ECDSA_Curve
- func (Specification_ECDSA_Curve) Descriptor() protoreflect.EnumDescriptor
- func (x Specification_ECDSA_Curve) Enum() *Specification_ECDSA_Curve
- func (Specification_ECDSA_Curve) EnumDescriptor() ([]byte, []int)deprecated
- func (x Specification_ECDSA_Curve) Number() protoreflect.EnumNumber
- func (x Specification_ECDSA_Curve) String() string
- func (Specification_ECDSA_Curve) Type() protoreflect.EnumType
- type Specification_EcdsaParams
- type Specification_Ed25519
- type Specification_Ed25519Params
- type Specification_RSA
- type Specification_RsaParams
Constants ¶
This section is empty.
Variables ¶
var ( Specification_ECDSA_Curve_name = map[int32]string{ 0: "DEFAULT_CURVE", 1: "P256", 2: "P384", 3: "P521", } Specification_ECDSA_Curve_value = map[string]int32{ "DEFAULT_CURVE": 0, "P256": 1, "P384": 2, "P521": 3, } )
Enum value maps for Specification_ECDSA_Curve.
var File_crypto_keyspb_keyspb_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PEMKeyFile ¶
type PEMKeyFile struct { // File path of the private key. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // Password for decrypting the private key. // If empty, indicates that the private key is not encrypted. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
PEMKeyFile identifies a private key stored in a PEM-encoded file.
func (*PEMKeyFile) Descriptor
deprecated
func (*PEMKeyFile) Descriptor() ([]byte, []int)
Deprecated: Use PEMKeyFile.ProtoReflect.Descriptor instead.
func (*PEMKeyFile) GetPassword ¶
func (x *PEMKeyFile) GetPassword() string
func (*PEMKeyFile) GetPath ¶
func (x *PEMKeyFile) GetPath() string
func (*PEMKeyFile) ProtoMessage ¶
func (*PEMKeyFile) ProtoMessage()
func (*PEMKeyFile) ProtoReflect ¶ added in v1.3.9
func (x *PEMKeyFile) ProtoReflect() protoreflect.Message
func (*PEMKeyFile) Reset ¶
func (x *PEMKeyFile) Reset()
func (*PEMKeyFile) String ¶
func (x *PEMKeyFile) String() string
type PKCS11Config ¶
type PKCS11Config struct { // The label of the PKCS#11 token. TokenLabel string `protobuf:"bytes,1,opt,name=token_label,json=tokenLabel,proto3" json:"token_label,omitempty"` // The PIN for the specific token. Pin string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"` // The PEM public key associated with the private key to be used. PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // contains filtered or unexported fields }
PKCS11Config identifies a private key accessed using PKCS #11.
func (*PKCS11Config) Descriptor
deprecated
func (*PKCS11Config) Descriptor() ([]byte, []int)
Deprecated: Use PKCS11Config.ProtoReflect.Descriptor instead.
func (*PKCS11Config) GetPin ¶
func (x *PKCS11Config) GetPin() string
func (*PKCS11Config) GetPublicKey ¶
func (x *PKCS11Config) GetPublicKey() string
func (*PKCS11Config) GetTokenLabel ¶
func (x *PKCS11Config) GetTokenLabel() string
func (*PKCS11Config) ProtoMessage ¶
func (*PKCS11Config) ProtoMessage()
func (*PKCS11Config) ProtoReflect ¶ added in v1.3.9
func (x *PKCS11Config) ProtoReflect() protoreflect.Message
func (*PKCS11Config) Reset ¶
func (x *PKCS11Config) Reset()
func (*PKCS11Config) String ¶
func (x *PKCS11Config) String() string
type PrivateKey ¶
type PrivateKey struct { // The key in DER-encoded form. // The specific format (e.g. PKCS8) is not specified. Der []byte `protobuf:"bytes,1,opt,name=der,proto3" json:"der,omitempty"` // contains filtered or unexported fields }
PrivateKey is a private key, used for generating signatures.
func (*PrivateKey) Descriptor
deprecated
func (*PrivateKey) Descriptor() ([]byte, []int)
Deprecated: Use PrivateKey.ProtoReflect.Descriptor instead.
func (*PrivateKey) GetDer ¶
func (x *PrivateKey) GetDer() []byte
func (*PrivateKey) ProtoMessage ¶
func (*PrivateKey) ProtoMessage()
func (*PrivateKey) ProtoReflect ¶ added in v1.3.9
func (x *PrivateKey) ProtoReflect() protoreflect.Message
func (*PrivateKey) Reset ¶
func (x *PrivateKey) Reset()
func (*PrivateKey) String ¶
func (x *PrivateKey) String() string
type PublicKey ¶
type PublicKey struct { // The key in DER-encoded PKIX form. Der []byte `protobuf:"bytes,1,opt,name=der,proto3" json:"der,omitempty"` // contains filtered or unexported fields }
PublicKey is a public key, used for verifying signatures.
func (*PublicKey) Descriptor
deprecated
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) ProtoReflect ¶ added in v1.3.9
func (x *PublicKey) ProtoReflect() protoreflect.Message
type Specification ¶
type Specification struct { // The type of parameters provided determines the algorithm used for the key. // // Types that are assignable to Params: // // *Specification_EcdsaParams // *Specification_RsaParams // *Specification_Ed25519Params Params isSpecification_Params `protobuf_oneof:"params"` // contains filtered or unexported fields }
Specification for a private key.
func (*Specification) Descriptor
deprecated
func (*Specification) Descriptor() ([]byte, []int)
Deprecated: Use Specification.ProtoReflect.Descriptor instead.
func (*Specification) GetEcdsaParams ¶
func (x *Specification) GetEcdsaParams() *Specification_ECDSA
func (*Specification) GetEd25519Params ¶ added in v1.3.0
func (x *Specification) GetEd25519Params() *Specification_Ed25519
func (*Specification) GetParams ¶
func (m *Specification) GetParams() isSpecification_Params
func (*Specification) GetRsaParams ¶
func (x *Specification) GetRsaParams() *Specification_RSA
func (*Specification) ProtoMessage ¶
func (*Specification) ProtoMessage()
func (*Specification) ProtoReflect ¶ added in v1.3.9
func (x *Specification) ProtoReflect() protoreflect.Message
func (*Specification) Reset ¶
func (x *Specification) Reset()
func (*Specification) String ¶
func (x *Specification) String() string
type Specification_ECDSA ¶
type Specification_ECDSA struct { // The elliptic curve to use. // Optional. If not set, the default curve will be used. Curve Specification_ECDSA_Curve `protobuf:"varint,1,opt,name=curve,proto3,enum=keyspb.Specification_ECDSA_Curve" json:"curve,omitempty"` // contains filtered or unexported fields }
/ ECDSA defines parameters for an ECDSA key.
func (*Specification_ECDSA) Descriptor
deprecated
func (*Specification_ECDSA) Descriptor() ([]byte, []int)
Deprecated: Use Specification_ECDSA.ProtoReflect.Descriptor instead.
func (*Specification_ECDSA) GetCurve ¶
func (x *Specification_ECDSA) GetCurve() Specification_ECDSA_Curve
func (*Specification_ECDSA) ProtoMessage ¶
func (*Specification_ECDSA) ProtoMessage()
func (*Specification_ECDSA) ProtoReflect ¶ added in v1.3.9
func (x *Specification_ECDSA) ProtoReflect() protoreflect.Message
func (*Specification_ECDSA) Reset ¶
func (x *Specification_ECDSA) Reset()
func (*Specification_ECDSA) String ¶
func (x *Specification_ECDSA) String() string
type Specification_ECDSA_Curve ¶
type Specification_ECDSA_Curve int32
The supported elliptic curves.
const ( Specification_ECDSA_DEFAULT_CURVE Specification_ECDSA_Curve = 0 // Curve will be chosen by Trillian. Specification_ECDSA_P256 Specification_ECDSA_Curve = 1 Specification_ECDSA_P384 Specification_ECDSA_Curve = 2 Specification_ECDSA_P521 Specification_ECDSA_Curve = 3 )
func (Specification_ECDSA_Curve) Descriptor ¶ added in v1.3.9
func (Specification_ECDSA_Curve) Descriptor() protoreflect.EnumDescriptor
func (Specification_ECDSA_Curve) Enum ¶ added in v1.3.9
func (x Specification_ECDSA_Curve) Enum() *Specification_ECDSA_Curve
func (Specification_ECDSA_Curve) EnumDescriptor
deprecated
func (Specification_ECDSA_Curve) EnumDescriptor() ([]byte, []int)
Deprecated: Use Specification_ECDSA_Curve.Descriptor instead.
func (Specification_ECDSA_Curve) Number ¶ added in v1.3.9
func (x Specification_ECDSA_Curve) Number() protoreflect.EnumNumber
func (Specification_ECDSA_Curve) String ¶
func (x Specification_ECDSA_Curve) String() string
func (Specification_ECDSA_Curve) Type ¶ added in v1.3.9
func (Specification_ECDSA_Curve) Type() protoreflect.EnumType
type Specification_EcdsaParams ¶
type Specification_EcdsaParams struct { // The parameters for an ECDSA key. EcdsaParams *Specification_ECDSA `protobuf:"bytes,1,opt,name=ecdsa_params,json=ecdsaParams,proto3,oneof"` }
type Specification_Ed25519 ¶ added in v1.3.0
type Specification_Ed25519 struct {
// contains filtered or unexported fields
}
Ed25519 defines (empty) parameters for an Ed25519 private key.
func (*Specification_Ed25519) Descriptor
deprecated
added in
v1.3.0
func (*Specification_Ed25519) Descriptor() ([]byte, []int)
Deprecated: Use Specification_Ed25519.ProtoReflect.Descriptor instead.
func (*Specification_Ed25519) ProtoMessage ¶ added in v1.3.0
func (*Specification_Ed25519) ProtoMessage()
func (*Specification_Ed25519) ProtoReflect ¶ added in v1.3.9
func (x *Specification_Ed25519) ProtoReflect() protoreflect.Message
func (*Specification_Ed25519) Reset ¶ added in v1.3.0
func (x *Specification_Ed25519) Reset()
func (*Specification_Ed25519) String ¶ added in v1.3.0
func (x *Specification_Ed25519) String() string
type Specification_Ed25519Params ¶ added in v1.3.0
type Specification_Ed25519Params struct { // The parameters for an Ed25519 key. Ed25519Params *Specification_Ed25519 `protobuf:"bytes,3,opt,name=ed25519_params,json=ed25519Params,proto3,oneof"` }
type Specification_RSA ¶
type Specification_RSA struct { // Size of the keys in bits. Must be sufficiently large to allow two primes // to be generated. // Optional. If not set, the key size will be chosen by Trillian. Bits int32 `protobuf:"varint,1,opt,name=bits,proto3" json:"bits,omitempty"` // contains filtered or unexported fields }
RSA defines parameters for an RSA key.
func (*Specification_RSA) Descriptor
deprecated
func (*Specification_RSA) Descriptor() ([]byte, []int)
Deprecated: Use Specification_RSA.ProtoReflect.Descriptor instead.
func (*Specification_RSA) GetBits ¶
func (x *Specification_RSA) GetBits() int32
func (*Specification_RSA) ProtoMessage ¶
func (*Specification_RSA) ProtoMessage()
func (*Specification_RSA) ProtoReflect ¶ added in v1.3.9
func (x *Specification_RSA) ProtoReflect() protoreflect.Message
func (*Specification_RSA) Reset ¶
func (x *Specification_RSA) Reset()
func (*Specification_RSA) String ¶
func (x *Specification_RSA) String() string
type Specification_RsaParams ¶
type Specification_RsaParams struct { // The parameters for an RSA key. RsaParams *Specification_RSA `protobuf:"bytes,2,opt,name=rsa_params,json=rsaParams,proto3,oneof"` }