Cosmos/Tests/Cosmos.Compiler.Tests.Encryption/Kernel.cs
MichaelTheShifter 62c8c470c0 re-added sha1 test kernel
"MY HANDS ARE TYPING WORDS"
2016-06-17 09:00:34 -04:00

31 lines
727 B
C#

using Cosmos.TestRunner;
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
using Sys = Cosmos.System;
namespace Cosmos.Compiler.Tests.Encryption
{
public class Kernel : Sys.Kernel
{
protected override void BeforeRun()
{
Console.WriteLine("Cosmos booted successfully. Starting tests.");
}
protected override void Run()
{
TestSHA1();
TestController.Completed();
}
public void TestSHA1()
{
byte[] data = new byte[256];
byte[] result;
var shaM = new SHA1Managed();
result = shaM.ComputeHash(data);
}
}
}