#ifndef INCLUDED_BOBCAT_CRYPTBUF_
#define INCLUDED_BOBCAT_CRYPTBUF_

#include <openssl/evp.h>

#include <bobcat/exception>
#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 0;
}

} // FBB
#endif
