directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: rev 55076 - incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/crypto
Date Tue, 19 Oct 2004 17:17:33 GMT
Author: erodriguez
Date: Tue Oct 19 10:17:33 2004
New Revision: 55076

Modified:
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/crypto/CryptoService.java
Log:
Updated API to align with RFC 1510 salt+passphrase concatenation order.

Modified: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/crypto/CryptoService.java
==============================================================================
--- incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/crypto/CryptoService.java
(original)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/crypto/CryptoService.java
Tue Oct 19 10:17:33 2004
@@ -85,8 +85,8 @@
 		return encryptionEngine.encrypt(plaintext, key.getKeyValue());
 	}
 
-	public EncryptionKey getEncryptionKey(String username, String password, String realm) {
-		DesStringToKey key = new DesStringToKey(username, password, realm);
+	public EncryptionKey getEncryptionKey(String password, String realm, String username) {
+		DesStringToKey key = new DesStringToKey(password, realm, username);
 		byte[] keyBytes = key.getKey();
 		return new EncryptionKey(EncryptionType.DES_CBC_MD5, keyBytes);
 	}

Mime
View raw message