The MASM Forum Archive 2004 to 2012
Welcome, Guest. Please login or register.
March 24, 2023, 01:01:23 PM

Login with username, password and session length
Search:     Advanced search
128553 Posts in 15254 Topics by 684 Members
Latest Member: mottt
* Home Help Search Login Register
+  The MASM Forum Archive 2004 to 2012
|-+  General Forums
| |-+  The Laboratory (Moderator: Mark_Larson)
| | |-+  Encryption procedure
« previous next »
Pages: 1 ... 3 4 [5] Print
Author Topic: Encryption procedure  (Read 41284 times)
Sevag.K
Member
*****
Posts: 469



Re: Encryption procedure
« Reply #60 on: November 11, 2010, 02:29:45 AM »

if anyone is interested, i've been working on AES ciphers and they are considered practically uncrackable and have a byte to byte translation.

just released the preliminary code on the HLA forum, i can convert that to MASM syntax.  code only for encryption at this point, but decryption is easy enough to implement, i just haven't had the time yet.

Logged

Magnum
Member
*****
Gender: Male
Posts: 1165



Re: Encryption procedure
« Reply #61 on: November 11, 2010, 03:30:18 AM »

Thanks.

I am interested in your encryption code.

Logged

Have a great day,
                         Andy
Sevag.K
Member
*****
Posts: 469



Re: Encryption procedure
« Reply #62 on: November 11, 2010, 04:18:31 AM »

okay, but be warned that the masm syntax is compiled from hla syntax so it will be a bit hard to read.

an overview:

the Aes procedure is called to initialize the expansion table.  it takes three arguments, a constant for bit size (0, 1, or 2), a pointer to the key data and the size of the key.

the Cipher procedure takes two arguments, a pointer to a 16byte source to encrypt and a pointer to a buffer to store the encryption.

[edit:updated below]
« Last Edit: November 12, 2010, 12:05:05 AM by Sevag.K » Logged

hutch--
Administrator
Member
*****
Posts: 12013


Mnemonic Driven API Grinder


Re: Encryption procedure
« Reply #63 on: November 11, 2010, 04:21:52 AM »

I agree with Cork here, find a secure way to send a high quality random pad of a large size to the recipient then send them messages that only have to specify the start offset of the pad. A 1 megabyte pad can be used 1000 times with unique pad sections, a larger pad can be used many more time while providing a unique pad for each message.

My own preference is a SHR XOR - XOR SHL for up and down but the technique will break the heart of supercomputers as its stats are impressive, 256^characters in the message with no method of determining which one is correct.
Logged

Regards,



Download site for MASM32
http://www.masm32.com
Sevag.K
Member
*****
Posts: 469



Re: Encryption procedure
« Reply #64 on: November 11, 2010, 11:34:42 PM »


last one didn't print out all right.  anyway, i've made a more concrete version into a library with encryption and decryption.  attached is the library with sources, including a masm source compilation.  i've included the hla sources since those are commented and formatted.


* aes.zip (25.67 KB - downloaded 370 times.)
Logged

hutch--
Administrator
Member
*****
Posts: 12013


Mnemonic Driven API Grinder


Re: Encryption procedure
« Reply #65 on: November 11, 2010, 11:56:17 PM »

Sevag,

Do us a favour and put long source code blocks into a zip file as they are hard to read pasted into a forum edit window.
Logged

Regards,



Download site for MASM32
http://www.masm32.com
Pages: 1 ... 3 4 [5] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum Archive 2004 to 2012 | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!