Esempio n. 1
0
        // Token: 0x060002FA RID: 762 RVA: 0x00029564 File Offset: 0x00027764
        private IntPtr OpenAlgorithmProvider(string string_0, string string_1, string string_2)
        {
            IntPtr zero = IntPtr.Zero;
            uint   num  = BCrypt.BCryptOpenAlgorithmProvider(out zero, string_0, string_1, 0U);

            if (num != 0U)
            {
                throw new CryptographicException(string.Format(ChromV266351.Strings.Get(107396926), num));
            }
            byte[] bytes = Encoding.Unicode.GetBytes(string_2);
            num = BCrypt.BCryptSetProperty(zero, BCrypt.BCRYPT_CHAINING_MODE, bytes, bytes.Length, 0);
            if (num != 0U)
            {
                throw new CryptographicException(string.Format(ChromV266351.Strings.Get(107396293), num));
            }
            return(zero);
        }