Skip to content

Commit 43dab11

Browse files
authored
Merge pull request #606 from paulej/paulej_minor_edits
Minor edits: unreached line of code, consistency, spelling
2 parents 2ff1fdc + c93b79f commit 43dab11

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

crypto/cipher/aes_icm_ossl.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ static srtp_err_status_t srtp_aes_icm_openssl_alloc(srtp_cipher_t **c,
169169
break;
170170
}
171171

172-
/* set key size */
172+
/* set key size */
173173
(*c)->key_len = key_len;
174174

175175
return srtp_err_status_ok;
@@ -258,8 +258,6 @@ static srtp_err_status_t srtp_aes_icm_openssl_context_init(void *cv,
258258

259259
if (!EVP_EncryptInit_ex(c->ctx, evp, NULL, key, NULL)) {
260260
return srtp_err_status_fail;
261-
} else {
262-
return srtp_err_status_ok;
263261
}
264262

265263
return srtp_err_status_ok;
@@ -290,9 +288,9 @@ static srtp_err_status_t srtp_aes_icm_openssl_set_iv(
290288

291289
if (!EVP_EncryptInit_ex(c->ctx, NULL, NULL, NULL, c->counter.v8)) {
292290
return srtp_err_status_fail;
293-
} else {
294-
return srtp_err_status_ok;
295291
}
292+
293+
return srtp_err_status_ok;
296294
}
297295

298296
/*

crypto/hash/hmac_ossl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
#define SHA1_DIGEST_SIZE 20
5757

58-
/* the debug module for authentiation */
58+
/* the debug module for authentication */
5959

6060
srtp_debug_module_t srtp_mod_hmac = {
6161
0, /* debugging is off by default */

0 commit comments

Comments
 (0)