jacobsa / crypto Goto Github PK
View Code? Open in Web Editor NEWSome Go cryptography routines that are not included in the Go standard library.
License: Apache License 2.0
Some Go cryptography routines that are not included in the Go standard library.
License: Apache License 2.0
Trying to cross compile for ARM, i got bitten by a missing implementation of the xorBlock function for ARM...
RFC 4493 has a program for generating test data with a reference
implementation and hard-coded data. That can be cgo-wrapped into a program
that generates random keys (with a hard-coded seed) and then prints gobs with
test cases for various programs.
testing/gentests
.testing
.testing
also exports functions that return the test data; finds the dataThe xorBlock function does not have support for RISC-V and thus software depending on crypto e.g. gocryptfs does not compile on RISC-V:
Line 16 in e7a907a
Unfortunately, unaligned loads (which are used by the present xorBlock implementation) are implementation-defined behavior on RISC-V and should thus not be relied on (Section 2.6, "Load and Store Instructions" in the unprivileged ISA specification):
Loads and stores where the effective address is not naturally aligned to the referenced datatype (i.e., on a four-byte boundary for 32-bit accesses, and a two-byte boundary for 16-bit accesses) have behavior dependent on the EEI.
Maybe it makes sense to add a generic fallback implementation of the xorBlock function which does not make use of unaligned loads?
Alpine Linux downstream issue where this was originally reported: https://gitlab.alpinelinux.org/alpine/aports/-/issues/12793
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.