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
15namespace Botan {
16
17/**
18* Algorithm Identifier
19*/
20class BOTAN_DLL AlgorithmIdentifier : public ASN1_Object
21 {
22 public:
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*/
42bool BOTAN_DLL operator==(const AlgorithmIdentifier&,
43 const AlgorithmIdentifier&);
44bool BOTAN_DLL operator!=(const AlgorithmIdentifier&,
45 const AlgorithmIdentifier&);
46
47}
48
49#endif
SecureVector< byte > parameters
Definition alg_id.h:36
bool operator!=(const OctetString &s1, const OctetString &s2)
Definition symkey.cpp:106
bool operator==(const OctetString &s1, const OctetString &s2)
Definition symkey.cpp:98