scclib
Stable Cloud Computing C++ Library
Static Public Member Functions | List of all members
scc::crypto::EcParametersCert Struct Reference

From: https://tools.ietf.org/html/rfc3279#section-2.3.5. More...

#include <cert.h>

Static Public Member Functions

static void parse (const BasePtr &, KeyAlgoType &)
 Parse from an object id. More...
 
static void parse (const DerDocument &doc, KeyAlgoType &alg)
 
static BasePtr dump (const KeyAlgoType &)
 Dump to an object id. More...
 

Detailed Description

From: https://tools.ietf.org/html/rfc3279#section-2.3.5.

EcpkParameters ::= CHOICE { ecParameters ECParameters, namedCurve OBJECT IDENTIFIER, implicitlyCA NULL }

This implementation supports only named curves.

PEM certficate format: --—BEGIN EC PARAMETERS--— <namedCurve>

Definition at line 209 of file cert.h.

Member Function Documentation

◆ dump()

BasePtr EcParametersCert::dump ( const KeyAlgoType algo)
static

Dump to an object id.

Key algorithm must be an ecdsa type.

Definition at line 326 of file cert.cc.

◆ parse()

void EcParametersCert::parse ( const BasePtr &  b,
KeyAlgoType algo 
)
static

Parse from an object id.

Throws an exception if not an object id. Sets the key algorithm to an ecdsa or unknown type.

Definition at line 313 of file cert.cc.


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