libcryptosec
include
libcryptosec
SymmetricKeyGenerator.h
Go to the documentation of this file.
1
#ifndef SYMMETRICKEYGENERATOR_H_
2
#define SYMMETRICKEYGENERATOR_H_
3
4
#include <openssl/evp.h>
5
6
#include "
Random.h
"
7
#include "
SymmetricKey.h
"
8
9
#include <
libcryptosec/exception/RandomException.h
>
10
18
class
SymmetricKeyGenerator
19
{
20
21
public
:
22
29
static
SymmetricKey
*
generateKey
(
SymmetricKey::Algorithm
alg)
throw
(
RandomException
);
30
38
static
SymmetricKey
*
generateKey
(
SymmetricKey::Algorithm
alg,
int
size)
throw
(
RandomException
);
39
40
};
41
42
#endif
/*SYMMETRICKEYGENERATOR_H_*/
SymmetricKeyGenerator::generateKey
static SymmetricKey * generateKey(SymmetricKey::Algorithm alg)
Definition:
SymmetricKeyGenerator.cpp:3
RandomException
Definition:
RandomException.h:6
Random.h
SymmetricKey::Algorithm
Algorithm
Definition:
SymmetricKey.h:24
SymmetricKey.h
SymmetricKeyGenerator
Definition:
SymmetricKeyGenerator.h:18
SymmetricKey
Definition:
SymmetricKey.h:13
RandomException.h
Generated by
1.8.13