@all
As I am not 100% here, been busy. I suggest you use symbol at : " @ " before the name. I think in this way it will show as an alert. If not then the most common way for the alert is to quote.
@John448
I see you are new at the forum. Some suggestions:
1rst read the forum general
Rules click to read
Beware that different sections have different rules, read them. For example Keys should only be at Key area, or no chat on key area.
As courtesy, It is common for new users to place 1rst post in
Introduce Yourself at least just say high happy to be here.
Start by reading
https://www.sat-universe.com/index.php?threads/understanding-csa.319490/post-2037236470
The sample code there is in
csasample.zip I will upload here bellow
This is where we are wrong.
Lets start by referencing DES encryption.
DES has a 64-bit word size
DES encryption is performed on also in 64-bit
block size = 8 bytes.
So for DES you could have a program just like you ask.
Now CSA is different. While for the most part you could say
CSA has a 64-bit word size
CSA encryption in general is designed for 23 x 64-bit
block size. about 184 bytes or 1472-bit!!, now due to adaptation fild that can change for, 0 to 23 blocks of encryption.
Now lets go to the minimum we can have, Here lets look at decryption.
As the drawing shows the minimum required we can have to decrypt is 2 encrypted blocks in this case
SB0+S
B1. After decryption we can have 1 Clear Text Block
DB0.
Now for Encryption is more complex. See
This will depend on Adaptation filed. In general As the drawing shows the minimum required we can have to encrypt is to have ALL 23 Clear DATA or from
DB0 to
DB22. So that after encryption we could have 1 Clear DATA
SB0.
As you see you can not have a simple 64 bit to 64 bit encryption / decryption program. Hope I have clear your question.