libtomcrypt

How do I use libtomcrypt to import an RSA public key?

隐身守侯 提交于 2020-01-13 19:17:13
问题 I am experimenting with using libtomcrypt to do RSA-2048 bit encryption. My current objective is to import a public key from a file. This file was generated using OpenSSL with the command: $ openssl rsa -in private.pem -outform PEM -pubout -out public.pem So I believe my public key is in PKCS#1 padding and in OpenSSL's PEM format. I believe the function I need to use is rsa_import(), but that takes an in buffer, a length, and outputs an rsa_key pointer. Just to be clear, I believe what I need

Contiki mote type creation error when trying to use libtomcrypt library (rsa public key generation)

北慕城南 提交于 2019-12-22 18:04:25
问题 I am trying to work on RSA public key generation using libtomcrypt library for my school project. But I am unable to load the library in Cooja using Contiki OS. I tried to compile the file I need into an object file and load it in .csc file. This is the error message I got: se.sics.cooja.GUI$SimulationCreationException: Mote type creation error: Error when creating corecomm instance: Lib1 at se.sics.cooja.GUI.loadSimulationConfig(GUI.java:3440) at se.sics.cooja.GUI.loadSimulationConfig(GUI

Contiki mote type creation error when trying to use libtomcrypt library (rsa public key generation)

情到浓时终转凉″ 提交于 2019-12-06 07:27:40
I am trying to work on RSA public key generation using libtomcrypt library for my school project. But I am unable to load the library in Cooja using Contiki OS. I tried to compile the file I need into an object file and load it in .csc file. This is the error message I got: se.sics.cooja.GUI$SimulationCreationException: Mote type creation error: Error when creating corecomm instance: Lib1 at se.sics.cooja.GUI.loadSimulationConfig(GUI.java:3440) at se.sics.cooja.GUI.loadSimulationConfig(GUI.java:3352) at se.sics.cooja.GUI.doLoadConfig(GUI.java:2397) at se.sics.cooja.GUI$4.run(GUI.java:636) at