cryptoproto

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeyType_name = map[int32]string{
		0: "Ed25519Public",
		1: "Ed25519Private",
		2: "AES",
	}
	KeyType_value = map[string]int32{
		"Ed25519Public":  0,
		"Ed25519Private": 1,
		"AES":            2,
	}
)

Enum value maps for KeyType.

View Source
var File_crypto_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Key

type Key struct {
	Type KeyType `protobuf:"varint,1,opt,name=Type,proto3,enum=crypto.KeyType" json:"Type,omitempty"`
	Data []byte  `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*Key) Descriptor deprecated

func (*Key) Descriptor() ([]byte, []int)

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetData

func (x *Key) GetData() []byte

func (*Key) GetType

func (x *Key) GetType() KeyType

func (*Key) MarshalToSizedBufferVT added in v0.9.0

func (m *Key) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Key) MarshalToVT added in v0.9.0

func (m *Key) MarshalToVT(dAtA []byte) (int, error)

func (*Key) MarshalVT added in v0.9.0

func (m *Key) MarshalVT() (dAtA []byte, err error)

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect added in v0.9.0

func (x *Key) ProtoReflect() protoreflect.Message

func (*Key) Reset

func (x *Key) Reset()

func (*Key) SizeVT added in v0.9.0

func (m *Key) SizeVT() (n int)

func (*Key) String

func (x *Key) String() string

func (*Key) UnmarshalVT added in v0.9.0

func (m *Key) UnmarshalVT(dAtA []byte) error

type KeyType

type KeyType int32
const (
	KeyType_Ed25519Public  KeyType = 0
	KeyType_Ed25519Private KeyType = 1
	KeyType_AES            KeyType = 2
)

func (KeyType) Descriptor added in v0.9.0

func (KeyType) Descriptor() protoreflect.EnumDescriptor

func (KeyType) Enum added in v0.9.0

func (x KeyType) Enum() *KeyType

func (KeyType) EnumDescriptor deprecated

func (KeyType) EnumDescriptor() ([]byte, []int)

Deprecated: Use KeyType.Descriptor instead.

func (KeyType) Number added in v0.9.0

func (x KeyType) Number() protoreflect.EnumNumber

func (KeyType) String

func (x KeyType) String() string

func (KeyType) Type added in v0.9.0

func (KeyType) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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