pub fn signing_input(data: &[u8], signer: &[u8], sha384: bool) -> Vec<u8> ⓘExpand description
Input to the ECDSA signing and verification operations (IEEE Std
1609.2-2016, clause 5.3.1, adopted by ETSI TS 103 097 V2.2.1):
Hash(Data input) || Hash(Signer identifier input), which ECDSA hashes
again. data is the COER encoding of the ToBeSignedData or
ToBeSignedCertificate; signer is the canonical COER encoding of the
signer’s certificate, or empty for self-signed data. sha384 selects
SHA-384 (384-bit curves) instead of SHA-256.