Skip to content

Commit bedf0d1

Browse files
committed
Formatting changes for else statements
1 parent a233201 commit bedf0d1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/wp_rsa_sig.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,11 +1221,13 @@ static int wp_rsa_verify_x931(wp_RsaSigCtx* ctx, const unsigned char* sig,
12211221
rc = mp_read_unsigned_bin(&toMp, decryptedSig, (int)sigLen);
12221222
if (rc != MP_OKAY) {
12231223
ok = 0;
1224-
} else {
1224+
}
1225+
else {
12251226
rc = mp_sub(&(wp_rsa_get_key(ctx->rsa)->n), &toMp, &nMinusTo);
12261227
if (rc != MP_OKAY) {
12271228
ok = 0;
1228-
} else {
1229+
}
1230+
else {
12291231
rc = mp_to_unsigned_bin(&nMinusTo, decryptedSig);
12301232
if (rc != MP_OKAY) {
12311233
ok = 0;
@@ -1241,7 +1243,8 @@ static int wp_rsa_verify_x931(wp_RsaSigCtx* ctx, const unsigned char* sig,
12411243
rc = wp_remove_x931_padding(&unpadded, decryptedSig, len);
12421244
if (rc <= 0) {
12431245
ok = 0;
1244-
} else {
1246+
}
1247+
else {
12451248
XMEMCPY(decryptedSig, unpadded, rc);
12461249
rc--;
12471250
}

0 commit comments

Comments
 (0)