Commit 45c5b11f authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

rsaenh: Constify some variables.

parent acd48e5b
......@@ -1450,7 +1450,7 @@ int des3_setup(const unsigned char *key, int keylen, int num_rounds, des3_key *d
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 @@ void des_ecb_encrypt(const unsigned char *pt, unsigned char *ct, des_key *des)
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 @@ void des_ecb_decrypt(const unsigned char *ct, unsigned char *pt, des_key *des)
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 @@ void des3_ecb_encrypt(const unsigned char *pt, unsigned char *ct, des3_key *des3
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment