iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iceberg::AesGcmInputFile Class Reference

An InputFile that decrypts an AGS1 file. More...

#include <aes_gcm_stream.h>

Inheritance diagram for iceberg::AesGcmInputFile:
iceberg::InputFile

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.
 

Detailed Description

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.

Member Function Documentation

◆ location()

std::string_view iceberg::AesGcmInputFile::location ( ) const
inlineoverridevirtual

File location represented by this handle.

Implements iceberg::InputFile.

◆ Open()

Result< std::unique_ptr< SeekableInputStream > > iceberg::AesGcmInputFile::Open ( )
overridevirtual

Open a new independent input stream.

Implements iceberg::InputFile.

◆ Size()

Result< int64_t > iceberg::AesGcmInputFile::Size ( ) const
overridevirtual

Return the total file size in bytes.

Implements iceberg::InputFile.


The documentation for this class was generated from the following file: