|
iceberg-cpp
|
An InputFile that decrypts an AGS1 file. More...
#include <aes_gcm_stream.h>
Public Member Functions | |
| AesGcmInputFile (std::unique_ptr< InputFile > source, std::vector< uint8_t > key, std::vector< uint8_t > aad_prefix, int64_t encrypted_length) | |
| std::string_view | location () const override |
| File location represented by this handle. | |
| Result< int64_t > | Size () const override |
| Return the total file size in bytes. | |
| Result< std::unique_ptr< SeekableInputStream > > | Open () override |
| Open a new independent input stream. | |
An InputFile that decrypts an AGS1 file.
The encrypted length must come from a trusted source (the key metadata), so that truncation of the file is detected.
|
inlineoverridevirtual |
File location represented by this handle.
Implements iceberg::InputFile.
|
overridevirtual |
Open a new independent input stream.
Implements iceberg::InputFile.
|
overridevirtual |
Return the total file size in bytes.
Implements iceberg::InputFile.