encrypt

package
v0.0.0-...-73b5b3b Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICertHandler

type ICertHandler interface {
	GetThumbprint() (certThumbprint string, err error)
	Encrypt(bytesToEncrypt []byte) (encryptedBytes []byte, err error)
}

func New

func New(certLocation string) (ICertHandler, error)

certLocation is ignored for windows

type LinuxCertificateHandler

type LinuxCertificateHandler struct {
	CertOperations crypto.CertificateOperations
	// contains filtered or unexported fields
}

func (*LinuxCertificateHandler) Encrypt

func (ch *LinuxCertificateHandler) Encrypt(bytesToEncrypt []byte) (encryptedBytes []byte, err error)

func (*LinuxCertificateHandler) GetThumbprint

func (ch *LinuxCertificateHandler) GetThumbprint() (certThumbprint string, err error)

Jump to

Keyboard shortcuts

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