Source release 19.6.0

GitOrigin-RevId: 13a33e34413c19da1bfe76abcc66be519c9ac9d1
This commit is contained in:
Googler
2025-05-30 14:47:25 -07:00
committed by mattfedd
parent f7ec4fdeff
commit 6d36a0c93d
59 changed files with 3327 additions and 1491 deletions

View File

@@ -5,6 +5,7 @@
#define WVCDM_CORE_CRYPTO_WRAPPED_KEY_H_
#include <string>
#include <utility>
#include "wv_class_utils.h"
@@ -20,6 +21,8 @@ class CryptoWrappedKey {
WVCDM_DEFAULT_COPY_AND_MOVE(CryptoWrappedKey);
CryptoWrappedKey(Type type, const std::string& key)
: type_(type), key_(key) {}
CryptoWrappedKey(Type type, std::string&& key)
: type_(type), key_(std::move(key)) {}
Type type() const { return type_; }
void set_type(Type type) { type_ = type; }
@@ -28,6 +31,7 @@ class CryptoWrappedKey {
// Mutable reference getter for passing to OMECrypto.
std::string& key() { return key_; }
void set_key(const std::string& key) { key_ = key; }
void set_key(std::string&& key) { key_ = std::move(key); }
void Clear() {
type_ = kUninitialized;