DASH Media Packaging SDK
|
Rsa public key, used for signature verification and encryption. More...
#include <rsa_key.h>
Public Member Functions | |
bool | Encrypt (const std::string &clear_message, std::string *encrypted_message) |
bool | VerifySignature (const std::string &message, const std::string &signature) |
Static Public Member Functions | |
static RsaPublicKey * | Create (const std::string &serialized_key) |
Rsa public key, used for signature verification and encryption.
|
static |
Create an RsaPublicKey object using a DER encoded PKCS#1 RSAPublicKey.
Definition at line 180 of file rsa_key.cc.
bool shaka::media::RsaPublicKey::Encrypt | ( | const std::string & | clear_message, |
std::string * | encrypted_message | ||
) |
Encrypt a message using RSA-OAEP.
encrypted_message | must not be NULL. |
Definition at line 185 of file rsa_key.cc.
bool shaka::media::RsaPublicKey::VerifySignature | ( | const std::string & | message, |
const std::string & | signature | ||
) |
Verify RSASSA-PSS signature.
Definition at line 210 of file rsa_key.cc.