MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / New

Function New

cipher/dsa/dsa.go:36–41  ·  view source on GitHub ↗

New creates a new DSA instance

()

Source from the content-addressed store, hash-verified

34
35// New creates a new DSA instance
36func New() *dsa {
37 d := new(dsa)
38 d.dsaParameterGeneration()
39 d.keyGen()
40 return d
41}
42
43// Parameter generation for DSA
44// 1. FIPS 186-4 specifies that the L and N values must be (1024, 160), (2048, 224), or (3072, 256)

Callers 4

TestDSAFunction · 0.92
BenchmarkDSANewFunction · 0.92
BenchmarkDSASignFunction · 0.92
BenchmarkDSAVerifyFunction · 0.92

Calls 2

keyGenMethod · 0.80

Tested by 4

TestDSAFunction · 0.74
BenchmarkDSANewFunction · 0.74
BenchmarkDSASignFunction · 0.74
BenchmarkDSAVerifyFunction · 0.74