encrypted_object

package module
v0.0.0-...-94ce622 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_encrypted_object_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EncryptedObject

type EncryptedObject struct {
	KeyToken []byte          `protobuf:"bytes,1,opt,name=keyToken,proto3" json:"keyToken,omitempty"`
	A        encryption.Algo `protobuf:"varint,2,opt,name=a,proto3,enum=Algo" json:"a,omitempty"`
	V        []byte          `protobuf:"bytes,3,opt,name=v,proto3" json:"v,omitempty"`
	// contains filtered or unexported fields
}

func NewEncryptedObject

func NewEncryptedObject(keyToken []byte, message protoreflect.ProtoMessage, encryptor encryption.TokenKeyEncryptor) (*EncryptedObject, error)

NewEncryptedObject creates an instance of EncryptedObject from the supplied message and encryptor details

func (*EncryptedObject) Descriptor deprecated

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

Deprecated: Use EncryptedObject.ProtoReflect.Descriptor instead.

func (*EncryptedObject) GetA

func (x *EncryptedObject) GetA() encryption.Algo

func (*EncryptedObject) GetKeyToken

func (x *EncryptedObject) GetKeyToken() []byte

func (*EncryptedObject) GetV

func (x *EncryptedObject) GetV() []byte

func (*EncryptedObject) ProtoMessage

func (*EncryptedObject) ProtoMessage()

func (*EncryptedObject) ProtoReflect

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

func (*EncryptedObject) Reset

func (x *EncryptedObject) Reset()

func (*EncryptedObject) String

func (x *EncryptedObject) String() string

type EncryptedObjectParser

type EncryptedObjectParser struct {
	// contains filtered or unexported fields
}

func NewEncryptedObjectParser

func NewEncryptedObjectParser(decryptor encryption.TokenKeyDecryptor) (*EncryptedObjectParser, error)

EncryptedObjectParser decrypts EncryptedObjects in a Message, using the supplied TokenKeyDecryptor

func (*EncryptedObjectParser) Parse

Parse decrypts using into the supplied ProtoMessage instance

Jump to

Keyboard shortcuts

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