diff options
author | wtc%netscape.com <devnull@localhost> | 2002-05-17 21:29:27 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2002-05-17 21:29:27 +0000 |
commit | b28571d350b3899da7ef8c9d86bf02b1516d10d7 (patch) | |
tree | f8fdcb8c646b82f9e9dfe10703a9671faea53ba6 /security/nss/lib | |
parent | 5c08b40b41bdad0a2efde2c2e071bd48163020bc (diff) | |
download | nss-hg-b28571d350b3899da7ef8c9d86bf02b1516d10d7.tar.gz |
Bugzilla bug 145128: fixed a typo error in sec_pkcs5_rc4(). Also simplfied
two other similar constructs. r=relyea.
Diffstat (limited to 'security/nss/lib')
-rw-r--r-- | security/nss/lib/softoken/lowpbe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/nss/lib/softoken/lowpbe.c b/security/nss/lib/softoken/lowpbe.c index 51831b4db..c858e9719 100644 --- a/security/nss/lib/softoken/lowpbe.c +++ b/security/nss/lib/softoken/lowpbe.c @@ -867,7 +867,7 @@ sec_pkcs5_des(SECItem *key, SECItem *iv, SECItem *src, PRBool triple_des, encrypt); if(ctxt != NULL) { - rv = ((encrypt != PR_TRUE) ? DES_Decrypt : DES_Encrypt)( + rv = (encrypt ? DES_Encrypt : DES_Decrypt)( ctxt, dest->data, &dest->len, dup_src->len + 64, dup_src->data, dup_src->len); @@ -947,7 +947,7 @@ sec_pkcs5_rc2(SECItem *key, SECItem *iv, SECItem *src, PRBool dummy, NSS_RC2_CBC, key->len); if(ctxt != NULL) { - rv = ((encrypt != PR_TRUE) ? RC2_Decrypt : RC2_Encrypt)( + rv = (encrypt ? RC2_Encrypt: RC2_Decrypt)( ctxt, dest->data, &dest->len, dup_src->len + 64, dup_src->data, dup_src->len); @@ -1004,7 +1004,7 @@ sec_pkcs5_rc4(SECItem *key, SECItem *iv, SECItem *src, PRBool dummy_op, ctxt = RC4_CreateContext(key->data, key->len); if(ctxt) { - rv = ((encrypt != PR_FALSE) ? RC4_Decrypt : RC4_Encrypt)( + rv = (encrypt ? RC4_Encrypt : RC4_Decrypt)( ctxt, dest->data, &dest->len, src->len + 64, src->data, src->len); RC4_DestroyContext(ctxt, PR_TRUE); |