Commits

Eric Roshan Eisner  committed de81809 Draft

s/_Block/block/

  • Participants
  • Parent commits dc6c500

Comments (0)

Files changed (2)

 	27, 41, 56, 8, 25, 43, 62, 18, 39, 61, 20, 44,
 }
 
-var piln = [24]uint{
+var piln = [24]int{
 	10, 7, 11, 17, 18, 3, 5, 16, 8, 21, 24, 4,
 	15, 23, 19, 13, 12, 2, 20, 14, 22, 9, 6, 1,
 }
 	return (x << r) | (x >> (64 - r))
 }
 
-func _Block(st *[25]uint64) {
+func block(st *[25]uint64) {
 	var (
 		t  uint64
 		bc [5]uint64
 // apply accepts a block of data with len exactly d.blocksize. It
 // xor's this data to the front of d.state (little endian), then performs
 // one KeccakF[1600] permutation.
-func (d *keccak) apply(block []byte) {
-	for i := 0; i < len(block); i += 8 {
-		d.state[i/8] ^= readLane(block[i : i+8])
+func (d *keccak) apply(chunk []byte) {
+	for i := 0; i < len(chunk); i += 8 {
+		d.state[i/8] ^= readLane(chunk[i : i+8])
 	}
-	_Block(&d.state)
+	block(&d.state)
 }
 
 // Write uses d.buf to buffer calls to d.apply from arbitrary sized inputs.