For RSA, this must be at
least the RSA modulus size (rounded up to a multiple of 32 bytes for
the X9.31 signature format, or one byte for all other signature formats).
For DSS, this must be at least 40 bytes.
For RSA and DSS, this
field is updated with the minimum byte length of the digital signature.
For
ECDSA, signature algorithm R concatenated with S is the digital signature.
The maximum output value will be 1042 bits (131 bytes). The size of
the signature is determined by the size of P. Both R and S will have
size P. For prime curves, the maximum is 2 * 521 bits. For brain pool
curves, the maximum size is 2 * 512 bits.