summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/des/ofb_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/des/ofb_enc.c')
-rw-r--r--src/lib/libcrypto/des/ofb_enc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/des/ofb_enc.c b/src/lib/libcrypto/des/ofb_enc.c
index 70493e632c..e887a3c6f4 100644
--- a/src/lib/libcrypto/des/ofb_enc.c
+++ b/src/lib/libcrypto/des/ofb_enc.c
@@ -64,8 +64,9 @@
64 * the second. The second 12 bits will come from the 3rd and half the 4th 64 * the second. The second 12 bits will come from the 3rd and half the 4th
65 * byte. 65 * byte.
66 */ 66 */
67void des_ofb_encrypt(const unsigned char *in, unsigned char *out, int numbits, 67void DES_ofb_encrypt(const unsigned char *in, unsigned char *out, int numbits,
68 long length, des_key_schedule schedule, des_cblock *ivec) 68 long length, DES_key_schedule *schedule,
69 DES_cblock *ivec)
69 { 70 {
70 register DES_LONG d0,d1,vv0,vv1,v0,v1,n=(numbits+7)/8; 71 register DES_LONG d0,d1,vv0,vv1,v0,v1,n=(numbits+7)/8;
71 register DES_LONG mask0,mask1; 72 register DES_LONG mask0,mask1;
@@ -101,7 +102,7 @@ void des_ofb_encrypt(const unsigned char *in, unsigned char *out, int numbits,
101 { 102 {
102 ti[0]=v0; 103 ti[0]=v0;
103 ti[1]=v1; 104 ti[1]=v1;
104 des_encrypt1((DES_LONG *)ti,schedule,DES_ENCRYPT); 105 DES_encrypt1((DES_LONG *)ti,schedule,DES_ENCRYPT);
105 vv0=ti[0]; 106 vv0=ti[0];
106 vv1=ti[1]; 107 vv1=ti[1];
107 c2ln(in,d0,d1,n); 108 c2ln(in,d0,d1,n);