svn rev #24698: trunk/src/lib/crypto/nss/enc_provider/
ghudson@MIT.EDU
ghudson at MIT.EDU
Thu Mar 10 23:17:42 EST 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=24698
Commit By: ghudson
Log Message:
Fix a couple of key import modes in the NSS module, although they don't
seem to matter a lot.
Changed Files:
U trunk/src/lib/crypto/nss/enc_provider/camellia.c
U trunk/src/lib/crypto/nss/enc_provider/des3.c
Modified: trunk/src/lib/crypto/nss/enc_provider/camellia.c
===================================================================
--- trunk/src/lib/crypto/nss/enc_provider/camellia.c 2011-03-09 21:50:47 UTC (rev 24697)
+++ trunk/src/lib/crypto/nss/enc_provider/camellia.c 2011-03-11 04:17:42 UTC (rev 24698)
@@ -71,7 +71,7 @@
{
krb5_error_code ret;
- ret = k5_nss_gen_import(key, CKM_CAMELLIA_CBC, CKA_DECRYPT);
+ ret = k5_nss_gen_import(key, CKM_CAMELLIA_CBC, CKA_ENCRYPT);
if (ret != 0)
return ret;
return k5_nss_gen_cbcmac_iov(key, CKM_CAMELLIA_CBC, ivec, data, num_data,
Modified: trunk/src/lib/crypto/nss/enc_provider/des3.c
===================================================================
--- trunk/src/lib/crypto/nss/enc_provider/des3.c 2011-03-09 21:50:47 UTC (rev 24697)
+++ trunk/src/lib/crypto/nss/enc_provider/des3.c 2011-03-11 04:17:42 UTC (rev 24698)
@@ -55,7 +55,7 @@
{
krb5_error_code ret;
- ret = k5_nss_gen_import(key, CKM_DES3_CBC, CKA_ENCRYPT);
+ ret = k5_nss_gen_import(key, CKM_DES3_CBC, CKA_DECRYPT);
if (ret != 0)
return ret;
return k5_nss_gen_block_iov(key, CKM_DES3_CBC, CKA_DECRYPT,
More information about the cvs-krb5
mailing list