Git Product home page Git Product logo

Comments (4)

Yawning avatar Yawning commented on May 28, 2024

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.

KirilMihaylov avatar KirilMihaylov commented on May 28, 2024

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.

Yawning avatar Yawning commented on May 28, 2024

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.

Yawning avatar Yawning commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.