monotone

monotone Mtn Source Tree

Root/botan/alg_id.h

1/*************************************************
2* Algorithm Identifier Header File *
3* (C) 1999-2007 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_ALGORITHM_IDENTIFIER_H__
7#define BOTAN_ALGORITHM_IDENTIFIER_H__
8
9#include <botan/asn1_int.h>
10#include <botan/asn1_oid.h>
11#include <string>
12
13namespace Botan {
14
15/*************************************************
16* Algorithm Identifier *
17*************************************************/
18class AlgorithmIdentifier : public ASN1_Object
19 {
20 public:
21 enum Encoding_Option { USE_NULL_PARAM };
22
23 void encode_into(class DER_Encoder&) const;
24 void decode_from(class BER_Decoder&);
25
26 AlgorithmIdentifier() {}
27 AlgorithmIdentifier(const OID&, Encoding_Option);
28 AlgorithmIdentifier(const std::string&, Encoding_Option);
29
30 AlgorithmIdentifier(const OID&, const MemoryRegion<byte>&);
31 AlgorithmIdentifier(const std::string&, const MemoryRegion<byte>&);
32
33 OID oid;
34 SecureVector<byte> parameters;
35 };
36
37}
38
39#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status