Classes | |
| class | RSAPublicKey | 
| public key suitable for encrypting  More... | |
| class | RSAKey | 
| private/public key pair.  More... | |
| class | DESKey | 
| fast symmetric encryption  More... | |
Typedefs | |
| typedef std::vector< byte_t > | byte_vec_t | 
Functions | |
| static void | initializeDecoding (void) throw () | 
| static void | encodeInt32 (IO std::string &out, IN int32_t l) | 
| static int32_t | decodeInt32 (IN const char *p) | 
| static long | symmetricEncrypt (IN const byte_t *input, IN long bytes, IN DES_key_schedule *ks, IN int flag, OUT byte_vec_t &output) | 
| void | decodeBase64 (IN const char *encoded, OUT byte_vec_t &data) | 
Variables | |
| static const int | s_keyNumber = 1536 | 
| static const long | s_keyExponent = 65537 | 
| static const int | s_padding = RSA_PKCS1_OAEP_PADDING | 
| static const int32_t | s_maxEncodeLength = 0x007FFFFFF | 
| static const int | s_bytesPerDESBlock = 8 | 
| static char | s_base64encode [65] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" | 
| static int | s_base64decode [128] | 
| 
 | |
| typedef std::vector< byte_t > | vec_byte_t | 
| std::string | getSHA1 (IN const char *data) | 
| quick one-way encryption (SHA1 algorithm, see http://en.wikipedia.org/wiki/SHA-1)   | |
| std::string | encodeBase64 (IN const byte_t *data, IN long bytes, IN bool encodeLength=true) | 
| given binary data, encode into base64 ascii string   | |
| void | decodeBase64 (IN const char *base64, OUT vec_byte_t &data) | 
| given base64 ascii string, decode into byte array   | |
| typedef std::vector<byte_t> crypto::byte_vec_t | 
Definition at line 48 of file wave-crypto.cpp.
| static void crypto::initializeDecoding | ( | void | ) |   throw () [static] | 
        
Definition at line 71 of file wave-crypto.cpp.
| static void crypto::encodeInt32 | ( | IO std::string & | out, | |
| IN int32_t | l | |||
| ) |  [static] | 
        
Definition at line 94 of file wave-crypto.cpp.
| static int32_t crypto::decodeInt32 | ( | IN const char * | p | ) |  [static] | 
        
Definition at line 118 of file wave-crypto.cpp.
| static long crypto::symmetricEncrypt | ( | IN const byte_t * | input, | |
| IN long | bytes, | |||
| IN DES_key_schedule * | ks, | |||
| IN int | flag, | |||
| OUT byte_vec_t & | output | |||
| ) |  [static] | 
        
Definition at line 158 of file wave-crypto.cpp.
| void crypto::decodeBase64 | ( | IN const char * | encoded, | |
| OUT byte_vec_t & | data | |||
| ) | 
Definition at line 862 of file wave-crypto.cpp.
const int crypto::s_keyNumber = 1536 [static] | 
        
Definition at line 40 of file wave-crypto.cpp.
const long crypto::s_keyExponent = 65537 [static] | 
        
Definition at line 41 of file wave-crypto.cpp.
const int crypto::s_padding = RSA_PKCS1_OAEP_PADDING [static] | 
        
Definition at line 42 of file wave-crypto.cpp.
const int32_t crypto::s_maxEncodeLength = 0x007FFFFFF [static] | 
        
Definition at line 44 of file wave-crypto.cpp.
const int crypto::s_bytesPerDESBlock = 8 [static] | 
        
Definition at line 46 of file wave-crypto.cpp.
char crypto::s_base64encode[65] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" [static] | 
        
Definition at line 57 of file wave-crypto.cpp.
int crypto::s_base64decode[128] [static] | 
        
Definition at line 60 of file wave-crypto.cpp.
 1.7.1