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

two methods in class Cipher(): update() and doFinal()

Algorithm School

Moderator: UNKNwYSHSA

GraceGIRL
Posts: 15
Joined: Fri May 15, 2015 3:25 am
Points :30
Contact:

two methods in class Cipher(): update() and doFinal()

Post by GraceGIRL » Tue Mar 08, 2016 6:18 am

I know that there are two methods in class Cipher(): update() and doFinal().
But what is the update() doing? What about doFinal()? Would anybody give me a brief and simple explanation?


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

Re: two methods in class Cipher(): update() and doFinal()

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

If the data bytes is seperated to many blocks.
You can input data blocks except the last block with the method update().
And input the last data block to method doFinal() and the got the result.
sense and simplicity

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer