Skip to content
Implements JWK,JWS,JWE specifications using python-cryptography
Branch: master
Clone or download
simo5 Fix encoding length of EC keys Coordinates
According to RFC 7518 the Coordinates need to be encoded such
that the size of the encoded string is fixed (based on private curve
key_size). Fix _encode_int to take in account the bit_size given
python-cryptography gives us python integers and that may lead to
truncation of leading zeros when doing the conversion via hex().

Fixes: #158

Signed-off-by: Simo Sorce <>
Latest commit 437ea86 Jun 6, 2019

Build Status


An implementation of the JOSE Working Group documents: RFC 7515 - JSON Web Signature (JWS) RFC 7516 - JSON Web Encryption (JWE) RFC 7517 - JSON Web Key (JWK) RFC 7518 - JSON Web Algorithms (JWA) RFC 7519 - JSON Web Token (JWT) RFC 7520 - Examples of Protecting Content Using JSON Object Signing and Encryption (JOSE)


You can’t perform that action at this time.