secblockfwd.h 867 B

1234567891011121314151617181920212223242526272829
  1. // secblockfwd.h - written and placed in the public domain by Jeffrey Walton
  2. /// \file secblockfwd.h
  3. /// \brief Forward declarations for SecBlock
  4. /// \details secblock.h and misc.h have a circular dependency. secblockfwd.h
  5. /// allows the library to sidestep the circular dependency, and reference
  6. /// SecBlock classes without the full implementation.
  7. /// \since Crypto++ 8.3
  8. #ifndef CRYPTOPP_SECBLOCKFWD_H
  9. #define CRYPTOPP_SECBLOCKFWD_H
  10. #include "config.h"
  11. NAMESPACE_BEGIN(CryptoPP)
  12. template <class T, class A>
  13. class SecBlock;
  14. template <class T, bool A>
  15. class AllocatorWithCleanup;
  16. typedef SecBlock<byte, AllocatorWithCleanup<byte, false> > SecByteBlock;
  17. typedef SecBlock<word, AllocatorWithCleanup<word, false> > SecWordBlock;
  18. typedef SecBlock<byte, AllocatorWithCleanup<byte, true> > AlignedSecByteBlock;
  19. NAMESPACE_END
  20. #endif // CRYPTOPP_SECBLOCKFWD_H