| * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. |
| * Licensed under the OpenSSL license (the "License"). You may not use |
| * this file except in compliance with the License. You can obtain a copy |
| * in the file LICENSE in the source distribution or at |
| * https://www.openssl.org/source/license.html |
| void DES_pcbc_encrypt(const unsigned char *input, unsigned char *output, |
| long length, DES_key_schedule *schedule, |
| DES_cblock *ivec, int enc) |
| register DES_LONG sin0, sin1, xor0, xor1, tout0, tout1; |
| for (; length > 0; length -= 8) { |
| c2ln(in, sin0, sin1, length); |
| DES_encrypt1((DES_LONG *)tin, schedule, DES_ENCRYPT); |
| for (; length > 0; length -= 8) { |
| DES_encrypt1((DES_LONG *)tin, schedule, DES_DECRYPT); |
| l2cn(tout0, tout1, out, length); |
| sin0 = sin1 = xor0 = xor1 = tout0 = tout1 = 0; |