who can help me to resolve the question and thanks
Posted: Thu Oct 25, 2018 10:36 pm
who can help me to resolve the question and thanks very much!
I write a applet to test my java cos. this applet can test algorithm and there have some command to implement the JCAPI: cipher.update and cipher.dofinal with the rsa std key(not rsa crt key). The rsa key is 2048 bit lenght and private rsa key .
the commands are as followed:
80048000c0 + ciphertext //the first half cipher text and the applet will call cipher.update
8004010040 + ciphertext//the second half cipher text and the applet will call cipher.dofinal
the first command cann't return anything from the java cos in TA protocol and the test is failure.
If i modify the command as followed:
80048000a0 + ciphertext //the first half cipher text and the applet will call cipher.update
8004010060 + ciphertext//the second half cipher text and the applet will call cipher.dofinal
the test case is right.
who can help me?
I write a applet to test my java cos. this applet can test algorithm and there have some command to implement the JCAPI: cipher.update and cipher.dofinal with the rsa std key(not rsa crt key). The rsa key is 2048 bit lenght and private rsa key .
the commands are as followed:
80048000c0 + ciphertext //the first half cipher text and the applet will call cipher.update
8004010040 + ciphertext//the second half cipher text and the applet will call cipher.dofinal
the first command cann't return anything from the java cos in TA protocol and the test is failure.
If i modify the command as followed:
80048000a0 + ciphertext //the first half cipher text and the applet will call cipher.update
8004010060 + ciphertext//the second half cipher text and the applet will call cipher.dofinal
the test case is right.
who can help me?