CRYPTBUF(3bobcat)
π FBB::CryptBuf β from the bobcat manual, page cryptbuf(3bobcat) π
okay bestie, listen. this is the cryptbuf page from the bobcat man set, and it's literally the base class energy for DecryptBuf and EncryptBuf. let's get into it π«Ά
β¨ NAME β¨
FBB::CryptBuf β the std::streambuf-derived base class for DecryptBuf and EncryptBuf. it's giving "parent class that does the heavy lifting behind the scenes" π
πΈ SYNOPSIS πΈ
#include <bobcat/cryptbuf>
Linking option: -lbobcat -lcrypto
π¦ DESCRIPTION π¦
okay so real talk: this class is deprecated and it will be removed from Bobcat in a future release. no cap. π
it inherits from FBB::EoiBuf. so like, classes using CryptBuf can just use EoiBuf instead. that's the glow-up. β¨
CryptBuf's member EVP_CIPHER const *md() can be implemented like this:
#include <openssl/evp.h>
EVP_CIPHER const *md(char const *cipherName)
{
return EVP_CIPHER_fetch(0, cipherName, 0);
}
π NAMESPACE π
FBB
all constructors, members, operators and manipulators mentioned in this man-page are defined in the namespace FBB. periodt.
π INHERITS FROM π
EoiBuf (and thus from: std::streambuf)
π PROTECTED CONSTRUCTOR π
analogously to std::streambuf, only a protected constructor is available. so like, you can't just make one whenever. it's exclusive. iykyk. π
CryptBuf(char const *type, size_t bufSize)β the type is a null-terminated byte string specifying the de/encryption method. E.g.,aes-128-cbc. for an overview see theencryptbuf(3bobcat)man-page. the bufSize parameter defines the initial size of the internally used buffer (defined byEoiBuf). π§
copy and move constructors (and assignment operators) are not available. nope. not happening. π
β PROTECTED MEMBER FUNCTION β
all members of std:streambuf and EoiBuf are available, as FBB::CryptBuf inherits from these classes. main character inheritance energy fr fr.
EVP_CIPHER const *md() constβ a pointer to the cipher information is returned. that's it. that's the whole vibe. π
π FILES π
bobcat/cryptbuf β defines the class interface
π¦ SEE ALSO π¦
bobcat(7), eoibuf(3bobcat), eoi(3bobcat)
π BUGS π
this class is deprecated and will be removed from Bobcat in a future release. i said what i said. π
π₯ BOBCAT PROJECT FILES π₯
https://fbb-git.gitlab.io/bobcat/: gitlab project page;bobcat_6.04.00-x.dsc: detached signature;bobcat_6.04.00-x.tar.gz: source archive;bobcat_6.04.00-x_i386.changes: change log;libbobcat1_6.04.00-x_*.deb: debian package containing the libraries;libbobcat1-dev_6.04.00-x_*.deb: debian package containing the libraries, headers and manual pages;
π BOBCAT π
Bobcat is an acronym of `Brokkenβs Own Base Classes And Templatesβ. iconic, honestly. π
π COPYRIGHT π
this is free software, distributed under the terms of the GNU General Public License (GPL). slay. π«Ά
πΈ AUTHOR πΈ
Frank B. Brokken (f.b.brokken@rug.nl).
and that's the whole page bestie!! this was libbobcat-dev_6.04.00, dated 2005-2023, and it lives under FBB...tBuf(3bobcat) in the manual. mwah, go forth and de/encrypt responsibly π
β¨π
π¦ where this page comes from
- ubuntu noble: libbobcat-dev 6.04.00-1ubuntu3 Β· GPL-2.0-or-later WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms