Vexatos / Computronics

A ComputerCraft/OpenComputers addon mod.
125 stars 53 forks source link

[Suggestion] RSA Signing #183

Open new-sashok724 opened 8 years ago

new-sashok724 commented 8 years ago

It would be good to have RSA signature functions along with encryption in Advanced Cipher Block

makkarpov commented 8 years ago

Signing is just encryption with private key instead of public.

new-sashok724 commented 8 years ago

Then how i could verify sign? :)

makkarpov commented 8 years ago

Decrypt with public. Keys are interchangeable. The one issue here is the absence of hash functions in Computronics, and, possibly, ASN.1 structure of signature, but ASN.1 can be generated in Lua since it isn't much complex, and hash functions are present in core OpenComputers, if you are using it.