Main Site Documentation

HashAlgorithm freezes Cerbuino and Mountaineer


#1

Hello guys,
For some odd reason the following code will freeze Both Cerbuino Ethernet and Mountaineer Eth… I didn’t try the non Ethernet firmware, it freezes to a point of no return meaning i’ll have to fight with it and MFDeploy to erase the Application, sometimes my only way out is a firmware re-flash…


..add reference to the following:
Microsoft.SPOT.Net.Security
Microsoft.SPOT.Net.Security.PKCS11
System.Security


using System.Security.Cryptography;
using Microsoft.SPOT;

   void ProgramStarted()
        {
            var sha = new HashAlgorithm(HashAlgorithmType.MD5);
       
            Debug.Print("Program Started");
}

Please confirm…


#2

I did not think the crypto feature is included on cerbfamily due to the small resource. Do other algorithms work?