securebytes

package
v0.84.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

This package assumes that the caller's use case is not sensitive to timing attacks. In other words, it assumes that, even if an attacker can figure out the current index of the secret key originally used to encrypt the data, that information would not be materially useful to them. This is a reasonable assumption for most use cases.

Index

Constants

View Source
const MaxSize = 1 << 20 // 1MB in bytes

Variables

This section is empty.

Functions

func Parse

func Parse[T any](ks *keyset.Keyset, sb SecureBytes) (T, error)

Types

type RawValue

type RawValue any // Any pre-serialization value

type SecureBytes

type SecureBytes []byte // Encrypted value

func Serialize

func Serialize(ks *keyset.Keyset, rv RawValue) (SecureBytes, error)

Jump to

Keyboard shortcuts

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