GetPrefixDataFromData() public static method

Helper method for stripping (and returning) a prefix byte array of prefixLength from a data byte array which is returned without the stripped prefix
public static GetPrefixDataFromData ( byte &data, int prefixLength ) : byte[]
data byte
prefixLength int
return byte[]
 public static string GetPrefixStringFromData(ref byte[] data)
 {
     return(Encoding.UTF8.GetString(SEBConfigFileManager.GetPrefixDataFromData(ref data, 4)));
 }
        private static byte[] DecryptDataWithPublicKeyHashPrefix(byte[] sebData, bool forEditing, ref X509Certificate2 sebFileCertificateRef)
        {
            X509Certificate2 certificateFromStore = SEBProtectionController.GetCertificateFromStore(SEBConfigFileManager.GetPrefixDataFromData(ref sebData, 20));

            if (certificateFromStore == null)
            {
                int num = (int)SEBMessageBox.Show(SEBUIStrings.errorDecryptingSettings, SEBUIStrings.certificateNotFoundInStore, MessageBoxIcon.Hand, MessageBoxButtons.OK, forEditing);
                return((byte[])null);
            }
            if (forEditing)
            {
                sebFileCertificateRef = certificateFromStore;
            }
            sebData = SEBProtectionController.DecryptDataWithCertificate(sebData, certificateFromStore);
            return(sebData);
        }