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 ISAL_CRYPTO_ACCEL_H
16 #define ISAL_CRYPTO_ACCEL_H
17 #include "crypto/crypto_accel.h"
19 class ISALCryptoAccel : public CryptoAccel {
22 virtual ~ISALCryptoAccel() {}
24 bool cbc_encrypt(unsigned char* out, const unsigned char* in, size_t size,
25 const unsigned char (&iv)[AES_256_IVSIZE],
26 const unsigned char (&key)[AES_256_KEYSIZE]) override;
27 bool cbc_decrypt(unsigned char* out, const unsigned char* in, size_t size,
28 const unsigned char (&iv)[AES_256_IVSIZE],
29 const unsigned char (&key)[AES_256_KEYSIZE]) override;