fn raw_signature_to_mpis(
sig_type: SignatureType,
sig: &[u8],
) -> Result<Vec<Vec<u8>>, Error>Expand description
Parses raw signature bytes as vector of algorithm-specific multiple precision integers (MPIs).
MPIs (see arbitrary-precision arithmetic) are handled in an algorithm specific way. This function prepares raw signature bytes for technology specific use.
ยงErrors
Returns an error if
- parsing DER-encoded ECDSA signature fails
- EdDSA signature is of wrong length
- the signature type is not supported