EVP_CIPHER-CAST β The CAST EVP_CIPHER implementations
| Use Case | Command | Description |
|---|---|---|
| π Encrypt with CAST-128-CBC | EVP_CIPHER_fetch(NULL, "CAST-128-CBC", NULL) |
Obtain a CAST-128 cipher in CBC mode (64βbit block, 128βbit key) |
| π Encrypt with CAST-192-CBC | EVP_CIPHER_fetch(NULL, "CAST-192-CBC", NULL) |
CAST cipher with 192βbit key, CBC mode |
| π Encrypt with CAST-256-CBC | EVP_CIPHER_fetch(NULL, "CAST-256-CBC", NULL) |
CAST cipher with 256βbit key, CBC mode (128βbit block) |
| π Use CFB mode | EVP_CIPHER_fetch(NULL, "CAST-128-CFB", NULL) |
CAST-128 in CFB (cipher feedback) mode |
| π Use ECB mode | EVP_CIPHER_fetch(NULL, "CAST-128-ECB", NULL) |
CAST-128 in ECB (electronic codebook) mode |
| π Use OFB mode | EVP_CIPHER_fetch(NULL, "CAST-128-OFB", NULL) |
CAST-128 in OFB (output feedback) mode |
| π§ Access parameters | EVP_CIPHER_CTX_get_params() |
Retrieve cipher parameters (key size, IV length, etc.) |
| π§ Set parameters | EVP_CIPHER_CTX_set_params() |
Set cipher parameters (e.g., custom key length) |
| π¦ Load legacy provider | OSSL_PROVIDER_load(NULL, "legacy") |
CAST algorithms are only available in the legacy provider |
Support for CAST symmetric encryption using the EVP_CIPHER API.
The following algorithms are available in the legacy provider:
CAST-128-CBC, CAST-192-CBC and CAST-256-CBCCAST-128-CFB, CAST-192-CFB, CAST-256-CFBCAST-128-ECB, CAST-192-ECB and CAST-256-ECBCAST-192-OFB, CAST-128-OFB and CAST-256-OFBThis implementation supports the parameters described in PARAMETERS in EVP_EncryptInit(3).
Copyright 2021 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.
3.0.2 β 2026-06-02 β EVP_CIPHER-CAST(7SSL)
```Generated by phpman v4.9.26-1-g511901d Author: Che Dong Under GNU General Public License
2026-08-07 01:57 @216.73.216.207
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format