Botan  1.10.9
alg_id.h
Go to the documentation of this file.
1 /*
2 * Algorithm Identifier
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7 
8 #ifndef BOTAN_ALGORITHM_IDENTIFIER_H__
9 #define BOTAN_ALGORITHM_IDENTIFIER_H__
10 
11 #include <botan/asn1_int.h>
12 #include <botan/asn1_oid.h>
13 #include <string>
14 
15 namespace Botan {
16 
17 /**
18 * Algorithm Identifier
19 */
20 class BOTAN_DLL AlgorithmIdentifier : public ASN1_Object
21  {
22  public:
23  enum Encoding_Option { USE_NULL_PARAM };
24 
25  void encode_into(class DER_Encoder&) const;
26  void decode_from(class BER_Decoder&);
27 
29  AlgorithmIdentifier(const OID&, Encoding_Option);
30  AlgorithmIdentifier(const std::string&, Encoding_Option);
31 
33  AlgorithmIdentifier(const std::string&, const MemoryRegion<byte>&);
34 
37  };
38 
39 /*
40 * Comparison Operations
41 */
42 bool BOTAN_DLL operator==(const AlgorithmIdentifier&,
43  const AlgorithmIdentifier&);
44 bool BOTAN_DLL operator!=(const AlgorithmIdentifier&,
45  const AlgorithmIdentifier&);
46 
47 }
48 
49 #endif
bool operator!=(const OctetString &s1, const OctetString &s2)
Definition: symkey.cpp:106
bool operator==(const OctetString &s1, const OctetString &s2)
Definition: symkey.cpp:98
SecureVector< byte > parameters
Definition: alg_id.h:36