chooseSigFormat

Choose the default signature format for a certain public key signature scheme.

static if(BOTAN_HAS_X509_CERTIFICATES)
chooseSigFormat
(,
in string hash_fn
,
ref AlgorithmIdentifier sig_algo
)

Parameters

key PrivateKey

will be the key to choose a padding scheme for

hash_fn string

is the desired hash function

sig_algo AlgorithmIdentifier

will be set to the chosen scheme

Return Value

Type: PKSigner

A PKSigner object for generating signatures

Meta