コード例 #1
0
        public static bool StrongNameKeyInstall(string pwzKeyContainer, IntPtr pbKeyBlob, int cbKeyBlob)
        {
            int num = StrongNameUsingIntPtr.StrongNameKeyInstall(pwzKeyContainer, pbKeyBlob, cbKeyBlob);

            if (num < 0)
            {
                ts_LastStrongNameHR = num;
                return(false);
            }
            return(true);
        }
コード例 #2
0
        public static bool StrongNameSignatureSize(IntPtr pbPublicKeyBlob, int cbPublicKeyBlob, out int pcbSize)
        {
            int num = StrongNameUsingIntPtr.StrongNameSignatureSize(pbPublicKeyBlob, cbPublicKeyBlob, out pcbSize);

            if (num < 0)
            {
                ts_LastStrongNameHR = num;
                pcbSize             = 0;
                return(false);
            }
            return(true);
        }
コード例 #3
0
        public static bool StrongNameSignatureGeneration(string pwzFilePath, string pwzKeyContainer, IntPtr pbKeyBlob, int cbKeyBlob, ref IntPtr ppbSignatureBlob, out int pcbSignatureBlob)
        {
            int num = StrongNameUsingIntPtr.StrongNameSignatureGeneration(pwzFilePath, pwzKeyContainer, pbKeyBlob, cbKeyBlob, ppbSignatureBlob, out pcbSignatureBlob);

            if (num < 0)
            {
                ts_LastStrongNameHR = num;
                pcbSignatureBlob    = 0;
                return(false);
            }
            return(true);
        }
コード例 #4
0
        public static bool StrongNameGetPublicKey(string pwzKeyContainer, IntPtr pbKeyBlob, int cbKeyBlob, out IntPtr ppbPublicKeyBlob, out int pcbPublicKeyBlob)
        {
            int num = StrongNameUsingIntPtr.StrongNameGetPublicKey(pwzKeyContainer, pbKeyBlob, cbKeyBlob, out ppbPublicKeyBlob, out pcbPublicKeyBlob);

            if (num < 0)
            {
                ts_LastStrongNameHR = num;
                ppbPublicKeyBlob    = IntPtr.Zero;
                pcbPublicKeyBlob    = 0;
                return(false);
            }
            return(true);
        }
コード例 #5
0
        public static bool StrongNameTokenFromPublicKey(IntPtr pbPublicKeyBlob, int cbPublicKeyBlob, out IntPtr ppbStrongNameToken, out int pcbStrongNameToken)
        {
            int num = StrongNameUsingIntPtr.StrongNameTokenFromPublicKey(pbPublicKeyBlob, cbPublicKeyBlob, out ppbStrongNameToken, out pcbStrongNameToken);

            if (num < 0)
            {
                ts_LastStrongNameHR = num;
                ppbStrongNameToken  = IntPtr.Zero;
                pcbStrongNameToken  = 0;
                return(false);
            }
            return(true);
        }
コード例 #6
0
 public static void StrongNameFreeBuffer(IntPtr pbMemory)
 {
     StrongNameUsingIntPtr.StrongNameFreeBuffer(pbMemory);
 }