private static void RegisterAead()
        {
            var config = new TINKAeadConfig(out NSError error);

            if (error != null)
            {
                Debug.WriteLine(error.LocalizedFailureReason);
                throw new Exception("Failed to initialize Tink: " + error.LocalizedFailureReason);
            }
            TINKConfig.RegisterConfig(config, out error);
            if (error != null)
            {
                Debug.WriteLine(error.LocalizedFailureReason);
                throw new Exception("Failed to initialize Tink: " + error.LocalizedFailureReason);
            }
        }
示例#2
0
        private void RegisterAead()
        {
            Console.WriteLine(Constants.TINKVersion);
            var config = new TINKAeadConfig(out NSError error);

            if (error != null)
            {
                Console.WriteLine("Error: " + error);
                return;
            }

            TINKConfig.RegisterConfig(config, out error);
            if (error != null)
            {
                Console.WriteLine("Error: " + error);
                return;
            }
        }