EVP_RC2_CBC(3ossl)

πŸ’– EVP_RC2_CBC πŸ’–

okay bestie, welcome to the OpenSSL manual, page EVP_RC2_CBC(3ossl) β€” yes it's a whole page about the RC2 cipher and its lil EVP glow-up. grab a snack, we're doing this πŸ“

✨ NAME ✨

EVP_rc2_cbc, EVP_rc2_cfb, EVP_rc2_cfb64, EVP_rc2_ecb, EVP_rc2_ofb, EVP_rc2_40_cbc, EVP_rc2_64_cbc β€” it's giving EVP RC2 cipher πŸ’…

✨ SYNOPSIS ✨

#include <openssl/evp.h>

const EVP_CIPHER *EVP_rc2_cbc(void);
const EVP_CIPHER *EVP_rc2_cfb(void);
const EVP_CIPHER *EVP_rc2_cfb64(void);
const EVP_CIPHER *EVP_rc2_ecb(void);
const EVP_CIPHER *EVP_rc2_ofb(void);
const EVP_CIPHER *EVP_rc2_40_cbc(void);
const EVP_CIPHER *EVP_rc2_64_cbc(void);

🌸 DESCRIPTION 🌸

so basically: the RC2 encryption algorithm, but for EVP. main character energy, fr fr ✨

πŸ¦‹ EVP_rc2_cbc(), EVP_rc2_cfb(), EVP_rc2_cfb64(), EVP_rc2_ecb(), EVP_rc2_ofb()

These are the RC2 encryption algorithm in CBC, CFB, ECB and OFB modes respectively. no cap.

This is a variable key length cipher β€” it comes with an extra lil parameter called "effective key bits" or "effective key length". By default, both are set to 128 bits. default queen πŸ‘‘

πŸ¦‹ EVP_rc2_40_cbc(), EVP_rc2_64_cbc()

RC2 algorithm in CBC mode, but with a default key length <em>and</em> effective key length of 40 and 64 bits respectively. smol keys, bestie.

⚠️ WARNING: these functions are obsolete. like, deprecated-era, not it anymore 😭. Their usage should be replaced with the EVP_rc2_cbc(), EVP_CIPHER_CTX_set_key_length() and EVP_CIPHER_CTX_ctrl() functions to set the key length and effective key length. periodt.

πŸŽ€ NOTES πŸŽ€

Developers, listen up πŸ‘‚ β€” you should be aware of the negative performance implications of calling these functions multiple times, and you should consider using EVP_CIPHER_fetch(3) with EVP_CIPHER-RC2(7) instead. See "Performance" in crypto(7) for further information. iykyk 🫢


πŸ’œ RETURN VALUES πŸ’œ

These functions return an EVP_CIPHER structure that contains the implementation of the symmetric cipher. See EVP_CIPHER_meth_new(3) for details of the EVP_CIPHER structure. it's literally just handing you the goods 🎁


🌈 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>.


k that's the whole page bestie, you ate it πŸ’…βœ¨ this was 3.5.9, dated 2026-09-29, straight from the EVP_RC2_CBC(3ossl) corner of the OpenSSL universe. go forth and encrypt responsibly πŸ¦‹πŸ’–

πŸ“¦ where this page comes from