cryptor

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cryptor defines core-owned cipher contracts and boundary helpers.

New code should import this package instead of the legacy pki path:

import "github.com/InsideGallery/core/pki/cryptor"

Compatibility: github.com/InsideGallery/core/pki remains available for existing consumers. Prefer Options, Result, Cipher, Encrypt, and Decrypt from this package so cipher contracts stay behind a focused import path.

Index

Constants

This section is empty.

Variables

View Source
var ErrCipherNotSet = legacy.ErrCipherNotSet

ErrCipherNotSet reports a nil cipher dependency.

Functions

This section is empty.

Types

type Cipher

type Cipher = legacy.Cipher

Cipher is the contract implemented by core-owned cipher implementations.

type Options

type Options = legacy.Options

Options identifies the cipher behavior requested by a consumer.

type Result

type Result = legacy.Result

Result is the core-owned result shape for cipher operations.

func Decrypt

func Decrypt(ctx context.Context, cipher Cipher, ciphertext []byte) (Result, error)

Decrypt decrypts ciphertext through a Cipher.

func Encrypt

func Encrypt(ctx context.Context, cipher Cipher, plaintext []byte) (Result, error)

Encrypt encrypts plaintext through a Cipher.

Jump to

Keyboard shortcuts

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