Reimplementation of jh-ffi in pure rust.
daana32 / jh-rs Goto Github PK
View Code? Open in Web Editor NEWPure rust JH hash implementation
License: GNU General Public License v3.0
Pure rust JH hash implementation
License: GNU General Public License v3.0
Reimplementation of jh-ffi in pure rust.
I've been experimenting with a version of Miri that can execute foreign functions. It interprets the LLVM bytecode that is produced during a crate's build process. We're hoping our results can assist with the Krabcake project.
I ran your test cases in this tool, and it found an instance of undefined behavior related to transmute
in the test tests::large
.
error: Undefined Behavior: constructing invalid value: encountered an unaligned reference (required 8 byte alignment but found 1)
--> src/e8.rs:93:43
|
93 | let bitslice_ref: &[u64; 4] = std::mem::transmute(&E8_BITSLICE_ROUNDCONSTANT[roundnumber+0]);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered an unaligned reference (required 8 byte alignment but found 1)
|
Though the lengths of each slice within E8_BITSLICE_ROUNDCONSTANT
seem to be compatible for this transmutation, it's still considered undefined behavior, since the underlying reference must also be aligned to the size of the type. I think slice::align_to
might be what you're looking for here.
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.