Botan 1.10.17

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
28 AlgorithmIdentifier() {}
29 AlgorithmIdentifier(const OID&, Encoding_Option);
30 AlgorithmIdentifier(const std::string&, Encoding_Option);
31
32 AlgorithmIdentifier(const OID&, const MemoryRegion<byte>&);
33 AlgorithmIdentifier(const std::string&, const MemoryRegion<byte>&);
34
35 OID oid;
36 SecureVector<byte> parameters;
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
Botan::AlgorithmIdentifier::AlgorithmIdentifier
AlgorithmIdentifier()
Definition: alg_id.h:28
Botan::operator!=
bool operator!=(const OctetString &s1, const OctetString &s2)
Definition: symkey.cpp:106
Botan::ASN1_Object
Definition: asn1_int.h:56
Botan::operator==
bool operator==(const OctetString &s1, const OctetString &s2)
Definition: symkey.cpp:98
Botan::AlgorithmIdentifier::parameters
SecureVector< byte > parameters
Definition: alg_id.h:36
Botan::AlgorithmIdentifier::Encoding_Option
Encoding_Option
Definition: alg_id.h:23
Botan::DER_Encoder
Definition: der_enc.h:22
Botan::AlgorithmIdentifier::oid
OID oid
Definition: alg_id.h:35
Botan::MemoryRegion< byte >
Botan
Definition: algo_base.h:14
Botan::AlgorithmIdentifier
Definition: alg_id.h:20
Botan::SecureVector< byte >
Botan::OID
Definition: asn1_oid.h:20
Botan::BER_Decoder
Definition: ber_dec.h:19