Hello community, here is the log from the commit of package ghc-jose for openSUSE:Factory checked in at 2017-06-22 10:38:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-jose (Old) and /work/SRC/openSUSE:Factory/.ghc-jose.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-jose" Thu Jun 22 10:38:05 2017 rev:2 rq:504082 version:0.5.0.4 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-jose/ghc-jose.changes 2017-05-09 18:15:53.400873374 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-jose.new/ghc-jose.changes 2017-06-22 10:38:05.501089687 +0200 @@ -1,0 +2,5 @@ +Wed May 31 14:01:07 UTC 2017 - psim...@suse.com + +- Update to version 0.5.0.4. + +------------------------------------------------------------------- Old: ---- jose-0.5.0.3.tar.gz New: ---- jose-0.5.0.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-jose.spec ++++++ --- /var/tmp/diff_new_pack.l2A7UH/_old 2017-06-22 10:38:06.097005676 +0200 +++ /var/tmp/diff_new_pack.l2A7UH/_new 2017-06-22 10:38:06.097005676 +0200 @@ -19,7 +19,7 @@ %global pkg_name jose %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.5.0.3 +Version: 0.5.0.4 Release: 0 Summary: Javascript Object Signing and Encryption and JSON Web Token library License: Apache-2.0 ++++++ jose-0.5.0.3.tar.gz -> jose-0.5.0.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jose-0.5.0.3/jose.cabal new/jose-0.5.0.4/jose.cabal --- old/jose-0.5.0.3/jose.cabal 2017-04-22 08:57:47.000000000 +0200 +++ new/jose-0.5.0.4/jose.cabal 2017-05-28 15:15:58.000000000 +0200 @@ -1,5 +1,5 @@ name: jose -version: 0.5.0.3 +version: 0.5.0.4 synopsis: Javascript Object Signing and Encryption and JSON Web Token library description: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jose-0.5.0.3/src/Crypto/JOSE/JWA/JWK.hs new/jose-0.5.0.4/src/Crypto/JOSE/JWA/JWK.hs --- old/jose-0.5.0.3/src/Crypto/JOSE/JWA/JWK.hs 2017-04-22 08:55:30.000000000 +0200 +++ new/jose-0.5.0.4/src/Crypto/JOSE/JWA/JWK.hs 2017-05-28 15:15:51.000000000 +0200 @@ -388,7 +388,7 @@ (Types.Base64Integer e) (Just (RSAPrivateKeyParameters (Types.Base64Integer d) opt))) | isJust (opt >>= rsaOth) = Left OtherPrimesNotSupported - | size < 2048 `div` 8 = Left KeySizeTooSmall + | n < 2 ^ (2040 :: Integer) = Left KeySizeTooSmall | otherwise = Right $ RSA.PrivateKey (RSA.PublicKey size n e) d (opt' rsaP) (opt' rsaQ) (opt' rsaDp) (opt' rsaDq) (opt' rsaQi) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jose-0.5.0.3/src/Crypto/JOSE/JWK.hs new/jose-0.5.0.4/src/Crypto/JOSE/JWK.hs --- old/jose-0.5.0.3/src/Crypto/JOSE/JWK.hs 2017-04-22 08:56:10.000000000 +0200 +++ new/jose-0.5.0.4/src/Crypto/JOSE/JWK.hs 2017-05-28 15:15:51.000000000 +0200 @@ -197,9 +197,9 @@ P_521 -> JWA.JWS.ES512 RSAKeyMaterial k -> let - Types.SizedBase64Integer size _ = view rsaN k + Types.SizedBase64Integer _ n = view rsaN k in - if size >= 2048 `div` 8 + if n >= 2 ^ (2040 :: Integer) then pure JWA.JWS.PS512 else throwError (review _KeySizeTooSmall ()) OctKeyMaterial (OctKeyParameters { octK = Types.Base64Octets k })