NetBurner 3.5.6
PDF Version
PEM Data Type Identifiers

Return values indicating the type of PEM data that was converted. More...

Macros

#define CONVERT_NONE   (0)
 No valid PEM data found or conversion failed.
 
#define CONVERT_RSA_PRIVATE_KEY   (1)
 RSA Private Key in PKCS#1 format.
 
#define CONVERT_DSA_PRIVATE_KEY   (2)
 DSA Private Key.
 
#define CONVERT_CERTIFICATE   (3)
 X.509 Certificate.
 
#define CONVERT_ECDSA_PRIVATE_KEY   (4)
 ECDSA (Elliptic Curve) Private Key.
 

Detailed Description

Return values indicating the type of PEM data that was converted.

Macro Definition Documentation

◆ CONVERT_CERTIFICATE

#define CONVERT_CERTIFICATE   (3)

#include <convert.h>

X.509 Certificate.

Indicates successful conversion of an X.509 certificate. The converted binary data contains the certificate in DER format.

Note
X.509 certificates contain public keys and identity information, signed by a Certificate Authority (CA).

◆ CONVERT_DSA_PRIVATE_KEY

#define CONVERT_DSA_PRIVATE_KEY   (2)

#include <convert.h>

DSA Private Key.

Indicates successful conversion of a DSA (Digital Signature Algorithm) private key. The converted binary data contains the key in DER format.

Note
DSA keys are used for digital signatures only, not encryption.

◆ CONVERT_ECDSA_PRIVATE_KEY

#define CONVERT_ECDSA_PRIVATE_KEY   (4)

#include <convert.h>

ECDSA (Elliptic Curve) Private Key.

Indicates successful conversion of an ECDSA private key. The converted binary data contains the key in DER format.

Note
ECDSA provides equivalent security to RSA with smaller key sizes, making it efficient for embedded systems.

◆ CONVERT_NONE

#define CONVERT_NONE   (0)

#include <convert.h>

No valid PEM data found or conversion failed.

Returned when:

  • Input data is malformed or missing PEM headers/footers
  • Base64 decoding fails
  • Buffer size is insufficient
  • Invalid parameters passed to conversion function

◆ CONVERT_RSA_PRIVATE_KEY

#define CONVERT_RSA_PRIVATE_KEY   (1)

#include <convert.h>

RSA Private Key in PKCS#1 format.

Indicates successful conversion of an RSA private key. The converted binary data contains the key in DER format.

Note
RSA keys are used for asymmetric encryption and digital signatures.