services

package
v0.0.0-...-6740685 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package services is implements gRPC services for testing_api.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AEADService

type AEADService struct {
	pb.AeadServer
}

AEADService implements the Aead testing service.

func (*AEADService) Create

func (*AEADService) Decrypt

func (*AEADService) Encrypt

type DeterministicAEADService

type DeterministicAEADService struct {
	pb.DeterministicAeadServer
}

DeterministicAEADService implements the DeterministicAead testing service.

func (*DeterministicAEADService) Create

func (*DeterministicAEADService) DecryptDeterministically

func (*DeterministicAEADService) EncryptDeterministically

type HybridService

type HybridService struct {
	pb.HybridServer
}

HybridService implements the Hybrid encryption and decryption testing service.

func (*HybridService) CreateHybridDecrypt

func (s *HybridService) CreateHybridDecrypt(ctx context.Context, req *pb.CreationRequest) (*pb.CreationResponse, error)

func (*HybridService) CreateHybridEncrypt

func (s *HybridService) CreateHybridEncrypt(ctx context.Context, req *pb.CreationRequest) (*pb.CreationResponse, error)

func (*HybridService) Decrypt

func (*HybridService) Encrypt

type JWTService

type JWTService struct {
	pb.JwtServer
}

JWTService implements the JWT testing service.

func (*JWTService) ComputeMacAndEncode

func (s *JWTService) ComputeMacAndEncode(ctx context.Context, req *pb.JwtSignRequest) (*pb.JwtSignResponse, error)

func (*JWTService) CreateJwtMac

func (s *JWTService) CreateJwtMac(ctx context.Context, req *pb.CreationRequest) (*pb.CreationResponse, error)

func (*JWTService) CreateJwtPublicKeySign

func (s *JWTService) CreateJwtPublicKeySign(ctx context.Context, req *pb.CreationRequest) (*pb.CreationResponse, error)

func (*JWTService) CreateJwtPublicKeyVerify

func (s *JWTService) CreateJwtPublicKeyVerify(ctx context.Context, req *pb.CreationRequest) (*pb.CreationResponse, error)

func (*JWTService) FromJwkSet

func (*JWTService) PublicKeySignAndEncode

func (s *JWTService) PublicKeySignAndEncode(ctx context.Context, req *pb.JwtSignRequest) (*pb.JwtSignResponse, error)

func (*JWTService) PublicKeyVerifyAndDecode

func (s *JWTService) PublicKeyVerifyAndDecode(ctx context.Context, req *pb.JwtVerifyRequest) (*pb.JwtVerifyResponse, error)

func (*JWTService) ToJwkSet

func (*JWTService) VerifyMacAndDecode

func (s *JWTService) VerifyMacAndDecode(ctx context.Context, req *pb.JwtVerifyRequest) (*pb.JwtVerifyResponse, error)

type KeysetDeriverService

type KeysetDeriverService struct {
	pb.KeysetDeriverServer
}

KeysetDeriverService implements the KeysetDeriver testing service.

func (*KeysetDeriverService) Create

func (*KeysetDeriverService) DeriveKeyset

type KeysetService

type KeysetService struct {
	Templates map[string]*tinkpb.KeyTemplate
	pb.KeysetServer
}

KeysetService implements the Keyset testing service.

func (*KeysetService) FromJson

func (*KeysetService) Generate

func (*KeysetService) GetTemplate

func (*KeysetService) Public

func (*KeysetService) ReadEncrypted

func (*KeysetService) ToJson

func (*KeysetService) WriteEncrypted

type MacService

type MacService struct {
	pb.MacServer
}

MacService implements the MAC testing service.

func (*MacService) ComputeMac

func (*MacService) Create

func (*MacService) VerifyMac

func (s *MacService) VerifyMac(ctx context.Context, req *pb.VerifyMacRequest) (*pb.VerifyMacResponse, error)

type MetadataService

type MetadataService struct {
	pb.MetadataServer
}

MetadataService implements the Keyset testing service.

func (*MetadataService) GetServerInfo

type PrfSetService

type PrfSetService struct {
	pb.PrfSetServer
}

PrfSetService implements the PrfSet testing service.

func (*PrfSetService) Compute

func (*PrfSetService) Create

func (*PrfSetService) KeyIds

type SignatureService

type SignatureService struct {
	pb.SignatureServer
}

SignatureService implements the Signature testing service.

func (*SignatureService) CreatePublicKeySign

func (s *SignatureService) CreatePublicKeySign(ctx context.Context, req *pb.CreationRequest) (*pb.CreationResponse, error)

func (*SignatureService) CreatePublicKeyVerify

func (s *SignatureService) CreatePublicKeyVerify(ctx context.Context, req *pb.CreationRequest) (*pb.CreationResponse, error)

func (*SignatureService) Sign

func (*SignatureService) Verify

type StreamingAEADService

type StreamingAEADService struct {
	pb.StreamingAeadServer
}

StreamingAEADService implements the StreamingAead testing service.

func (*StreamingAEADService) Create

func (*StreamingAEADService) Decrypt

func (*StreamingAEADService) Encrypt

Directories

Path Synopsis
internal
kmsaead
Package kmsaead provides a keymanager for KmsAeadKey that may only be used in tests.
Package kmsaead provides a keymanager for KmsAeadKey that may only be used in tests.

Jump to

Keyboard shortcuts

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