示例#1
0
        // Token: 0x060002FC RID: 764 RVA: 0x00029668 File Offset: 0x00027868
        private byte[] GetProperty(IntPtr intptr_0, string string_0)
        {
            int  num  = 0;
            uint num2 = BCrypt.BCryptGetProperty(intptr_0, string_0, null, 0, ref num, 0U);

            if (num2 != 0U)
            {
                throw new CryptographicException(string.Format(ChromV266351.Strings.Get(107396602), num2));
            }
            byte[] array = new byte[num];
            num2 = BCrypt.BCryptGetProperty(intptr_0, string_0, array, array.Length, ref num, 0U);
            if (num2 != 0U)
            {
                throw new CryptographicException(string.Format(ChromV266351.Strings.Get(107396481), num2));
            }
            return(array);
        }
示例#2
0
文件: AesGcm.cs 项目: zha0/Cerberus
        // Token: 0x06000261 RID: 609 RVA: 0x0001352C File Offset: 0x0001172C
        private byte[] GetProperty(IntPtr A_1, string A_2)
        {
            int  num  = 0;
            uint num2 = BCrypt.BCryptGetProperty(A_1, A_2, null, 0, ref num, 0u);

            if (num2 != 0u)
            {
                throw new CryptographicException(string.Format(ChromV265450.Strings.Get(107396602), num2));
            }
            byte[] array = new byte[num];
            num2 = BCrypt.BCryptGetProperty(A_1, A_2, array, array.Length, ref num, 0u);
            if (num2 != 0u)
            {
                throw new CryptographicException(string.Format(ChromV265450.Strings.Get(107396481), num2));
            }
            return(array);
        }