This commit is contained in:
cuiweixie 2025-12-03 20:18:32 +08:00
parent 04fd64d135
commit 8deeb5778f
No known key found for this signature in database
GPG key ID: 16DF64EE15E495A3
4 changed files with 6 additions and 5 deletions

View file

@ -1,4 +1,4 @@
// Copyright 2018 The Go Authors. All rights reserved.
// Copyright 2025 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.
// inspired by: https://github.com/golang/go/blob/4a3cef2036097d323b6cc0bbe90fc4d8c7588660/src/crypto/internal/fips140/subtle/xor_amd64.s

View file

@ -1,4 +1,4 @@
// Copyright 2020 The Go Authors. All rights reserved.
// Copyright 2025 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.
// inspired by: https://github.com/golang/go/blob/4a3cef2036097d323b6cc0bbe90fc4d8c7588660/src/crypto/internal/fips140/subtle/xor_arm64.s

View file

@ -1,4 +1,4 @@
// Copyright 2018 The Go Authors. All rights reserved.
// Copyright 2025 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.
// inspired by: https://github.com/golang/go/blob/4a3cef2036097d323b6cc0bbe90fc4d8c7588660/src/crypto/internal/fips140/subtle/xor_asm.go
@ -8,7 +8,8 @@
package bitutil
func orBytes(dst, a, b []byte) int {
orBytesASM(&dst[0], &a[0], &b[0], len(a))
n := min(len(a), len(b))
orBytesASM(&dst[0], &a[0], &b[0], n)
return len(a)
}

View file

@ -1,4 +1,4 @@
// Copyright 2013 The Go Authors. All rights reserved.
// Copyright 2025 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.