mirror of
https://github.com/luxfi/crypto.git
synced 2026-07-27 01:54:50 +00:00
22 lines
490 B
Go
22 lines
490 B
Go
//go:build !cgo
|
|
// +build !cgo
|
|
|
|
package kem
|
|
|
|
import "errors"
|
|
|
|
// cgoAvailable returns false when CGO is disabled
|
|
func cgoAvailable() bool {
|
|
return false
|
|
}
|
|
|
|
// NewMLKEM768CGO returns an error when CGO is disabled
|
|
func NewMLKEM768CGO() (KEM, error) {
|
|
return nil, errors.New("CGO disabled, using pure Go implementation")
|
|
}
|
|
|
|
// NewMLKEM1024CGO returns an error when CGO is disabled
|
|
func NewMLKEM1024CGO() (KEM, error) {
|
|
return nil, errors.New("CGO disabled, using pure Go implementation")
|
|
}
|