Botan  1.11.15
Public Member Functions | Friends
Botan::Cert_Extension::Subject_Key_ID Class Reference

#include <x509_ext.h>

Inheritance diagram for Botan::Cert_Extension::Subject_Key_ID:
Botan::Certificate_Extension

List of all members.

Public Member Functions

Subject_Key_IDcopy () const
std::vector< byteget_key_id () const
OID oid_of () const
 Subject_Key_ID ()
 Subject_Key_ID (const std::vector< byte > &)

Friends

class Extensions

Detailed Description

Subject Key Identifier Extension

Definition at line 136 of file x509_ext.h.


Constructor & Destructor Documentation

Definition at line 141 of file x509_ext.h.

{}
Botan::Cert_Extension::Subject_Key_ID::Subject_Key_ID ( const std::vector< byte > &  pub_key)

Definition at line 312 of file x509_ext.cpp.

References Botan::Buffered_Computation::process(), and Botan::unlock().

   {
   SHA_160 hash;
   key_id = unlock(hash.process(pub_key));
   }

Member Function Documentation

Make a copy of this extension

Returns:
copy of this

Implements Botan::Certificate_Extension.

Definition at line 139 of file x509_ext.h.

{ return new Subject_Key_ID(key_id); }

Definition at line 144 of file x509_ext.h.

{ return key_id; }
Returns:
OID representing this extension

Definition at line 74 of file x509_ext.cpp.

References Botan::OIDS::lookup(), and Botan::Certificate_Extension::oid_name().

Referenced by Botan::Extensions::encode_into().

   {
   return OIDS::lookup(oid_name());
   }

Friends And Related Function Documentation

friend class Extensions [friend, inherited]

Definition at line 51 of file x509_ext.h.


The documentation for this class was generated from the following files: