chameleon

package
v0.0.0-...-a01cb7b Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

Chameleon Hash

A Go implementation of Chameleon Hash

Tests

$ go test .

Benchmarks

$ go test -timeout 1h -bench=. -benchtime=1m

Reference

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCurveType = elliptic.P256()

Functions

func ChamHash

func ChamHash(msg, r *big.Int, pk *ecdsa.PublicKey) *ecdsa.PublicKey

ChamHash input message and random r, output hash

func FindCollisionR

func FindCollisionR(msg, newMsg, r, sk *big.Int) *big.Int

FindCollisionR given M' and r, find r' such that hash(M',r')=hash(M,r)

Types

This section is empty.

Jump to

Keyboard shortcuts

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