JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html

Is there any limit with the length of the data to cipher on 3DES

Algorithm School

Moderator: UNKNwYSHSA

wkuzma
Posts: 8
Joined: Wed Jan 20, 2016 10:50 pm
Points :145
Contact:

Is there any limit with the length of the data to cipher on 3DES

Post by wkuzma » Thu Mar 10, 2016 4:05 am

Recently, I have been trying to use 3DES to cipher data. Now I wanna know if there is any limit with the length of the data to cipher on 3DES. In fact, I am able to cipher data with length 8 bytes,16 bytes. For other length, I will get "6F00". Why? Is their any limit?

User avatar
UNKNwYSHSA
Posts: 630
Joined: Thu May 21, 2015 4:05 am
Points :3053
Contact:

Re: Is there any limit with the length of the data to cipher on 3DES

Post by UNKNwYSHSA » Tue Mar 15, 2016 2:44 am

The data block size of DES is 8 bytes.
So the length of your data shall be 8,16,24,32,n*8.
You can padding your input data when the data length is not 8 multiplied.
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 2 guests

JavaCard OS : Disclaimer