GMPEncryptedBufferDataImpl::GMPEncryptedBufferDataImpl(const GMPDecryptionData& aData) { mKeyId = aData.mKeyId(); mIV = aData.mIV(); mClearBytes = aData.mClearBytes(); mCipherBytes = aData.mCipherBytes(); MOZ_ASSERT(mClearBytes.Length() == mCipherBytes.Length()); }
void GMPEncryptedBufferDataImpl::RelinquishData(GMPDecryptionData& aData) { aData.mKeyId() = Move(mKeyId); aData.mIV() = Move(mIV); aData.mClearBytes() = Move(mClearBytes); aData.mCipherBytes() = Move(mCipherBytes); }
GMPEncryptedBufferDataImpl::GMPEncryptedBufferDataImpl(const GMPDecryptionData& aData) : mKeyId(aData.mKeyId()) , mIV(aData.mIV()) , mClearBytes(aData.mClearBytes()) , mCipherBytes(aData.mCipherBytes()) , mSessionIdList(aData.mSessionIds()) { MOZ_ASSERT(mClearBytes.Length() == mCipherBytes.Length()); }