Esempio n. 1
0
        // Token: 0x0600025F RID: 607 RVA: 0x00013414 File Offset: 0x00011614
        private IntPtr OpenAlgorithmProvider(string A_1, string A_2, string A_3)
        {
            IntPtr zero = IntPtr.Zero;
            uint   num  = BCrypt.BCryptOpenAlgorithmProvider(out zero, A_1, A_2, 0u);

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