Skip to content

Commit

Permalink
remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Jan 17, 2024
1 parent b8be1a8 commit c21f8af
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions dsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ type DSAParameters struct {
P, Q, G BigInt
}

func (p DSAParameters) keySize() uint32 {
return uint32(len(p.P))
}

func (p DSAParameters) groupSize() uint32 {
return uint32(len(p.Q))
}

// PrivateKeyDSA represents a DSA private key.
type PrivateKeyDSA struct {
DSAParameters
Expand Down Expand Up @@ -153,7 +145,7 @@ func GenerateKeyDSA(params DSAParameters) (*PrivateKeyDSA, error) {
C.go_openssl_DSA_get0_key(dsa, &y, &x)
case 3:
defer func() {
C.go_openssl_BN_free(x)
C.go_openssl_BN_clear_free(x)
C.go_openssl_BN_free(y)
}()
if C.go_openssl_EVP_PKEY_get_bn_param(pkey, paramPubKey, &y) != 1 ||
Expand Down

0 comments on commit c21f8af

Please sign in to comment.