1
0
mirror of https://github.com/henrydcase/nobs.git synced 2024-11-29 10:21:23 +00:00

Temporarily change sha3 import location

This commit is contained in:
Henry Case 2018-07-05 15:51:09 +01:00
parent 4d0f3e5293
commit bd9a3f2b6b
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -63,4 +63,4 @@
// They produce output of the same length, with the same security strengths // They produce output of the same length, with the same security strengths
// against all attacks. This means, in particular, that SHA3-256 only has // against all attacks. This means, in particular, that SHA3-256 only has
// 128-bit collision resistance, because its output length is 32 bytes. // 128-bit collision resistance, because its output length is 32 bytes.
package sha3 // import "golang.org/x/crypto/sha3" package sha3 // import "github.com/henrydcase/nobs/hash/sha3"