Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / crypto / isa-l / isal_crypto_accel.h
1 /*
2  * Ceph - scalable distributed file system
3  *
4  * Copyright (C) 2016 Mirantis, Inc.
5  *
6  * Author: Adam Kupczyk <akupczyk@mirantis.com>
7  *
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.
12  *
13  */
14
15 #ifndef ISAL_CRYPTO_ACCEL_H
16 #define ISAL_CRYPTO_ACCEL_H
17 #include "crypto/crypto_accel.h"
18
19 class ISALCryptoAccel : public CryptoAccel {
20  public:
21   ISALCryptoAccel() {}
22   virtual ~ISALCryptoAccel() {}
23
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;
30 };
31 #endif