Skip to content

Conversation

@piggynl
Copy link

@piggynl piggynl commented Apr 3, 2022

This PR is based on #12 and will fix #13.

The generic implementation doesn't require that it's safe to perform unaligned word-sized loads, but has a poor performance.

Also, I wonder whether the related code can be rewritten to not use unaligned memory accesses?

rfjakob and others added 2 commits August 14, 2021 12:35
Go 1.16 makes go.mod mandatory:
https://blog.golang.org/go116-module-changes

This caused two errors:

(1) go build failed:

  go: cannot find main module, but found .git/config in /home/jakob/go/src/github.com/jacobsa/crypto
  	to create a module there, run:
  	go mod init

Fixed by adding go.mod & go.sum.

(2) tests failed:

  subkey.go:47:
  panic: Finding package: no required module provides package github.com/jacobsa/crypto/testing/cases; to add it:
  	go get github.com/jacobsa/crypto/testing/cases

Fixed by adding testing/cases/cases.go.
@paralin
Copy link

paralin commented Jun 25, 2022

@jacobsa This fixes a build for us against riscv64 on Buildroot, could you have a look at merging? Thanks 👍🏽

@paralin
Copy link

paralin commented Jun 25, 2022

@piggynl
Copy link
Author

piggynl commented Jul 13, 2022

Hi @paralin,

@piggynl I'm wondering if it might be good to fork this & maintain it as a different import path if the author doesn't merge.

Sure! Do you prefer maintain the fork at aperturerobotics/jacobsa-crypto or piggynl/jacobsa-crypto? I have some ideas on using QEMU on GitHub Action to test packages for different architectures.

@paralin
Copy link

paralin commented Jul 14, 2022

@piggynl Since that org already has a number of forked repos under maintenance, I'm happy to put it there.

Do we keep the name jacobsa-crypto? I can change the go.mod there to match.

OK, changed the go.mod & invited you as a maintainer.

paralin added a commit to paralin/gocryptfs that referenced this pull request Jul 14, 2022
Replace dependency jacobsa/crypto with a fork with support for riscv64.

Issue: rfjakob#666

Upstream PR: jacobsa/crypto#13

Unaddressed on jacobsa/crypto:

jacobsa/crypto#14 (comment)

Signed-off-by: Christian Stewart <christian@paral.in>
paralin added a commit to paralin/gocryptfs that referenced this pull request Dec 8, 2022
Replace dependency jacobsa/crypto with a fork with support for riscv64.

Issue: rfjakob#666

Upstream PR: jacobsa/crypto#13

Unaddressed on jacobsa/crypto:

jacobsa/crypto#14 (comment)

Signed-off-by: Christian Stewart <christian@paral.in>
paralin added a commit to paralin/gocryptfs that referenced this pull request Dec 8, 2022
Replace dependency jacobsa/crypto with a fork with support for riscv64.

Issue: rfjakob#666

Upstream PR: jacobsa/crypto#13

Unaddressed on jacobsa/crypto:

jacobsa/crypto#14 (comment)

Signed-off-by: Christian Stewart <christian@paral.in>
paralin added a commit to paralin/gocryptfs that referenced this pull request Dec 8, 2022
Replace dependency jacobsa/crypto with a fork with support for riscv64.

Issue: rfjakob#666

Upstream PR: jacobsa/crypto#13

Unaddressed on jacobsa/crypto:

jacobsa/crypto#14 (comment)

Signed-off-by: Christian Stewart <christian@paral.in>
rfjakob pushed a commit to rfjakob/gocryptfs that referenced this pull request Dec 21, 2022
Replace dependency jacobsa/crypto with a fork with support for riscv64.

Issue: #666

Upstream PR: jacobsa/crypto#13

Unaddressed on jacobsa/crypto:

jacobsa/crypto#14 (comment)

Signed-off-by: Christian Stewart <christian@paral.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add xorBlock for RISC-V architecture

3 participants