1
0
mirror of https://github.com/henrydcase/nobs.git synced 2024-11-26 00:51:22 +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 {
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

View File

@ -63,4 +63,4 @@
// They produce output of the same length, with the same security strengths
// against all attacks. This means, in particular, that SHA3-256 only has
// 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"