#ifndef INCLUDED_BOBCAT_CRYPTBUF_
#define INCLUDED_BOBCAT_CRYPTBUF_

#include <openssl/ossl_typ.h>

#include <bobcat/eoibuf>

namespace FBB
{

class CryptBuf: public EoiBuf
{
    EVP_CIPHER const   *d_md;

    protected:
        CryptBuf(char const *type, size_t bufSize);

        EVP_CIPHER const *md() const;                               // .f
};

// static
inline EVP_CIPHER const *CryptBuf::md() const
{
    return d_md;
}

} // FBB        
#endif
