2 * Ceph - scalable distributed file system
4 * Copyright (C) 2016 Mirantis, Inc.
6 * Author: Adam Kupczyk <akupczyk@mirantis.com>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
15 #ifndef CRYPTO_PLUGIN_H
16 #define CRYPTO_PLUGIN_H
18 // -----------------------------------------------------------------------------
19 #include "include/memory.h"
20 #include "common/PluginRegistry.h"
23 #include "crypto/crypto_accel.h"
24 // -----------------------------------------------------------------------------
26 class CryptoPlugin : public Plugin {
29 explicit CryptoPlugin(CephContext* cct) : Plugin(cct)
33 virtual int factory(CryptoAccelRef *cs,
34 std::ostream *ss) = 0;