Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

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 :3053
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 23 guests

JavaCard OS : Disclaimer