Comments (4)
The time consuming and annoying part of this is having to implement a constant time AES round function. I guess the path of least resistance would be to use one based on the BearSSL code, it's what the Go and JS implementations do.
Though, part of me thinks that doing just the round function and format conversion stuff in wasm should be enough, and it would be less frustrating for me to use wasm s-expressions than rust.
from deoxysii-rust.
Perhaps, RustCrypto's soft AES implementation could be used or ported to fit Deoxys's specification.
Note, that it did receive a third-party review, so changing just some constants, if that's the case, should be sufficient to have a verified implementation.
from deoxysii-rust.
Perhaps, RustCrypto's soft AES implementation could be used or ported to fit Deoxys's specification. Note, that it did receive a third-party review, so changing just some constants, if that's the case, should be sufficient to have a verified implementation.
That might work, though there isn't anything wrong with the BearSSL code either. For what it's worth I am against doing this for the reasoning in the original issue, because WASM as specified is an unsafe environment for cryptography.
RustCrypto also provides the Deoxys family now, although I have not looked at their portable implementation in depth (the hardware accelerated flavor was terrible when I checked back in Febuary 2022, because it is 25x slower).
from deoxysii-rust.
I basically never want a version of this that can be compiled to WASM, so I'm closing this as a WONTFIX.
from deoxysii-rust.
Related Issues (9)
- compile warning HOT 1
- Seal encryption is inconsistent with JS implementation HOT 5
- Fails to compile HOT 4
- Split assembly into files and compile during build script HOT 5
- Prepare for public release HOT 2
- Implement a Python module which supports Deoxys-II
- style nit question: constructor never fails, yet returns Fallible<Self> HOT 2
- Clear XMM registers HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deoxysii-rust.