Fabcoin Core  0.16.2
P2P Digital Currency
Enumerations | Functions
dsa.h File Reference

Classes for the DSA signature algorithm. More...

#include "cryptlib.h"
#include "gfpcrypt.h"
Include dependency graph for dsa.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  DSASignatureFormat { DSA_P1363, DSA_DER, DSA_OPENPGP }
 DSA Signature Format. More...
 

Functions

size_t DSAConvertSignatureFormat (byte *buffer, size_t bufferSize, DSASignatureFormat toFormat, const byte *signature, size_t signatureLen, DSASignatureFormat fromFormat)
 Converts between signature encoding formats. More...
 

Detailed Description

Classes for the DSA signature algorithm.

Definition in file dsa.h.

Enumeration Type Documentation

DSA Signature Format.

The DSA signature format used by Crypto++ is as defined by IEEE P1363. Java nad .Net use the DER format, and OpenPGP uses the OpenPGP format.

Enumerator
DSA_P1363 

Crypto++ native signature encoding format.

DSA_DER 

signature encoding format used by Java and .Net

DSA_OPENPGP 

OpenPGP signature encoding format.

Definition at line 17 of file dsa.h.

Function Documentation

size_t DSAConvertSignatureFormat ( byte buffer,
size_t  bufferSize,
DSASignatureFormat  toFormat,
const byte signature,
size_t  signatureLen,
DSASignatureFormat  fromFormat 
)

Converts between signature encoding formats.

Parameters
bufferbyte buffer for the converted signature encoding
bufferSizethe length of the converted signature encoding buffer
toFormatthe source signature format
signaturebyte buffer for the existing signature encoding
signatureLenthe length of the existing signature encoding buffer
fromFormatthe source signature format

This function converts between these formats, and returns length of signature in the target format. If toFormat == DSA_P1363, then bufferSize must equal publicKey.SignatureLength()

Since
Crypto++ 1.0

Definition at line 15 of file dsa.cpp.

Here is the call graph for this function: