Main Site Documentation

Crypto AES Encrypt Method throws NotImplementedException


#1

I’m trying to test the Crypto AES example on the Wiki. I have not modified the code and I’m using a fresh project. When I run it in the emulator, it runs successfully. However, when I run in debug mode on the Domino controller, I get the following error:


The thread '<No Name>' (0x2) has exited with code 0 (0x0).
    #### Exception System.NotImplementedException - 0xca000000 (1) ####
    #### Message: 
    #### Microsoft.SPOT.Cryptography.Key_RSA::Encrypt [IP: 0000] ####
    #### Program::Main [IP: 0062] ####
A first chance exception of type 'System.NotImplementedException' occurred in Microsoft.SPOT.Native.dll
An unhandled exception of type 'System.NotImplementedException' occurred in Microsoft.SPOT.Native.dll

Is this not supported on Domino?


#2

Wait for MF 4.2. Should be available from GHI within two months.


#3

AES is too big and slow for these small devices. Use Spider or similar device.

We provide XTEA in our libs for these small devices


#4

Got it. That’s what I figured. I don’t really need it. I was just going through the wiki and trying different samples.

I added the following note under Hardware Requirements on the Crypto AES wiki page:

Not available on USBizi based boards.