OPFSKEM

package module
v0.0.0-...-f5b16f4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

Puncturable Forward-Secret Key Encapsulation Mechanism

An Implementation of the puncturable forward-secret key encapsulation from [GHJL17].

Reference

[GHJL17] Felix Günther, Britta Hale, Tibor Jager, and Sebastian Lauer. 0-RTT Key Exchange with Full Forward Secrecy. Cryptology ePrint Archive, Report 2017/223, 2017. https://ia.cr/2017/223.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enc

func Enc(r io.Reader, pk *PK, t string) (Key, *Ciphertext, error)

func KGen

func KGen(r io.Reader, l int) (*PK, SK, error)

//////////////////////

func PnctCxt

func PnctCxt(pk *PK, sk SK, t string, ct *Ciphertext) (SK, SK)

func PnctInt

func PnctInt(pk *PK, sk SK, t string) (SK, SK)

func SHA256ToBin

func SHA256ToBin(s []byte) string

Types

type Ciphertext

type Ciphertext struct {
	// contains filtered or unexported fields
}

type Key

type Key = *HIBKEM.SessionKey

func Dec

func Dec(r io.Reader, pk *PK, sk SK, t string, ct *Ciphertext) (Key, error)

type PK

type PK struct {
	// contains filtered or unexported fields
}

type SK

type SK = []*HIBKEM.PrivateKey

Jump to

Keyboard shortcuts

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