-
Notifications
You must be signed in to change notification settings - Fork 0
/
AESCipherOpenSSL.h
35 lines (27 loc) · 1017 Bytes
/
AESCipherOpenSSL.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* File: AESCipherOpenSSL.h
* Author: ph4r05
*
* Created on May 27, 2014, 10:53 AM
*/
#ifndef AESCIPHEROPENSSL_H
#define AESCIPHEROPENSSL_H
#include "base.h"
#include "ICipher.h"
#include <openssl/aes.h>
class AESCipherOpenSSL {
public:
AESCipherOpenSSL();
AESCipherOpenSSL(const AESCipherOpenSSL& orig);
virtual ~AESCipherOpenSSL();
virtual unsigned getId() const { return 0; }
virtual unsigned getInputBlockSize() { return AES_BLOCK_SIZE; };
virtual unsigned getOutputBlockSize() { return AES_BLOCK_SIZE; };
virtual unsigned getKeyBlockSize() { return AES_BLOCK_SIZE; };
virtual int setNumRounds(int rounds) { return -1; };
virtual int getNumRounds() const { return -1; }
virtual int evaluate(const unsigned char * input, unsigned char * output);
virtual int evaluate(const unsigned char * input, const unsigned char * key, unsigned char * output);
private:
};
#endif /* AESCIPHEROPENSSL_H */