CRYPTBUF(3bobcat)

πŸ“¦
version 6.04.00 Β· 4 versions
, in ubuntu noble

πŸ’– 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 the encryptbuf(3bobcat) man-page. the bufSize parameter defines the initial size of the internally used buffer (defined by EoiBuf). 🧚

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


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