add comments

This commit is contained in:
Emman 2021-12-15 14:00:48 +08:00
parent bb70b71906
commit b2ec672125

View File

@ -250,6 +250,7 @@ func Test_signVerify(t *testing.T) {
} }
} }
// Check that signatures are safe even with a broken entropy source.
func TestNonceSafety(t *testing.T) { func TestNonceSafety(t *testing.T) {
priv, _ := GenerateKey(rand.Reader) priv, _ := GenerateKey(rand.Reader)
@ -277,6 +278,7 @@ func TestNonceSafety(t *testing.T) {
} }
} }
// Check that signatures remain non-deterministic with a functional entropy source.
func TestINDCCA(t *testing.T) { func TestINDCCA(t *testing.T) {
priv, _ := GenerateKey(rand.Reader) priv, _ := GenerateKey(rand.Reader)