Log redaction for sensitive input values, C side