package alwaysencrypted

import "github.com/microsoft/go-mssqldb/internal/github.com/swisscom/mssql-always-encrypted/pkg"

Index

Types

type CEKV

type CEKV struct {
	Version    int
	KeyPath    string
	Ciphertext []byte
	SignedHash []byte
	DataToSign []byte

	Key []byte
}

func LoadCEKV

func LoadCEKV(bytes []byte) CEKV

func (*CEKV) Decrypt

func (c *CEKV) Decrypt(private *rsa.PrivateKey) ([]byte, error)

func (*CEKV) Verify

func (c *CEKV) Verify(cert *x509.Certificate) bool

func (*CEKV) VerifySignature

func (c *CEKV) VerifySignature(key *rsa.PublicKey) bool

Source Files

alwaysencrypted.go

Directories

PathSynopsis
internal/github.com/swisscom/mssql-always-encrypted/pkg/algorithms
internal/github.com/swisscom/mssql-always-encrypted/pkg/crypto
internal/github.com/swisscom/mssql-always-encrypted/pkg/encryption
internal/github.com/swisscom/mssql-always-encrypted/pkg/keys
internal/github.com/swisscom/mssql-always-encrypted/pkg/utils
Version
v1.7.1
Published
Mar 19, 2024
Platform
js/wasm
Imports
8 packages
Last checked
2 hours ago

Tools for package owners.