pub fn build_cmp_response(
req: &CmpRequest,
response_type: CmpMessageType,
body: &[u8],
) -> Result<Vec<u8>, KipukaError>Expand description
Build a DER-encoded CMP PKIMessage response.
Constructs a PKIMessage with:
header: sender, recipient, transactionID, senderNonce, recipNoncebody: the response content tagged with the response typeprotection: signature computed with the CA signing keyextraCerts: CA certificate chain for validation
ยงErrors
KipukaError::BadRequestโ empty transaction ID or body.KipukaError::Internalโ ASN.1 encoding not yet implemented.