diff options
Diffstat (limited to 'src/lib/libcrypto/des/ncbc_enc.c')
-rw-r--r-- | src/lib/libcrypto/des/ncbc_enc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/des/ncbc_enc.c b/src/lib/libcrypto/des/ncbc_enc.c index 3b681691a9..b8db07b199 100644 --- a/src/lib/libcrypto/des/ncbc_enc.c +++ b/src/lib/libcrypto/des/ncbc_enc.c | |||
@@ -89,7 +89,7 @@ void des_ncbc_encrypt(const unsigned char *in, unsigned char *out, long length, | |||
89 | c2l(in,tin1); | 89 | c2l(in,tin1); |
90 | tin0^=tout0; tin[0]=tin0; | 90 | tin0^=tout0; tin[0]=tin0; |
91 | tin1^=tout1; tin[1]=tin1; | 91 | tin1^=tout1; tin[1]=tin1; |
92 | des_encrypt((DES_LONG *)tin,schedule,DES_ENCRYPT); | 92 | des_encrypt1((DES_LONG *)tin,schedule,DES_ENCRYPT); |
93 | tout0=tin[0]; l2c(tout0,out); | 93 | tout0=tin[0]; l2c(tout0,out); |
94 | tout1=tin[1]; l2c(tout1,out); | 94 | tout1=tin[1]; l2c(tout1,out); |
95 | } | 95 | } |
@@ -98,7 +98,7 @@ void des_ncbc_encrypt(const unsigned char *in, unsigned char *out, long length, | |||
98 | c2ln(in,tin0,tin1,l+8); | 98 | c2ln(in,tin0,tin1,l+8); |
99 | tin0^=tout0; tin[0]=tin0; | 99 | tin0^=tout0; tin[0]=tin0; |
100 | tin1^=tout1; tin[1]=tin1; | 100 | tin1^=tout1; tin[1]=tin1; |
101 | des_encrypt((DES_LONG *)tin,schedule,DES_ENCRYPT); | 101 | des_encrypt1((DES_LONG *)tin,schedule,DES_ENCRYPT); |
102 | tout0=tin[0]; l2c(tout0,out); | 102 | tout0=tin[0]; l2c(tout0,out); |
103 | tout1=tin[1]; l2c(tout1,out); | 103 | tout1=tin[1]; l2c(tout1,out); |
104 | } | 104 | } |
@@ -116,7 +116,7 @@ void des_ncbc_encrypt(const unsigned char *in, unsigned char *out, long length, | |||
116 | { | 116 | { |
117 | c2l(in,tin0); tin[0]=tin0; | 117 | c2l(in,tin0); tin[0]=tin0; |
118 | c2l(in,tin1); tin[1]=tin1; | 118 | c2l(in,tin1); tin[1]=tin1; |
119 | des_encrypt((DES_LONG *)tin,schedule,DES_DECRYPT); | 119 | des_encrypt1((DES_LONG *)tin,schedule,DES_DECRYPT); |
120 | tout0=tin[0]^xor0; | 120 | tout0=tin[0]^xor0; |
121 | tout1=tin[1]^xor1; | 121 | tout1=tin[1]^xor1; |
122 | l2c(tout0,out); | 122 | l2c(tout0,out); |
@@ -128,7 +128,7 @@ void des_ncbc_encrypt(const unsigned char *in, unsigned char *out, long length, | |||
128 | { | 128 | { |
129 | c2l(in,tin0); tin[0]=tin0; | 129 | c2l(in,tin0); tin[0]=tin0; |
130 | c2l(in,tin1); tin[1]=tin1; | 130 | c2l(in,tin1); tin[1]=tin1; |
131 | des_encrypt((DES_LONG *)tin,schedule,DES_DECRYPT); | 131 | des_encrypt1((DES_LONG *)tin,schedule,DES_DECRYPT); |
132 | tout0=tin[0]^xor0; | 132 | tout0=tin[0]^xor0; |
133 | tout1=tin[1]^xor1; | 133 | tout1=tin[1]^xor1; |
134 | l2cn(tout0,tout1,out,l+8); | 134 | l2cn(tout0,tout1,out,l+8); |