New creates a new DSA instance
()
| 34 | |
| 35 | // New creates a new DSA instance |
| 36 | func 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) |