schemes

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: BSD-3-Clause Imports: 13 Imported by: 6

Documentation

Overview

Package schemes contains a register of signature algorithms.

Implemented schemes:

Ed25519
Ed448
Ed25519-Dilithium2
Ed448-Dilithium3
Dilithium
ML-DSA
SLH-DSA
Example
package main

import (
	"fmt"

	"github.com/cloudflare/circl/sign/schemes"
)

func main() {
	for _, sch := range schemes.All() {
		fmt.Println(sch.Name())
	}
}
Output:
Ed25519
Ed448
Ed25519-Dilithium2
Ed448-Dilithium3
Dilithium2
Dilithium3
Dilithium5
ML-DSA-44
ML-DSA-65
ML-DSA-87
SLH-DSA-SHA2-128s
SLH-DSA-SHAKE-128s
SLH-DSA-SHA2-128f
SLH-DSA-SHAKE-128f
SLH-DSA-SHA2-192s
SLH-DSA-SHAKE-192s
SLH-DSA-SHA2-192f
SLH-DSA-SHAKE-192f
SLH-DSA-SHA2-256s
SLH-DSA-SHAKE-256s
SLH-DSA-SHA2-256f
SLH-DSA-SHAKE-256f

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() []sign.Scheme

All returns all signature schemes supported.

func ByName

func ByName(name string) sign.Scheme

ByName returns the scheme with the given name and nil if it is not supported.

Names are case insensitive.

Types

This section is empty.

Jump to

Keyboard shortcuts

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