0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Static Public Member Functions | List of all members
Hypertable::Crypto Class Reference

Provides cryptographic functions. More...

#include <Crypto.h>

Static Public Member Functions

static const string rsa_encrypt (const char *public_key, const string &message)
 Encrypts a message with RSA algorithm. More...
 
static const string rsa_decrypt (const char *private_key, const string &message)
 Decrypts a message with RSA algorithm. More...
 
static const string rsa_signature_encrypt (const char *key, bool key_is_public, const string &message)
 Computes RSA signature for message. More...
 
static const string rsa_signature_decrypt (const char *key, bool key_is_public, const string &signature)
 Recovers message from RSA signature. More...
 

Detailed Description

Provides cryptographic functions.

Definition at line 40 of file Crypto.h.

Member Function Documentation

const string Crypto::rsa_decrypt ( const char *  private_key,
const string &  message 
)
static

Decrypts a message with RSA algorithm.

Parameters
private_keyNULL terminated RSA private key string
messageMessage to decrypt
Returns
Decrypted message

Definition at line 123 of file Crypto.cc.

const string Crypto::rsa_encrypt ( const char *  public_key,
const string &  message 
)
static

Encrypts a message with RSA algorithm.

Parameters
public_keyNULL terminated RSA public key string
messageMessage to encrypt
Returns
Encrypted message

Definition at line 66 of file Crypto.cc.

const string Crypto::rsa_signature_decrypt ( const char *  key,
bool  key_is_public,
const string &  signature 
)
static

Recovers message from RSA signature.

Parameters
keyNULL terminated key string
key_is_publicFlag indicating if key is public key
signatureRSA signature of message to decrypt
Returns
Decrypted message

Definition at line 213 of file Crypto.cc.

const string Crypto::rsa_signature_encrypt ( const char *  key,
bool  key_is_public,
const string &  message 
)
static

Computes RSA signature for message.

Parameters
keyNULL terminated key string
key_is_publicFlag indicating if key is public key
messageMessage to encrypt RSA signature
Returns
Encrypted message

Definition at line 188 of file Crypto.cc.


The documentation for this class was generated from the following files: