Fabcoin Core  0.16.2
P2P Digital Currency
Functions
dsa.cpp File Reference
#include "pch.h"
#include "dsa.h"
#include "asn.h"
#include "integer.h"
#include "filters.h"
#include "nbtheory.h"
Include dependency graph for dsa.cpp:

Go to the source code of this file.

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...
 

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: