The rsa crypto class. More...

#include "murl_util_rsa.h"

Static Public Member Functions

static Data Encrypt (const ConstData &message, const String &publicKey)
 Encrypt data using a public key string. More...
 
static Data Encrypt (const ConstData &message, const ConstData &publicKey)
 Encrypt data using a public key data object. More...
 
static Data Decrypt (const ConstData &cypher, const String &privateKey)
 Decrypt data using a private key string. More...
 
static Data Decrypt (const ConstData &cypher, const ConstData &privateKey)
 Decrypt data using a private key data object. More...
 
static Data Sign (const ConstData &message, const String &privateKey)
 Sign data using a private key string. More...
 
static Data Sign (const ConstData &message, const ConstData &privateKey)
 Sign data using a private key data object. More...
 
static Data Verify (const ConstData &cypher, const String &publicKey)
 Verify data using a public key string. More...
 
static Data Verify (const ConstData &cypher, const ConstData &publicKey)
 Verify data using a public key data object. More...
 

Detailed Description

The rsa crypto class.

Member Function Documentation

◆ Encrypt() [1/2]

static Data Murl::Util::Rsa::Encrypt ( const ConstData message,
const String publicKey 
)
static

Encrypt data using a public key string.

Parameters
messageThe data object to encrypt.
publicKeyThe public key.
Returns
The encrypted data object.

◆ Encrypt() [2/2]

static Data Murl::Util::Rsa::Encrypt ( const ConstData message,
const ConstData publicKey 
)
static

Encrypt data using a public key data object.

Parameters
messageThe data object to encrypt.
publicKeyThe public key.
Returns
The encrypted data object.

◆ Decrypt() [1/2]

static Data Murl::Util::Rsa::Decrypt ( const ConstData cypher,
const String privateKey 
)
static

Decrypt data using a private key string.

Parameters
cypherThe data object to decrypt.
privateKeyThe private key.
Returns
The decrypted data object.

◆ Decrypt() [2/2]

static Data Murl::Util::Rsa::Decrypt ( const ConstData cypher,
const ConstData privateKey 
)
static

Decrypt data using a private key data object.

Parameters
cypherThe data object to decrypt.
privateKeyThe private key.
Returns
The decrypted data object.

◆ Sign() [1/2]

static Data Murl::Util::Rsa::Sign ( const ConstData message,
const String privateKey 
)
static

Sign data using a private key string.

Parameters
messageThe data object to sign.
privateKeyThe private key.
Returns
The signed data object.

◆ Sign() [2/2]

static Data Murl::Util::Rsa::Sign ( const ConstData message,
const ConstData privateKey 
)
static

Sign data using a private key data object.

Parameters
messageThe data object to sign.
privateKeyThe private key.
Returns
The signed data object.

◆ Verify() [1/2]

static Data Murl::Util::Rsa::Verify ( const ConstData cypher,
const String publicKey 
)
static

Verify data using a public key string.

Parameters
cypherThe data object to verify.
publicKeyThe public key.
Returns
The verified data object.

◆ Verify() [2/2]

static Data Murl::Util::Rsa::Verify ( const ConstData cypher,
const ConstData publicKey 
)
static

Verify data using a public key data object.

Parameters
cypherThe data object to verify.
publicKeyThe public key.
Returns
The verified data object.

The documentation for this class was generated from the following file:
  • murl_util_rsa.h


Copyright © 2011-2024 Spraylight GmbH.