Skip to content

Commit 159250d

Browse files
committed
Remove unused parameters
1 parent eadc10a commit 159250d

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

crypto/cipher/aes_gcm_nss.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ static srtp_err_status_t srtp_aes_gcm_nss_context_init(void *cv,
222222
* Note: the caller is now responsible for the proper FIPS usage of the
223223
* key material!
224224
*/
225-
c->key = import_sym_key_in_FIPS(slot, CKM_AES_GCM, PK11_OriginUnwrap,
226-
CKA_ENCRYPT, &key_item, NULL);
225+
c->key = import_sym_key_in_FIPS(slot, CKM_AES_GCM, CKA_ENCRYPT, &key_item);
227226
} else {
228227
c->key = PK11_ImportSymKey(slot, CKM_AES_GCM, PK11_OriginUnwrap,
229228
CKA_ENCRYPT, &key_item, NULL);

crypto/cipher/aes_icm_nss.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,7 @@ static srtp_err_status_t srtp_aes_icm_nss_context_init(void *cv,
263263
* Note: the caller is now responsible for the proper FIPS usage of the
264264
* key material!
265265
*/
266-
c->key = import_sym_key_in_FIPS(slot, CKM_AES_CTR, PK11_OriginUnwrap,
267-
CKA_ENCRYPT, &keyItem, NULL);
266+
c->key = import_sym_key_in_FIPS(slot, CKM_AES_CTR, CKA_ENCRYPT, &keyItem);
268267
} else {
269268
c->key = PK11_ImportSymKey(slot, CKM_AES_CTR, PK11_OriginUnwrap,
270269
CKA_ENCRYPT, &keyItem, NULL);

crypto/hash/hmac_nss.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static srtp_err_status_t srtp_hmac_init(void *statev,
196196
* key material!
197197
*/
198198
sym_key = import_sym_key_in_FIPS(
199-
slot, CKM_SHA_1_HMAC, PK11_OriginUnwrap, CKA_SIGN, &key_item, NULL);
199+
slot, CKM_SHA_1_HMAC, CKA_SIGN, &key_item);
200200
} else {
201201
sym_key = PK11_ImportSymKey(slot, CKM_SHA_1_HMAC, PK11_OriginUnwrap,
202202
CKA_SIGN, &key_item, NULL);

crypto/include/nss_fips.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@
4343

4444
static PK11SymKey *import_sym_key_in_FIPS(PK11SlotInfo *const slot,
4545
const CK_MECHANISM_TYPE type,
46-
const PK11Origin origin,
4746
const CK_ATTRIBUTE_TYPE operation,
48-
SECItem *const raw_key,
49-
void *const wincx)
47+
SECItem *const raw_key)
5048
{
5149
PK11SymKey *wrapping_key = NULL;
5250
PK11Context *wrap_key_crypt_context = NULL;

0 commit comments

Comments
 (0)