CMS_ENCRYPTEDDATA_SET1_KEY(3ossl)
π
CMS_EncryptedData_set1_key β the 3ossl manual page β¨
β¨ NAME β¨
CMS_EncryptedData_set1_key β sets the cipher and key for CMS EncryptedData. thatβs literally the whole assignment, bestie π
π SYNOPSIS π
#include <openssl/cms.h>
int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph,
const unsigned char *key, size_t keylen);
π DESCRIPTION π
okay so CMS_EncryptedData_set1_key() takes in a cms EncryptedData object and sets the appropriate attributes to ciph. it also makes a copy of the symmetric key of size keylen. π«Ά
π¨ real talk: AEAD cipher algorithms are not supported. do not try it, bestie β that is not the vibe. π
πΈ RETURN VALUES πΈ
CMS_EncryptedData_set1_key() returns 0 if an error occurred; otherwise it returns 1. so: 0 = nope, error π and 1 = slay, good to go β
π¦ SEE ALSO π¦
go read these next, bestie:
π COPYRIGHT π
Copyright 2025 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>.
π thatβs the page, bestie. this one is from OpenSSL 3.5.6, dated 2026-04-07 β mwah, bye! π«Ά
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms