Giter Site home page Giter Site logo

aesni.jl's Introduction

An Open Source Lover from Zhejiang. he/any.

About Me

  • 🐻 PhD in Chemistry from Brown University.

  • ❤️ Not very skilled but I enjoy coding. Most of my projects are in and . Here is a list.

  • 🎲 I play competitive Pokémon, and I'm in the committee of Pokémon Only in Shanghai.

  • 🌊 Former member of ZJU QSC.

  • 💬 Ask me about anything anonymously at https://ask.sunoru.com.

  • 🔑 Recently I have been working on:

    Some projects that have yet to be published.

Mastodon Twitter

aesni.jl's People

Contributors

sunoru avatar

Stargazers

 avatar

Watchers

 avatar  avatar

aesni.jl's Issues

ECB encrypt/decrypt is slow

On my GitHub codespace, it is like this:

[ Info: Benchmarking block ciphers
[ Info: AESNI.encrypt
  36.928 ns (1 allocation: 80 bytes)
[ Info: AESNI.encrypt on UInt128
  6.800 ns (0 allocations: 0 bytes)
[ Info: AESNI.decrypt
  36.794 ns (1 allocation: 80 bytes)
[ Info: AESNI.decrypt on UInt128
  7.200 ns (0 allocations: 0 bytes)
[ Info: Nettle.encrypt
  48.531 ns (1 allocation: 80 bytes)
[ Info: Nettle.decrypt
  47.769 ns (1 allocation: 80 bytes)
[ Info: Benchmarking ECB with larger data (10MB)
[ Info: AESNI.encrypt
  3.886 ms (2 allocations: 10.00 MiB)
[ Info: AESNI.decrypt
  3.889 ms (2 allocations: 10.00 MiB)
[ Info: Nettle.encrypt
  2.621 ms (2 allocations: 10.00 MiB)
[ Info: Nettle.decrypt
  2.604 ms (2 allocations: 10.00 MiB)

It took 1.5x time while block encryption/decryption is 25% faster.

TODOs

Just a list of to-dos. Any help is greatly appreciated!

  • Implement modes:
    • ECB
    • CBC
    • CFB
    • OFB
    • CTR
  • Docs.
  • Benchmark.

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.