|
|
@@ -34,8 +34,6 @@ type CtrDrbg struct { |
|
|
|
|
|
|
|
func NewCtrDrbg() *CtrDrbg { |
|
|
|
var c = new(CtrDrbg) |
|
|
|
// Security strength for AES-256 as per SP800-57, 5.6.1 |
|
|
|
c.strength = 256 |
|
|
|
return c |
|
|
|
} |
|
|
|
|
|
|
@@ -59,6 +57,9 @@ func (c *CtrDrbg) Init(entropy, personalization []byte) bool { |
|
|
|
return false |
|
|
|
} |
|
|
|
|
|
|
|
// Security strength for AES-256 as per SP800-57, 5.6.1 |
|
|
|
c.strength = 256 |
|
|
|
|
|
|
|
lsz = len(entropy) |
|
|
|
if lsz > SeedLen { |
|
|
|
lsz = SeedLen |
|
|
|