Re: [Cryptography-dev] Using EC Point arithemtic in cryptography

2017-12-01 Thread Alex Gaynor
Nope, we don't have a public API for modular inverse. Alex On Fri, Dec 1, 2017 at 5:38 PM, John Pacific wrote: > Hey, Alex! > > Thanks for the response! I've been using the ECDH API for the scalar > multiplication, but my last remaining need is for `BN_mod_inverse` and I > can't seem to find an

Re: [Cryptography-dev] Using EC Point arithemtic in cryptography

2017-12-01 Thread John Pacific
Hey, Alex! Thanks for the response! I've been using the ECDH API for the scalar multiplication, but my last remaining need is for `BN_mod_inverse` and I can't seem to find anything on that quite yet. No pointers here, I guess? Thanks! -John On Fri, Dec 1, 2017 at 3:24 PM, Alex Gaynor wrote:

Re: [Cryptography-dev] Using EC Point arithemtic in cryptography

2017-12-01 Thread Alex Gaynor
Hi John, We don't have an API for doing raw EC point arithmetic. https://github.com/pyca/cryptography/pull/2919 is an issue proposing (and implementing) it, but I've been very hesitant to expand the API like this. Point multiplication can be accomplished with the ECDH API. Alex On Fri, Dec 1, 2

[Cryptography-dev] Using EC Point arithemtic in cryptography

2017-12-01 Thread John Pacific
Hey, folks! I'm working on prototyping this cryptosystem using cryptography. I'm porting it from Charm-crypto in Python to this. Charm crypto overrides some operators to perform scalar multiplication and modular inverses -- ie: `*` and `~`. When these operators are used with an EC element, it per