From 420eba6bf8a69c5900f74daf8463f4237f846b53 Mon Sep 17 00:00:00 2001 From: Anit Gandhi Date: Sun, 21 Jan 2018 19:06:03 -0500 Subject: [PATCH] ff1: remove TODO comments --- ff1/ff1.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ff1/ff1.go b/ff1/ff1.go index 19b82f9..c34c9c8 100644 --- a/ff1/ff1.go +++ b/ff1/ff1.go @@ -168,7 +168,6 @@ func (c Cipher) EncryptWithTweak(X string, tweak []byte) (string, error) { B := X[u:] // Byte lengths - // TODO: can these calculations be done more efficiently? b := int(math.Ceil(math.Ceil(float64(v)*math.Log2(float64(radix))) / 8)) d := int(4*math.Ceil(float64(b)/4) + 4) @@ -218,8 +217,6 @@ func (c Cipher) EncryptWithTweak(X string, tweak []byte) (string, error) { totalBufLen := lenQ + lenPQ + (maxJ-1)*blockSize buf := make([]byte, totalBufLen) - // TODO: small inputs will likely cause Q length to be 16, - // could start with that with larger cap and expand as necessary? // Q will use the first lenQ bytes of buf // Only the last b+1 bytes of Q change for each loop iteration Q := buf[:lenQ] @@ -405,7 +402,6 @@ func (c Cipher) DecryptWithTweak(X string, tweak []byte) (string, error) { B := X[u:] // Byte lengths - // TODO: can these calculations be done more efficiently? b := int(math.Ceil(math.Ceil(float64(v)*math.Log2(float64(radix))) / 8)) d := int(4*math.Ceil(float64(b)/4) + 4) @@ -455,8 +451,6 @@ func (c Cipher) DecryptWithTweak(X string, tweak []byte) (string, error) { totalBufLen := lenQ + lenPQ + (maxJ-1)*blockSize buf := make([]byte, totalBufLen) - // TODO: small inputs will likely cause Q length to be 16, - // could start with that with larger cap and expand as necessary? // Q will use the first lenQ bytes of buf // Only the last b+1 bytes of Q change for each loop iteration Q := buf[:lenQ]