---
name: "libressl-EVP_des_cbc"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-EVP_des_cbc"
---

# libressl-EVP\_des\_cbc(3)

EVP DES cipher

## NAME

**EVP\_des\_cbc**, **EVP\_des\_cfb**, **EVP\_des\_cfb1**, **EVP\_des\_cfb8**, **EVP\_des\_cfb64**, **EVP\_des\_ecb**, **EVP\_des\_ofb**, **EVP\_des\_ede**, **EVP\_des\_ede\_cbc**, **EVP\_des\_ede\_cfb**, **EVP\_des\_ede\_cfb64**, **EVP\_des\_ede\_ecb**, **EVP\_des\_ede\_ofb**, **EVP\_des\_ede3**, **EVP\_des\_ede3\_cbc**, **EVP\_des\_ede3\_cfb**, **EVP\_des\_ede3\_cfb1**, **EVP\_des\_ede3\_cfb8**, **EVP\_des\_ede3\_cfb64**, **EVP\_des\_ede3\_ecb**, **EVP\_des\_ede3\_ofb**, **EVP\_desx\_cbc** – EVP DES cipher

## SYNOPSIS

Crypto Library (libcrypto, -lcrypto)

**#include \<openssl/evp.h\>**

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_cbc**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_cfb**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_cfb1**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_cfb8**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_cfb64**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ecb**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ofb**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede\_cbc**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede\_cfb**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede\_cfb64**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede\_ecb**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede\_ofb**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede3**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede3\_cbc**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede3\_cfb**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede3\_cfb1**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede3\_cfb8**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede3\_cfb64**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede3\_ecb**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_des\_ede3\_ofb**(*void*);

*const* *EVP\_CIPHER* *\**\

**EVP\_desx\_cbc**(*void*);

## DESCRIPTION

These functions provide the DES encryption algorithm in the evp(3) framework. DES is a block cipher operating on 64 bit blocks. The key length to be used for EVP\_EncryptInit(3) is 64 bits. However, only 56 of these bits are used in the encryption algorithm. The least significant bit in each of the eight bytes is only used for checking parity. Using this algorithm is discouraged because the short key length makes it vulnerable to brute force attacks.

**EVP\_des\_cbc**(), **EVP\_des\_cfb1**(), **EVP\_des\_cfb8**(), **EVP\_des\_cfb64**(), **EVP\_des\_ecb**(), and **EVP\_des\_ofb**() provide DES in CBC, CFB with 1-bit shift, CFB with 8-bit shift, CFB with 64-bit shift, ECB, and OFB modes. **EVP\_des\_cfb**() is an alias for **EVP\_des\_cfb64**(), implemented as a macro.

**EVP\_des\_ede\_cbc**(), **EVP\_des\_ede\_cfb64**(), **EVP\_des\_ede\_ecb**(), and **EVP\_des\_ede\_ofb**() provide two key triple DES in CBC, CFB with 64-bit shift, ECB, and OFB modes. **EVP\_des\_ede\_cfb**() is an alias for **EVP\_des\_ede\_cfb64**(), implemented as a macro. **EVP\_des\_ede**() is an alias for **EVP\_des\_ede\_ecb**().

**EVP\_des\_ede3\_cbc**(), **EVP\_des\_ede3\_cfb1**(), **EVP\_des\_ede3\_cfb8**(), **EVP\_des\_ede3\_cfb64**(), **EVP\_des\_ede3\_ecb**(), **EVP\_des\_ede3\_ofb**() provide three key triple DES in CBC, CFB with 1-bit shift, CFB with 8-bit shift, CFB with 64-bit shift, ECB, and OFB modes. **EVP\_des\_ede3\_cfb**() is an alias for **EVP\_des\_ede3\_cfb64**(), implemented as a macro. **EVP\_des\_ede3**() is an alias for **EVP\_des\_ede3\_ecb**().

**EVP\_desx\_cbc**() provides the DES-X encryption algorithm in CBC mode. It uses a key length of 128 bits and acts on blocks of 128 bits.

## RETURN VALUES

These functions return an *EVP\_CIPHER* structure that provides the implementation of the symmetric cipher.

## SEE ALSO

evp(3), EVP\_EncryptInit(3)

## HISTORY

**EVP\_des\_cbc**(), **EVP\_des\_cfb**(), **EVP\_des\_ecb**(), **EVP\_des\_ofb**(), **EVP\_des\_ede**(), **EVP\_des\_ede\_cbc**(), **EVP\_des\_ede\_cfb**(), **EVP\_des\_ede\_ofb**(), **EVP\_des\_ede3**(), **EVP\_des\_ede3\_cbc**(), **EVP\_des\_ede3\_cfb**(), and **EVP\_des\_ede3\_ofb**() first appeared in SSLeay 0.5.1. **EVP\_desx\_cbc**() first appeared in SSLeay 0.6.2. These functions have been available since OpenBSD 2.4.

**EVP\_des\_ede\_ecb**() and **EVP\_des\_ede3\_ecb**() first appeared in OpenSSL 0.9.7 and have been available since OpenBSD 3.2.

**EVP\_des\_cfb1**(), **EVP\_des\_cfb8**(), **EVP\_des\_cfb64**(), **EVP\_des\_ede\_cfb64**(), **EVP\_des\_ede3\_cfb1**(), **EVP\_des\_ede3\_cfb8**(), and **EVP\_des\_ede3\_cfb64**() first appeared in OpenSSL 0.9.7e and have been available since OpenBSD 3.8.
