[Cryptography-dev] ssh public key processing

2016-08-17 Thread Chris Hines
Hi List, I have a question about the function cryptography.hazmat.primatives.serialization.load_ssh_public_key Basically is the function inteornded to load only the public key or is it intended that it be able to process any like out of an authorized_keys_file Source code shows that the function

Re: [Cryptography-dev] ECDSA Interoperablity with Microsoft CNG-based peer

2016-08-17 Thread André Caron
For posterity, my two functions can be replaced with these: from cryptography.utils import int_from_bytes, int_to_bytes from cryptography.hazmat.primitives.asymmetric.utils import ( decode_dss_signature, encode_dss_signature, ) def decode_ieee_p1363_signature(data)

Re: [Cryptography-dev] ECDSA Interoperablity with Microsoft CNG-based peer

2016-08-17 Thread Paul Kehrer
On August 16, 2016 at 11:18:16 PM, AndrĂ© Caron ([email protected]) wrote: Hi Alex, However, I'm relying on cryptography internals to do this, which is definitely not desirable in the medium-long term. Know of a better way to do these conversions by relying only on public APIs? Not at t