I made a stupid error in the decryption code which caused the decryption to fail on i686. Sumit found the bug out and the attached patch fixes it.
From d5934e29143db5d772da720b6789324dad9a05b3 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhro...@redhat.com>
Date: Thu, 9 Sep 2010 15:06:21 +0200
Subject: [PATCH] Fix parameter order when initializing decryption

---
 src/util/crypto/nss/nss_obfuscate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util/crypto/nss/nss_obfuscate.c b/src/util/crypto/nss/nss_obfuscate.c
index 69dbbf3..1c6eb1d 100644
--- a/src/util/crypto/nss/nss_obfuscate.c
+++ b/src/util/crypto/nss/nss_obfuscate.c
@@ -272,7 +272,7 @@ int sss_password_encrypt(TALLOC_CTX *mem_ctx, const char *password, int plen,
     }
 
     ret = nss_encrypt_decrypt_init(tmp_ctx, mech_props, true,
-                                   keybuf, ivbuf, &cctx);
+                                   ivbuf, keybuf, &cctx);
     if (ret) {
         goto done;
     }
-- 
1.7.2.2

_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to