Crypto interrogation

  • Thread starter Thread starter Romain TAILLANDIER
  • Start date Start date
R

Romain TAILLANDIER

Hi group

I use a DESCryptoServiceProvide to Crypt my data (byte[8])
I use a known Key (byte[8]) and IV vector (byte[8]).
I am able to crypt and retrieve my data well.

but i have two question.
My original data, retrived data, cryptage key, IVvector are all byte[8].

Why my crypted data are byte[16] ?
How can i do to get my crypted data with the same size as my original data
(if it is possible) ?

thanks,
ROM
 
Romain TAILLANDIER said:
I use a DESCryptoServiceProvide to Crypt my data (byte[8])
I use a known Key (byte[8]) and IV vector (byte[8]).
I am able to crypt and retrieve my data well.

but i have two question.
My original data, retrived data, cryptage key, IVvector are all byte[8].

Why my crypted data are byte[16] ?
How can i do to get my crypted data with the same size as my original data
(if it is possible) ?

Many encryption methods, quite possibly including DES, have the concept
of a block - the encrypted data is always written out in blocks. The
size of the encrypted data is often
(size of original data + block size - 1) % block size

My guess is that that's what's happening here, and that DES has a block
size of 16.
 
Back
Top