seal

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

* Copyright (c) 2022-2023 Zander Schwid & Co. LLC. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BOXIssue

func BOXIssue() (sauce.AsymmetricSealer, error)

func BOXSealer

func BOXSealer(opt *sauce.SealerOptions) (sauce.AsymmetricSealer, error)

func CryptoScanner

func CryptoScanner(scan ...interface{}) gluten.Scanner

func ECDSASigner

func ECDSASigner(opt *sauce.SealerOptions) (sauce.AsymmetricSigner, error)

func ECDSASignerIssue

func ECDSASignerIssue(bits int) (sauce.AsymmetricSigner, error)

func GCMCipher

func GCMCipher(opt *sauce.CipherOptions) (this sauce.AuthenticatedCipher, err error)

func RSASealer

func RSASealer(opt *sauce.SealerOptions) (sauce.AsymmetricSealer, error)

func RSASealerIssue

func RSASealerIssue(bits int) (sauce.AsymmetricSealer, error)

func RSASigner

func RSASigner(opt *sauce.SealerOptions) (sauce.AsymmetricSigner, error)

func RSASignerIssue

func RSASignerIssue(bits int) (sauce.AsymmetricSigner, error)

func SealService

func SealService() sauce.SealService

func WithAESKey

func WithAESKey(key []byte) sauce.CipherOption

func WithBlock

func WithBlock(block cipher.Block) sauce.CipherOption

func WithBoxPrivateKey

func WithBoxPrivateKey(priv *[32]byte) sauce.SealerOption

func WithBoxPublicKey

func WithBoxPublicKey(pub *[32]byte) sauce.SealerOption

func WithCipher

func WithCipher(algorithm string) sauce.CipherOption

func WithECDSAPrivateKey

func WithECDSAPrivateKey(priv *ecdsa.PrivateKey) sauce.SealerOption

func WithECDSAPublicKey

func WithECDSAPublicKey(pub *ecdsa.PublicKey) sauce.SealerOption

func WithEncodedBoxPrivateKey

func WithEncodedBoxPrivateKey(privRawURLBase64 string) sauce.SealerOption

func WithEncodedBoxPublicKey

func WithEncodedBoxPublicKey(pubRawURLBase64 string) sauce.SealerOption

func WithEncodedECDSAPrivateKey

func WithEncodedECDSAPrivateKey(privPEM string) sauce.SealerOption

func WithEncodedECDSAPublicKey

func WithEncodedECDSAPublicKey(pubPEM string) sauce.SealerOption

func WithEncodedRSAPrivateKey

func WithEncodedRSAPrivateKey(privPEM string) sauce.SealerOption

func WithEncodedRSAPublicKey

func WithEncodedRSAPublicKey(pubPEM string) sauce.SealerOption

func WithRSAPrivateKey

func WithRSAPrivateKey(priv *rsa.PrivateKey) sauce.SealerOption

func WithRSAPublicKey

func WithRSAPublicKey(pub *rsa.PublicKey) sauce.SealerOption

func WithSealer

func WithSealer(algorithm string) sauce.SealerOption

Types

This section is empty.

Jump to

Keyboard shortcuts

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