2 * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
10 #include "des_local.h"
11 #include <openssl/opensslv.h>
12 #include <openssl/bio.h>
15 const char *DES_options(void)
21 if (sizeof(DES_LONG) != sizeof(long))
22 OPENSSL_strlcpy(buf, "des(int)", sizeof(buf));
24 OPENSSL_strlcpy(buf, "des(long)", sizeof(buf));
30 void DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output,
31 DES_key_schedule *ks, int enc)
35 const unsigned char *in = &(*input)[0];
36 unsigned char *out = &(*output)[0];
42 DES_encrypt1(ll, ks, enc);
47 l = ll[0] = ll[1] = 0;