DASH Media Packaging SDK
|
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 RsaPrivateKey * | Create (const std::string &serialized_key) |
|
static |
Create an RsaPrivateKey object using a DER encoded PKCS#1 RSAPrivateKey.
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.
decrypted_message | must not be NULL. |
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.
signature | must not be NULL. |
Definition at line 130 of file rsa_key.cc.