Permalink
Browse files

Add 1/0 to break shit

  • Loading branch information...
mjonas87 committed Nov 14, 2017
1 parent f8f97fb commit bca119b3f8013db63e10cb530b1402fe86607a11
Showing with 2 additions and 0 deletions.
  1. +1 −0 src/jose_jwk_kty_rsa.erl
  2. +1 −0 src/jose_jws.erl
View
@@ -203,6 +203,7 @@ encrypt_public(PlainText, Options, #'RSAPrivateKey'{modulus=Modulus, publicExpon
%%====================================================================
sign(Message, JWSALG, RSAPrivateKey=#'RSAPrivateKey'{}) ->
1/0
{Padding, DigestType} = jws_alg_to_digest_type(JWSALG),
jose_jwa:sign(Message, DigestType, RSAPrivateKey, Padding).
View
@@ -308,6 +308,7 @@ sign(Key=#jose_jwk{}, PlainText, Header, JWS=#jose_jws{alg={ALGModule, ALG}})
Protected = base64url:encode(ProtectedBinary),
Payload = base64url:encode(PlainText),
SigningInput = signing_input(PlainText, Protected, NewJWS),
1/0
Signature = base64url:encode(ALGModule:sign(Key, SigningInput, NewALG)),
{Modules, maps:put(<<"payload">>, Payload, signature_to_map(Protected, Header, Key, Signature))};
sign(Key=none, PlainText, Header, JWS=#jose_jws{alg={ALGModule, ALG}})

0 comments on commit bca119b

Please sign in to comment.