Well, a peek in another JOSE implementation seems to verify that this is an _implicit_ (understood) part of the specification:
https://bitbucket.org/b_c/jose4j/src/b782e9638a84431a58234b7258c2186da4e8189f/src/main/java/org/jose4j/keys/BigEndianBigInteger.java As a non-cryptographer I interpret this as: X and Y for EC public keys must always be positive and this is also the case for RSA public exponent and modulus. In an early version of an XML DSig implementation of mine I occasionally got run-time errors which was how I found out about ds:CryptoBinary... Anders On 2013-12-01 18:00, Anders Rundgren wrote: > Hi List > > Pardon a non-cryptographer, but does JWK have a counterpart to > http://www.w3.org/TR/xmldsig-core/#sec-CryptoBinary > ? > > If not, why? > > From what I can deduct the following implementation use CryptoBinary for both > EC and RSA public keys: > > https://bitbucket.org/nimbusds/nimbus-jose-jwt/src/6d6938b94f7a6051636bf654864a78b708fa392f/src/main/java/com/nimbusds/jose/util/BigIntegerUtils.java?at=master > > thanx, > Anders > _______________________________________________ jose mailing list [email protected] https://www.ietf.org/mailman/listinfo/jose
