pub fn protect_application_payload_with_nonce( key: &[u8], type_id: u8, payload: &[u8], nonce: &[u8], ) -> Result<Vec<u8>, ApplicationCryptoError>