Shaka Packager SDK
Loading...
Searching...
No Matches
packager
media
crypto
sample_aes_ec3_cryptor.h
1
// Copyright 2018 Google LLC. All rights reserved.
2
//
3
// Use of this source code is governed by a BSD-style
4
// license that can be found in the LICENSE file or at
5
// https://developers.google.com/open-source/licenses/bsd
6
7
#ifndef PACKAGER_MEDIA_CRYPTO_SAMPLE_AES_EC3_CRYPTOR_H_
8
#define PACKAGER_MEDIA_CRYPTO_SAMPLE_AES_EC3_CRYPTOR_H_
9
10
#include <cstddef>
11
#include <cstdint>
12
#include <memory>
13
#include <vector>
14
15
#include <packager/media/base/aes_cryptor.h>
16
17
namespace
shaka
{
18
namespace
media {
19
22
class
SampleAesEc3Cryptor
:
public
AesCryptor
{
23
public
:
27
explicit
SampleAesEc3Cryptor
(std::unique_ptr<AesCryptor> cryptor);
28
31
bool
InitializeWithIv
(
const
std::vector<uint8_t>& key,
32
const
std::vector<uint8_t>&
iv
)
override
;
34
35
private
:
36
SampleAesEc3Cryptor
(
const
SampleAesEc3Cryptor
&) =
delete
;
37
SampleAesEc3Cryptor
& operator=(
const
SampleAesEc3Cryptor
&) =
delete
;
38
39
// AesCryptor implementation overrides.
40
bool
CryptInternal(
const
uint8_t* text,
41
size_t
text_size,
42
uint8_t* crypt_text,
43
size_t
* crypt_text_size)
override
;
44
void
SetIvInternal()
override
;
45
46
std::unique_ptr<AesCryptor> cryptor_;
47
};
48
49
}
// namespace media
50
}
// namespace shaka
51
52
#endif
// PACKAGER_MEDIA_CRYPTO_SAMPLE_AES_EC3_CRYPTOR_H_
shaka::media::AesCryptor
Definition
aes_cryptor.h:25
shaka::media::AesCryptor::iv
const std::vector< uint8_t > & iv() const
Definition
aes_cryptor.h:86
shaka::media::SampleAesEc3Cryptor
Definition
sample_aes_ec3_cryptor.h:22
shaka::media::SampleAesEc3Cryptor::InitializeWithIv
bool InitializeWithIv(const std::vector< uint8_t > &key, const std::vector< uint8_t > &iv) override
Definition
sample_aes_ec3_cryptor.cc:77
shaka
All the methods that are virtual are virtual for mocking.
Definition
cpix_encryption_flags.cc:51
Generated on Mon Jul 27 2026 18:30:00 for Shaka Packager SDK by
1.9.8