TinyAES Wrapper

Home Forums Monkey 2 Code Library TinyAES Wrapper

Tagged: , ,

This topic contains 3 replies, has 3 voices, and was last updated by  skn3 1 day, 20 hours ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10187

    scurty
    Participant

    So, I found this “simple” AES encryption for C. Thought I would try and wrap it to Monkey.
    https://github.com/kokke/tiny-AES-c

    Clone the git, move aes.c and aes.h into the same folder as this following code. Note: UNTESTED But COMPILED THIS IS WAAY BEYOND MY SCOPE. xD

    Still not sure how to pass the arguments or even use the library, but it compiles just fine on Windows 10.
    I tried using a DataBuffer.Data(Ubyte Ptr) for the data input/output, but that didn’t work. But I’m sure it can be made too just using this module.

    EDIT: Please see skn3’s version here:  LINK

    #10293

    CopperCircle
    Participant

    Great, did you manage to get it working yet?

    #10300

    scurty
    Participant

    No, I don’t think I can get it to work given my limited knowledge of the subject. I think I might have to adapt the actual C code to a more Monkey friendly source. I just figured I’d try it out and see if anyone could help. I think Encryption is important. Passing the arguments is my current problem, the compiler transforms a DataBuffer.Data Ptr to a “const char *” which causes problems…
    Maybe Mark has a few pointers? Pun intended.

    #10583

    skn3
    Participant

    Please see here:

    tiny AES module

    You were nearly there!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.