using System.Security.Cryptography.Pkcs;
static byte[] GetCmsContent(byte[] derEncodedCms) {
var cms = new SignedCms();
cms.Decode(derEncodedCms);
cms.CheckSignature(true);
return cms.ContentInfo.Content;
static void PrintHashes(){
var hashList=Encoding.ASCII.GetString(GetCmsContent(new WebClient().DownloadData("https://ezprava.net/ezprava/download/list_sha1.p7m"))).Split('\n');
foreach(var hash in hashList)
public static void Main()