Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 02:00 23 Dec 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : AES software solution

     Page 2 of 2    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9283
Posted: 03:43pm 18 Dec 2024
Copy link to clipboard 
Print this post

Try this


PicoMite.zip

Should now do > 16 bytes for ECB
 
BishopXXL
Newbie

Joined: 13/01/2019
Location: Germany
Posts: 29
Posted: 05:29pm 18 Dec 2024
Copy link to clipboard 
Print this post

Hi Peter,

it is accomplished.
It works, if I have time I'll test the rest too.
It's almost Christmas    

I would like to take this opportunity
to thank you for your great support!  

Bishop
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1301
Posted: 05:32pm 18 Dec 2024
Copy link to clipboard 
Print this post

Correction: Please correct my (or rather Peter's) program above.
Inc in$,String$(16-Len(in$) Mod 16,0)

should be:
Inc in$,String$((16-Len(in$) Mod 16)Mod 16,0)

to pad the 16-byte blocks with zeros.
Michael
causality ≠ correlation ≠ coincidence
 
BishopXXL
Newbie

Joined: 13/01/2019
Location: Germany
Posts: 29
Posted: 06:05pm 18 Dec 2024
Copy link to clipboard 
Print this post

Hi, short test with "CBC" - worked

Init. vector:

Dim float iv(15)=(&HD7,&H5D,&H0D,&H44,&HD4,&HA7,&H44,&H55,&HD7,&H33,&HB3,&HF8,&HA5,&H3A,&H98,&H23)




Bishop
 
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 379
Posted: 09:35am 19 Dec 2024
Copy link to clipboard 
Print this post

Thank you so much!
This is a great new feature. I didn't even dare hope for something like this.

@Peter: Will there be SSL / https for WebMite at some point?

Matthias
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4343
Posted: 11:17am 19 Dec 2024
Copy link to clipboard 
Print this post

deleted
Edited 2024-12-19 21:18 by Volhout
PicomiteVGA PETSCII ROBOTS
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1301
Posted: 08:15pm 20 Dec 2024
Copy link to clipboard 
Print this post

Here is a simple (working, but not finished) demo program for the AES128 function for PicoMites. The program can encrypt and decrypt files of seemingly any length (e.g. text, images, music, etc.).

File deleted to adapt to firmware changes. Will upload again.
(sorry!)

With big thanks to Peter!
Regards
Michael
Edited 2024-12-21 21:28 by twofingers
causality ≠ correlation ≠ coincidence
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9283
Posted: 11:05am 21 Dec 2024
Copy link to clipboard 
Print this post

Sorry Michael but I've changed the mechanism in light of the info from Jim. Please see the release thread for more details.
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1301
Posted: 11:18am 21 Dec 2024
Copy link to clipboard 
Print this post

@Peter
Thanks for the info! I already saw that in the release thread.
In the demo program above I don't use the "initialization vector".
I don't know if that changes anything?
Michael
causality ≠ correlation ≠ coincidence
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024