All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AlgorithmIdentifier.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2024 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 
6 #ifndef PDFTRON_H_CPPCryptoAlgorithmIdentifier
7 #define PDFTRON_H_CPPCryptoAlgorithmIdentifier
8 #include <C/Crypto/TRN_AlgorithmIdentifier.h>
9 
10 #include <Common/BasicTypes.h>
11 #include <Crypto/AlgorithmParams.h>
12 
13 namespace pdftron { namespace Crypto {
14 
15 
21 {
22 public:
26 
33 
40 
46  AlgorithmIdentifier(const DigestAlgorithm::Type digest_algorithm_type);
47 
55 
62  AlgorithmIdentifier(const ObjectIdentifier& oid, const AlgorithmParams& params);
63 
70  AlgorithmIdentifier(const DigestAlgorithm::Type digest_algorithm_type, const AlgorithmParams& params);
71 
72 #ifdef SWIG
74 #endif
75 
76 #ifndef SWIGHIDDEN
77  AlgorithmIdentifier(TRN_AlgorithmIdentifier impl);
78  TRN_AlgorithmIdentifier m_impl;
79 #endif
80 
81 private:
82 
83  void Destroy();
84 
85 #ifndef SWIGHIDDEN
86  mutable bool m_owner;
87 #endif
88 };
89 
90 #include <Impl/AlgorithmIdentifier.inl>
91 } //end pdftron
92 } //end Crypto
93 
94 
95 #endif //PDFTRON_H_CPPCryptoAlgorithmIdentifier
AlgorithmIdentifier(const AlgorithmIdentifier &other)
AlgorithmIdentifier & operator=(const AlgorithmIdentifier &other)