Re: [Cryptography-dev] Raw ECDSA keypairs?

2017-09-15 Thread John Pacific
Awesome. Thanks, Alex. On Sep 15, 2017 16:15, "Alex Gaynor" wrote: > private_key.private_numbers() gives you an object with a `private_value` > attribute which is an integer. > > Alex > > On Fri, Sep 15, 2017 at 6:09 PM, John Pacific wrote: > >> Sorry, asking questions for remote people. >> I t

Re: [Cryptography-dev] Raw ECDSA keypairs?

2017-09-15 Thread Alex Gaynor
private_key.private_numbers() gives you an object with a `private_value` attribute which is an integer. Alex On Fri, Sep 15, 2017 at 6:09 PM, John Pacific wrote: > Sorry, asking questions for remote people. > I think he meant the actual numbers of the key pair. > > I found a class that does it

Re: [Cryptography-dev] Raw ECDSA keypairs?

2017-09-15 Thread John Pacific
Sorry, asking questions for remote people. I think he meant the actual numbers of the key pair. I found a class that does it in the API. I'm assuming, that I could probably convert it to the bytes representation of it by doing something along the lines of (presuming a 256bit curve a la secp256k1):

Re: [Cryptography-dev] Raw ECDSA keypairs?

2017-09-15 Thread Alex Gaynor
I'm not sure what you mean by "raw bytes", keys can be generated and serialized as documented here: https://cryptography.io/en/latest/hazmat/primitives/asymmetric/ec/#serialization Alex On Fri, Sep 15, 2017 at 3:11 PM, John Pacific wrote: > Hey there! > > Is there a good way to generate an ECDS

[Cryptography-dev] Raw ECDSA keypairs?

2017-09-15 Thread John Pacific
Hey there! Is there a good way to generate an ECDSA keypair and get the raw bytes of those keys? ___ Cryptography-dev mailing list Cryptography-dev@python.org https://mail.python.org/mailman/listinfo/cryptography-dev