rsaenh: Constify some variables (1 of 2)

Andrew Talbot andrew.talbot at talbotville.com
Wed Aug 22 16:09:02 CDT 2007


Changelog:
    rsaenh: Constify some variables.

diff -urN a/dlls/rsaenh/des.c b/dlls/rsaenh/des.c
--- a/dlls/rsaenh/des.c	2007-05-04 13:12:33.000000000 +0100
+++ b/dlls/rsaenh/des.c	2007-08-22 21:23:27.000000000 +0100
@@ -1450,7 +1450,7 @@
     return CRYPT_OK;
 }
 
-void des_ecb_encrypt(const unsigned char *pt, unsigned char *ct, des_key *des)
+void des_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const des_key *des)
 {
     ulong32 work[2];
     LOAD32H(work[0], pt+0);
@@ -1460,7 +1460,7 @@
     STORE32H(work[1],ct+4);
 }
 
-void des_ecb_decrypt(const unsigned char *ct, unsigned char *pt, des_key *des)
+void des_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const des_key *des)
 {
     ulong32 work[2];
     LOAD32H(work[0], ct+0);
@@ -1470,10 +1470,9 @@
     STORE32H(work[1],pt+4);
 }
 
-void des3_ecb_encrypt(const unsigned char *pt, unsigned char *ct, des3_key *des3)
+void des3_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const des3_key *des3)
 {
     ulong32 work[2];
-    
     LOAD32H(work[0], pt+0);
     LOAD32H(work[1], pt+4);
     desfunc(work, des3->ek[0]);
@@ -1483,7 +1482,7 @@
     STORE32H(work[1],ct+4);
 }
 
-void des3_ecb_decrypt(const unsigned char *ct, unsigned char *pt, des3_key *des3)
+void des3_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const des3_key *des3)
 {
     ulong32 work[2];
     LOAD32H(work[0], ct+0);



More information about the wine-patches mailing list