Skip to content

Commit

Permalink
update dsa test names
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Jan 17, 2024
1 parent 925e14e commit c003d5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dsa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type dsaSignature struct {
R, S *big.Int
}

func TestGenerateDSAParameters(t *testing.T) {
func TestDSAGenerateParameters(t *testing.T) {
testGenerateDSAParameters(t, 1024, 160)
testGenerateDSAParameters(t, 2048, 224)
testGenerateDSAParameters(t, 2048, 256)
Expand Down Expand Up @@ -130,7 +130,7 @@ func TestDSASignAndVerify(t *testing.T) {
testDSASignAndVerify(t, 0, priv)
}

func TestNewPrivateKeyDSAWithDegenerateKeys(t *testing.T) {
func TestDSANewPrivateKeyWithDegenerateKeys(t *testing.T) {
// Signing with degenerate private keys should not cause an infinite
// loop.
badKeys := []struct {
Expand All @@ -153,7 +153,7 @@ func TestNewPrivateKeyDSAWithDegenerateKeys(t *testing.T) {
}
}

func TestNewPublicKeyDSAWithBadPublicKey(t *testing.T) {
func TestDSANewPublicKeyWithBadPublicKey(t *testing.T) {
params := openssl.DSAParameters{
P: bbig.Enc(fromHex("A9B5B793FB4785793D246BAE77E8FF63CA52F442DA763C440259919FE1BC1D6065A9350637A04F75A2F039401D49F08E066C4D275A5A65DA5684BC563C14289D7AB8A67163BFBF79D85972619AD2CFF55AB0EE77A9002B0EF96293BDD0F42685EBB2C66C327079F6C98000FBCB79AACDE1BC6F9D5C7B1A97E3D9D54ED7951FEF")),
Q: bbig.Enc(fromHex("FA")),
Expand Down

0 comments on commit c003d5a

Please sign in to comment.