Source: golang-github-jacobsa-crypto
Version: 0.0~git20190317.9f44e2d+dfsg1-4
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
Hi maintainers,
The golang-github-jacobsa-crypto package is used for arch=all arch.
But I found that there is a lack of loong64 support in
cmac/hash_64bit.go file.
If the support for loong64 is missing in golang-github-jacobsa-crypto
source package, many packages that depend on
golang-github-jacobsa-crypto-dev will fail to build. For example,
Compiling the gocryptfs failed for loong64 in the Debian Package
Auto-Building environment.
Build failed 7 times.
The build error log is as follows,
```
# github.com/jacobsa/crypto/cmac
src/github.com/jacobsa/crypto/cmac/hash.go:97:3: undefined: xorBlock
```
The full build log can be found at
https://buildd.debian.org/status/logs.php?pkg=gocryptfs&ver=2.4.0-1&arch=loong64.
Please consider the patch I attached for golang-github-jacobsa-crypto
source package.
I have built golang-github-jacobsa-crypto package successfully on my
local ENV.
Based on my local golang-github-jacobsa-crypto-dev binary package,
gocryptfs was built successfully, too.
Could you add loong64 support in the next upload?
Best regards,
Dandan Zhang
Description: Add loong64 support
.
golang-github-jacobsa-crypto (0.0~git20190317.9f44e2d+dfsg1-4+loong64) unreleased; urgency=medium
.
* Add loong64 support to cmac/hash_64bit.go
Author: Dandan Zhang <zhangdan...@loongson.cn>
---
Last-Update: 2024-10-16
--- golang-github-jacobsa-crypto-0.0~git20190317.9f44e2d+dfsg1.orig/cmac/hash_64bit.go
+++ golang-github-jacobsa-crypto-0.0~git20190317.9f44e2d+dfsg1/cmac/hash_64bit.go
@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-// +build amd64 arm64 ppc64 ppc64le ppc64el mips64 mips64le mips64el s390x alpha amd64p32 arm64be mipso64 mipsn64 mips64p32 mips64p32le ia64 riscv64 sparc64
+// +build amd64 arm64 ppc64 ppc64le ppc64el mips64 mips64le mips64el s390x alpha amd64p32 arm64be mipso64 mipsn64 mips64p32 mips64p32le ia64 riscv64 sparc64 loong64
// This code assumes that it's safe to perform unaligned word-sized loads. This is safe on:
// - arm64 per http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.den0024a/ch05s01s02.html