Fixed FrodoKEM neg bug (sending cipheropts,opts order)

Also tweaked pad size random to use full range; removed some junk logging
This commit is contained in:
Russ Magee 2021-01-10 22:04:52 -08:00
parent 3193ede825
commit c23edc6874
7 changed files with 71 additions and 71 deletions

View file

@ -110,7 +110,7 @@ func (hc *Conn) getStream(keymat []byte) (rc cipher.Stream, mc hash.Hash, err er
key = keymat[0:chacha.KeySize]
ivlen = chacha.INonceSize
iv = keymat[chacha.KeySize : chacha.KeySize+ivlen]
rc, err = chacha.NewCipher(iv, key, 20)
rc, err = chacha.NewCipher(iv, key, chacha.INonceSize)
if err != nil {
log.Printf("[ChaCha20 config error]\n")
fmt.Printf("[ChaCha20 config error]\n")