Update Simulcrypt ECMg

This commit is contained in:
Lu Chen
2020-07-24 18:17:12 -07:00
parent ed5a1d5db1
commit 785df31261
97 changed files with 3671 additions and 987 deletions

View File

@@ -11,6 +11,7 @@
#include <string>
#include "common/hash_algorithm.h"
#include "common/status.h"
namespace widevine {
@@ -23,11 +24,13 @@ Status GenerateAesSignature(const std::string& message,
const std::string& aes_key,
const std::string& aes_iv, std::string* signature);
// Generates a RSA signature of |message| using |private_key|.
// Signature is returned via |sigature| if generation was successful.
// Returns a Status that carries the details of error if generation failed.
// Generates a RSA signature of |message| using |private_key| and
// |hash_algorithm|. Signature is returned via |sigature| if generation was
// successful. Returns a Status that carries the details of error if generation
// failed.
Status GenerateRsaSignature(const std::string& message,
const std::string& private_key,
HashAlgorithm hash_algorithm,
std::string* signature);
} // namespace signature_util