EVP_DES_CBC(3ossl)

πŸ’– EVP_DES_CBC πŸ’–

ok so this is the EVP DES cipher page from the OpenSSL manual β€” it lives in section 3ossl and it's basically the whole DES family reunion. come sit with me bestie, we're going through every single one of these.


✨ 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_des_ede3_wrap β€” all of these are the EVP DES cipher. that's the whole squad, no gatekeeping. 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <openssl/evp.h>

const EVP_CIPHER *EVP_ciphername(void)

ok so EVP_ciphername is just a lil placeholder that stands in for any of the cipher functions described down below, like EVP_des_cbc for example. it's giving "insert your fave here". πŸ’…


🌸 DESCRIPTION 🌸

this is the DES encryption algorithm for EVP. periodt.

πŸ¦‹ EVP_des_cbc(), EVP_des_ecb(), EVP_des_cfb(), EVP_des_cfb1(), EVP_des_cfb8(), EVP_des_cfb64(), EVP_des_ofb()

DES in CBC, ECB, CFB with 64-bit shift, CFB with 1-bit shift, CFB with 8-bit shift and OFB modes. that's a lot of modes, she's versatile ✨

big important heads up bestie β€” none of these algorithms are provided by the OpenSSL default provider. to use them you literally have to load either the OpenSSL legacy provider or another implementation. no default-provider shortcuts, iykyk. 😭

πŸ¦‹ EVP_des_ede(), EVP_des_ede_cbc(), EVP_des_ede_cfb(), EVP_des_ede_cfb64(), EVP_des_ede_ecb(), EVP_des_ede_ofb()

two-key triple DES in ECB, CBC, CFB with 64-bit shift and OFB modes. two keys, still triple DES, still slaying. πŸ‘‘

πŸ¦‹ 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()

three-key triple DES in ECB, CBC, CFB with 64-bit shift, CFB with 1-bit shift, CFB with 8-bit shift and OFB modes. the whole mode buffet, main character energy fr fr. πŸ”₯

πŸ¦‹ EVP_des_ede3_wrap()

triple-DES key wrap according to RFC 3217 Section 3. yes she wraps, she's multi-talented. 🎁


⭐ NOTES ⭐

ok devs, listen up: you should be aware of the negative performance implications of calling these functions multiple times. so instead, consider using EVP_CIPHER_fetch(3) with EVP_CIPHER-DES(7) β€” much better vibe. for the full tea, see "Performance" in crypto(7). 🧚


πŸ’œ RETURN VALUES πŸ’œ

these functions return an EVP_CIPHER structure that contains the implementation of the symmetric cipher. wanna know what's inside that structure? see EVP_CIPHER_meth_new(3) for the details. it's all there, no mystery. πŸ’€


🌈 SEE ALSO 🌈


Copyright 2017-2023 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (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>.


and that's the whole page bestie, we ate and left no crumbs πŸ“βœ¨ this was version 3.5.9, dated 2026-09-29, straight from the OpenSSL crew β€” mwah, go encrypt something (responsibly, ideally not with plain DES, love u πŸ’–).

πŸ“¦ where this page comes from