DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Static Public Member Functions | List of all members
shaka::media::RsaPrivateKey Class Reference

Rsa private key, used for message signing and decryption. More...

#include <rsa_key.h>

Public Member Functions

bool Decrypt (const std::string &encrypted_message, std::string *decrypted_message)
 
bool GenerateSignature (const std::string &message, std::string *signature)
 

Static Public Member Functions

static RsaPrivateKeyCreate (const std::string &serialized_key)
 

Detailed Description

Rsa private key, used for message signing and decryption.

Definition at line 24 of file rsa_key.h.

Member Function Documentation

RsaPrivateKey * shaka::media::RsaPrivateKey::Create ( const std::string &  serialized_key)
static

Create an RsaPrivateKey object using a DER encoded PKCS#1 RSAPrivateKey.

Returns
The created RsaPrivateKey object on success, NULL otherwise.

Definition at line 97 of file rsa_key.cc.

bool shaka::media::RsaPrivateKey::Decrypt ( const std::string &  encrypted_message,
std::string *  decrypted_message 
)

Decrypt a message using RSA-OAEP.

Parameters
decrypted_messagemust not be NULL.
Returns
true if successful, false otherwise.

Definition at line 102 of file rsa_key.cc.

bool shaka::media::RsaPrivateKey::GenerateSignature ( const std::string &  message,
std::string *  signature 
)

Generate RSASSA-PSS signature.

Parameters
signaturemust not be NULL.
Returns
true if successful, false otherwise.

Definition at line 130 of file rsa_key.cc.


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