Enabling secure discovery with attribute based encryption