Skip to content

Commit

Permalink
fixed - removing redundant comments
Browse files Browse the repository at this point in the history
  • Loading branch information
olegfomenko committed Nov 19, 2024
1 parent 82080a9 commit 81344d1
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 39 deletions.
19 changes: 0 additions & 19 deletions prover/crypto/keccak/subtle/xor.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package subtle

import (
Expand Down Expand Up @@ -29,18 +25,3 @@ func XorIn(state *[25]uint64, buf [17]uint64) {
y := (*[17 * 64 / 8]byte)(unsafe.Pointer(&buf))
XORBytes(x[:], x[:], y[:])
}

//
// xorIn xors the bytes in buf into the state.
//func xorIn(d *state, buf []byte) {
// if cpu.IsBigEndian {
// for i := 0; len(buf) >= 8; i++ {
// a := binary.LittleEndian.Uint64(buf)
// d.a[i] ^= a
// buf = buf[8:]
// }
// } else {
// ab := (*[25 * 64 / 8]byte)(unsafe.Pointer(&d.a))
// XORBytes(ab[:], ab[:], buf)
// }
//}
4 changes: 0 additions & 4 deletions prover/crypto/keccak/subtle/xor_amd64.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !purego

package subtle
Expand Down
4 changes: 0 additions & 4 deletions prover/crypto/keccak/subtle/xor_amd64.s
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !purego

#include "textflag.h"
Expand Down
4 changes: 0 additions & 4 deletions prover/crypto/keccak/subtle/xor_arm64.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !purego

package subtle
Expand Down
4 changes: 0 additions & 4 deletions prover/crypto/keccak/subtle/xor_arm64.s
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !purego

#include "textflag.h"
Expand Down
4 changes: 0 additions & 4 deletions prover/crypto/keccak/subtle/xor_generic.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build (!amd64 && !arm64) || purego

package subtle
Expand Down

0 comments on commit 81344d1

Please sign in to comment.