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 ¶
- func BOXIssue() (sauce.AsymmetricSealer, error)
- func BOXSealer(opt *sauce.SealerOptions) (sauce.AsymmetricSealer, error)
- func CryptoScanner(scan ...interface{}) gluten.Scanner
- func ECDSASigner(opt *sauce.SealerOptions) (sauce.AsymmetricSigner, error)
- func ECDSASignerIssue(bits int) (sauce.AsymmetricSigner, error)
- func GCMCipher(opt *sauce.CipherOptions) (this sauce.AuthenticatedCipher, err error)
- func RSASealer(opt *sauce.SealerOptions) (sauce.AsymmetricSealer, error)
- func RSASealerIssue(bits int) (sauce.AsymmetricSealer, error)
- func RSASigner(opt *sauce.SealerOptions) (sauce.AsymmetricSigner, error)
- func RSASignerIssue(bits int) (sauce.AsymmetricSigner, error)
- func SealService() sauce.SealService
- func WithAESKey(key []byte) sauce.CipherOption
- func WithBlock(block cipher.Block) sauce.CipherOption
- func WithBoxPrivateKey(priv *[32]byte) sauce.SealerOption
- func WithBoxPublicKey(pub *[32]byte) sauce.SealerOption
- func WithCipher(algorithm string) sauce.CipherOption
- func WithECDSAPrivateKey(priv *ecdsa.PrivateKey) sauce.SealerOption
- func WithECDSAPublicKey(pub *ecdsa.PublicKey) sauce.SealerOption
- func WithEncodedBoxPrivateKey(privRawURLBase64 string) sauce.SealerOption
- func WithEncodedBoxPublicKey(pubRawURLBase64 string) sauce.SealerOption
- func WithEncodedECDSAPrivateKey(privPEM string) sauce.SealerOption
- func WithEncodedECDSAPublicKey(pubPEM string) sauce.SealerOption
- func WithEncodedRSAPrivateKey(privPEM string) sauce.SealerOption
- func WithEncodedRSAPublicKey(pubPEM string) sauce.SealerOption
- func WithRSAPrivateKey(priv *rsa.PrivateKey) sauce.SealerOption
- func WithRSAPublicKey(pub *rsa.PublicKey) sauce.SealerOption
- func WithSealer(algorithm string) sauce.SealerOption
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 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 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.
Click to show internal directories.
Click to hide internal directories.