Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/contrib/backends/srndv2/src/srnd/cryptography.go

30 lines
479 B
Go
Raw Normal View History

// +build !libsodium
package srnd
import (
"golang.org/x/crypto/curve25519"
)
func naclCryptoVerifyFucky(h, sig, pk []byte) bool {
return false
}
func naclCryptoSignFucky(hash, sk []byte) []byte {
return nil
}
func naclCryptoVerifyDetached(hash, sig, pk []byte) bool {
return false
}
func naclCryptoSignDetached(hash, sk []byte) []byte {
return nil
}
func naclSeedToKeyPair(seed []byte) (pk, sk []byte) {
return
}
var naclScalarBaseMult = curve25519.ScalarBaseMult