Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
Remove set but not used variables
Browse files Browse the repository at this point in the history
  • Loading branch information
babelouest committed Feb 12, 2024
1 parent 93292b4 commit 0d0ccf0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/jwe.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,13 +972,10 @@ static json_t * _r_jwe_ecdh_encrypt(jwe_t * jwe, jwa_alg alg, jwk_t * jwk_pub, j
if (type & R_KEY_TYPE_EC) {
if (bits == 256) {
nettle_curve = nettle_get_secp_256r1();
crv_size = 32;
} else if (bits == 384) {
nettle_curve = nettle_get_secp_384r1();
crv_size = 48;
} else {
nettle_curve = nettle_get_secp_521r1();
crv_size = 64;
}

if (jwk_priv != NULL) {
Expand Down Expand Up @@ -1204,13 +1201,10 @@ static int _r_jwe_ecdh_decrypt(jwe_t * jwe, jwa_alg alg, jwk_t * jwk, int type,

if (bits == 256) {
nettle_curve = nettle_get_secp_256r1();
crv_size = 32;
} else if (bits == 384) {
nettle_curve = nettle_get_secp_384r1();
crv_size = 48;
} else {
nettle_curve = nettle_get_secp_521r1();
crv_size = 64;
}

key = r_jwk_get_property_str(jwk, "d");
Expand Down

0 comments on commit 0d0ccf0

Please sign in to comment.