Botan
1.10.9
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
block
rc6
rc6.h
Go to the documentation of this file.
1
/*
2
* RC6
3
* (C) 1999-2007 Jack Lloyd
4
*
5
* Distributed under the terms of the Botan license
6
*/
7
8
#ifndef BOTAN_RC6_H__
9
#define BOTAN_RC6_H__
10
11
#include <botan/block_cipher.h>
12
13
namespace
Botan
{
14
15
/**
16
* RC6, Ron Rivest's AES candidate
17
*/
18
class
BOTAN_DLL
RC6
:
public
Block_Cipher_Fixed_Params
<16, 1, 32>
19
{
20
public
:
21
void
encrypt_n(
const
byte
in[],
byte
out[],
size_t
blocks)
const
;
22
void
decrypt_n(
const
byte
in[],
byte
out[],
size_t
blocks)
const
;
23
24
void
clear
() {
zeroise
(S); }
25
std::string
name
()
const
{
return
"RC6"
; }
26
BlockCipher
*
clone
()
const
{
return
new
RC6
; }
27
28
RC6
() : S(44) {}
29
private
:
30
void
key_schedule(
const
byte
[],
size_t
);
31
32
SecureVector<u32bit>
S;
33
};
34
35
}
36
37
#endif
Botan::RC6
Definition:
rc6.h:18
Botan::RC6::clone
BlockCipher * clone() const
Definition:
rc6.h:26
Botan::byte
unsigned char byte
Definition:
types.h:22
Botan::RC6::clear
void clear()
Definition:
rc6.h:24
Botan
Definition:
algo_base.h:14
Botan::RC6::name
std::string name() const
Definition:
rc6.h:25
Botan::RC6::RC6
RC6()
Definition:
rc6.h:28
Botan::SecureVector< u32bit >
Botan::Block_Cipher_Fixed_Params
Definition:
block_cipher.h:104
Botan::zeroise
void zeroise(MemoryRegion< T > &vec)
Definition:
secmem.h:415
Botan::BlockCipher
Definition:
block_cipher.h:18
Generated on Sat Aug 20 2016 08:18:46 for Botan by
1.8.9.1