Browse Source

Temporarily change sha3 import location

tags/Release_0.1
Henry D. Case 6 years ago
parent
commit
bd9a3f2b6b
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      drbg/ctr_drbg.go
  2. +1
    -1
      hash/sha3/doc.go

+ 3
- 2
drbg/ctr_drbg.go 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


+ 1
- 1
hash/sha3/doc.go 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"

Loading…
Cancel
Save