CNG DPAPI Functions