fcasal / CryptoUtils.jl

Cryptography and number-theory primitives in Julia
MIT License
5 stars 1 forks source link

A code I would like to upstream #1

Closed JanisErdmanis closed 4 years ago

JanisErdmanis commented 5 years ago

Hello!

The package seems to fit the goal for providing some frequently used routines from number theory to make our cryptographic algorithms. Currently, I have implemented the digital signature algorithm in Julia, which sits in CryptoSignatures.jl as well as cryptographic groups CryptoGroups.jl, and now I am working on Diffie-Hellman key exchange. During the development, I have wrapped two undocumented routines for random integer and random prime generation from Paillier.jl. Also, I have written some code for modular inverse, which seems could belong to this package.

Thus would you accept a pull request

fcasal commented 4 years ago

Hi there, for some reason github did not notify me of your issue.

JanisErdmanis commented 4 years ago

Thanks. I did not know that invmod stands for a modular inverse for Julia. It seems that there is no benefit to keeping using my implementation and I could make my code shorter :)

Also, I overlooked the random_prime function at this library. It is what I need. So I close the issue because I have no code to upstream.