Botan
2.13.0
Crypto and TLS for C++11
Main Page
Namespaces
Classes
Files
File List
File Members
src
lib
prov
commoncrypto
commoncrypto_utils.h
Go to the documentation of this file.
1
/*
2
* Utils for calling CommonCrypto
3
* (C) 2018 Jose Pereira
4
*
5
* Botan is released under the Simplified BSD License (see license.txt)
6
*/
7
8
#ifndef BOTAN_INTERNAL_COMMONCRYPTO_UTILS_H_
9
#define BOTAN_INTERNAL_COMMONCRYPTO_UTILS_H_
10
11
#include <botan/key_spec.h>
12
13
#include <CommonCrypto/CommonCrypto.h>
14
15
namespace
Botan
{
16
17
class
Key_Length_Specification;
18
19
struct
CommonCryptor_Opts
20
{
21
CCAlgorithm
algo
;
22
CCMode
mode
;
23
CCPadding
padding
;
24
size_t
block_size
;
25
Key_Length_Specification
key_spec
{0};
26
};
27
28
CommonCryptor_Opts
commoncrypto_opts_from_algo
(
const
std::string& algo);
29
30
void
commoncrypto_adjust_key_size
(
const
uint8_t key[],
size_t
length,
31
const
CommonCryptor_Opts& opts, secure_vector<uint8_t>& full_key);
32
33
34
}
35
36
#endif
Botan::commoncrypto_opts_from_algo
CommonCryptor_Opts commoncrypto_opts_from_algo(const std::string &algo)
Definition:
commoncrypto_utils.cpp:52
Botan::CommonCryptor_Opts::algo
CCAlgorithm algo
Definition:
commoncrypto_utils.h:21
Botan::Key_Length_Specification
Definition:
key_spec.h:18
Botan::CommonCryptor_Opts::padding
CCPadding padding
Definition:
commoncrypto_utils.h:23
Botan::CommonCryptor_Opts::block_size
size_t block_size
Definition:
commoncrypto_utils.h:24
Botan::CommonCryptor_Opts::mode
CCMode mode
Definition:
commoncrypto_utils.h:22
Botan::CommonCryptor_Opts::key_spec
Key_Length_Specification key_spec
Definition:
commoncrypto_utils.h:25
Botan::CommonCryptor_Opts
Definition:
commoncrypto_utils.h:19
Botan
Definition:
alg_id.cpp:13
Botan::commoncrypto_adjust_key_size
void commoncrypto_adjust_key_size(const uint8_t key[], size_t length, const CommonCryptor_Opts &opts, secure_vector< uint8_t > &full_key)
Definition:
commoncrypto_utils.cpp:155
Generated on Mon Jan 13 2020 21:02:50 for Botan by
1.8.9.1