Documentation ¶
Index ¶
- func BuildAltPublicKeyExtensions(quantumKey interface{}, classicalKey interface{}, qSigner crypto.Signer) ([]pkix.Extension, error)
- func GetRandomBytes(nbytes int) (randombytes []byte, err error)
- func IsSigEnabled(algName SigType) bool
- func KeyPair(algName SigType) (publicKey PublicKey, secretKey SecretKey, err error)
- func MarshalPKIXPrivateKey(pub interface{}) ([]byte, error)
- func MarshalPKIXPublicKey(pub interface{}) ([]byte, error)
- func MaxNumberSigs() int
- func ParsePKIXPrivateKey(derBytes []byte) (interface{}, error)
- func ParsePKIXPublicKey(derBytes []byte) (interface{}, error)
- func Sign(secretKey SecretKey, message []byte) (signature []byte, err error)
- func Validate(validationChain []*x509.Certificate) error
- func Verify(publicKey PublicKey, signature []byte, message []byte) (assert bool, err error)
- type AlgType
- type Algorithm
- type KeyMaterial
- type OQSLib
- type OQSSig
- type OQSSigInfo
- type PublicKey
- type SecretKey
- type SigType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandomBytes ¶
func IsSigEnabled ¶
func MarshalPKIXPrivateKey ¶
func MarshalPKIXPublicKey ¶
func MaxNumberSigs ¶
func MaxNumberSigs() int
func ParsePKIXPrivateKey ¶
func ParsePKIXPublicKey ¶
func Validate ¶
func Validate(validationChain []*x509.Certificate) error
Types ¶
type KeyMaterial ¶
type OQSLib ¶
type OQSLib struct {
// contains filtered or unexported fields
}
func (*OQSLib) EnabledSigs ¶
func (*OQSLib) GetAlgorithmFromOID ¶
func (l *OQSLib) GetAlgorithmFromOID(oid asn1.ObjectIdentifier) Algorithm
func (*OQSLib) GetAlgorithmIdentifier ¶
func (l *OQSLib) GetAlgorithmIdentifier(alg SigType) (ai pkix.AlgorithmIdentifier, err error)
type OQSSigInfo ¶
type OQSSigInfo struct {
Algorithm SigType
}
type PublicKey ¶
type PublicKey struct { Pk []byte Sig OQSSigInfo }
Click to show internal directories.
Click to hide internal directories.