Git Product home page Git Product logo

cecies's People

Contributors

glitchedpolygons avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cecies's Issues

SECP256K1 implementation in cecies

Hi,

What

I am trying to modify the encrypt, decrypt and keygen modules to support SECP256K1 and AES-GCM 256, but the decryption fails.

Why

Since most of the publicly available implementations of ECIES support this curve, I wanted to give it a try.
I was able to modify the example to generate keys.

  • Public key is of 65 bytes in length and private key is 32 bytes in length.
  • Encryption succeeds, and all the verification of public-private pairs succeed.
  • Decryption is OK until the GCM tag verification. But fails to authenticate the tag.

I did some debugging and found out that the AES key derived from HKDF is different for encrypt and decrypt.
But for the Curve448 example01, the keys are the same in encrypt and decrypt.

I was not able to figure out why I was getting a different result. Can anyone from @GlitchedPolygons help me out?

Dependencies issue

Hi, I was trying to use your code and when using encrypt.c I got the error that ccrush.h could not be found. However when I search the internet I can not find the ccrush library anywhere. Thank you in advance for your help.

I am pretty new to coding so my issue might be due to some beginner mistake.

[FEATURE] Add CLI programs for Ed25519 and Ed448

Even though signing and verifying is outside of the scope of ECIES, it'd still be neat to have matching Ed25519 and Ed448 example implementations inside the programs/ collection. A simple CLI with just two parameters as seen in the others is already enough... Keep it simple too!

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.