I just enabled the encryption by adding the following lines and my application goes from working to not working. All devices were programmed with the same key.
// ZCD_NV_PRECFGKEY
zb_WriteConfiguration(0x62, 16, securityKey);
// ZCD_PRECFGKEYS_ENABLE
val32 = 1; // all devices assumed to have same key
zb_WriteConfiguration(0x63, 1, &val32);
// ZCD_NV_SECURITY_MODE
val32 = 1; // enable security
zb_WriteConfiguration(0x64, 1, &val32);
zb_StartRequest();