From 81344d19d09a12286f01c3027bfcd704974da5af Mon Sep 17 00:00:00 2001 From: olegfomenko Date: Tue, 19 Nov 2024 15:35:47 +0200 Subject: [PATCH] fixed - removing redundant comments --- prover/crypto/keccak/subtle/xor.go | 19 ------------------- prover/crypto/keccak/subtle/xor_amd64.go | 4 ---- prover/crypto/keccak/subtle/xor_amd64.s | 4 ---- prover/crypto/keccak/subtle/xor_arm64.go | 4 ---- prover/crypto/keccak/subtle/xor_arm64.s | 4 ---- prover/crypto/keccak/subtle/xor_generic.go | 4 ---- 6 files changed, 39 deletions(-) diff --git a/prover/crypto/keccak/subtle/xor.go b/prover/crypto/keccak/subtle/xor.go index 91d5dee7e..4aaa731f9 100644 --- a/prover/crypto/keccak/subtle/xor.go +++ b/prover/crypto/keccak/subtle/xor.go @@ -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 ( @@ -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) -// } -//} diff --git a/prover/crypto/keccak/subtle/xor_amd64.go b/prover/crypto/keccak/subtle/xor_amd64.go index 3bb2f08b7..b42809291 100644 --- a/prover/crypto/keccak/subtle/xor_amd64.go +++ b/prover/crypto/keccak/subtle/xor_amd64.go @@ -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 diff --git a/prover/crypto/keccak/subtle/xor_amd64.s b/prover/crypto/keccak/subtle/xor_amd64.s index 949424f87..d5ea45763 100644 --- a/prover/crypto/keccak/subtle/xor_amd64.s +++ b/prover/crypto/keccak/subtle/xor_amd64.s @@ -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" diff --git a/prover/crypto/keccak/subtle/xor_arm64.go b/prover/crypto/keccak/subtle/xor_arm64.go index 65bab4c65..b42809291 100644 --- a/prover/crypto/keccak/subtle/xor_arm64.go +++ b/prover/crypto/keccak/subtle/xor_arm64.go @@ -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 diff --git a/prover/crypto/keccak/subtle/xor_arm64.s b/prover/crypto/keccak/subtle/xor_arm64.s index 76321645d..50c8d0b94 100644 --- a/prover/crypto/keccak/subtle/xor_arm64.s +++ b/prover/crypto/keccak/subtle/xor_arm64.s @@ -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" diff --git a/prover/crypto/keccak/subtle/xor_generic.go b/prover/crypto/keccak/subtle/xor_generic.go index 26fbb1791..4924d1c21 100644 --- a/prover/crypto/keccak/subtle/xor_generic.go +++ b/prover/crypto/keccak/subtle/xor_generic.go @@ -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