AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CryptoStream.h
1
5#pragma once
6
7#include <aws/core/utils/crypto/CryptoBuf.h>
8#include <aws/core/Core_EXPORTS.h>
9
10namespace Aws
11{
12 namespace Utils
13 {
14 namespace Crypto
15 {
35 class AWS_CORE_API SymmetricCryptoStream : public Aws::IOStream
36 {
37 public:
43 SymmetricCryptoStream(Aws::IStream& src, CipherMode mode, SymmetricCipher& cipher, size_t bufLen = DEFAULT_BUF_SIZE);
49 SymmetricCryptoStream(Aws::OStream& sink, CipherMode mode, SymmetricCipher& cipher, size_t bufLen = DEFAULT_BUF_SIZE, int16_t blockOffset = 0 );
58
61
63
66
67
73 void Finalize();
74
75 private:
76 CryptoBuf* m_cryptoBuf;
77 bool m_hasOwnership;
78 };
79 }
80 }
81}
SymmetricCryptoStream(Aws::IStream &src, CipherMode mode, SymmetricCipher &cipher, size_t bufLen=DEFAULT_BUF_SIZE)
SymmetricCryptoStream(SymmetricCryptoStream &&)=delete
SymmetricCryptoStream(Aws::Utils::Crypto::SymmetricCryptoBufSrc &bufSrc)
SymmetricCryptoStream & operator=(const SymmetricCryptoStream &)=delete
SymmetricCryptoStream & operator=(SymmetricCryptoStream &&)=delete
SymmetricCryptoStream(Aws::Utils::Crypto::SymmetricCryptoBufSink &bufSink)
SymmetricCryptoStream(const SymmetricCryptoStream &)=delete
SymmetricCryptoStream(Aws::OStream &sink, CipherMode mode, SymmetricCipher &cipher, size_t bufLen=DEFAULT_BUF_SIZE, int16_t blockOffset=0)
std::basic_istream< char, std::char_traits< char > > IStream
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_ostream< char, std::char_traits< char > > OStream