signcrypt

package
v0.0.0-...-b87464d Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package signcrypt implements an integrated signcryption scheme using Ristretto255 and Newplex.

Index

Constants

View Source
const Overhead = 32 + 32 + 32

Overhead is the length, in bytes, of the additional data added to a plaintext to produce a signcrypted ciphertext.

Variables

This section is empty.

Functions

func Open

func Open(domain string, dR *ristretto255.Scalar, qS *ristretto255.Element, ciphertext []byte) ([]byte, error)

Open decrypts and verifies a ciphertext produced by Seal. Returns either the confidential, authentic plaintext or newplex.ErrInvalidCiphertext.

func Seal

func Seal(domain string, dS *ristretto255.Scalar, qR *ristretto255.Element, rand, message []byte) []byte

Seal encrypts and signs the message to protect its confidentiality and authenticity. Only the owner of the receiver's private key can decrypt it, and only the owner of the sender's private key could have sent it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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