mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-27 04:36:19 +08:00
add comments
This commit is contained in:
parent
bb70b71906
commit
b2ec672125
@ -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) {
|
||||
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) {
|
||||
priv, _ := GenerateKey(rand.Reader)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user