JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
Doubts about Package AID and Package token
Doubts about Package AID and Package token
I am a little confused about two concepts: Package AID and Package token. To me, they play the same ID role. Is there some difference between them? Could anyone clarify these concepts for me?
Re: Doubts about Package AID and Package token
I will give you an example for you to understand:
So, if you use Token "0" , the bytecode could be:
0.0.1
0.0.2
0.0.3
instead, if you use package - AID, that would be:
111213141516.x
111213141516.y
111213141516.z
A token is a number so it is more efficient than a byte array.
Code: Select all
Package A:
AID: 11 12 13 14 15 16 -->Token 0
Class A1
Field f1,f2,f3
Package B;
import Package
PackageA.ClassA1.f1;
PackageA.ClassA1.f2;
PackageA.ClassA1.f3;
So, if you use Token "0" , the bytecode could be:
0.0.1
0.0.2
0.0.3
instead, if you use package - AID, that would be:
111213141516.x
111213141516.y
111213141516.z
A token is a number so it is more efficient than a byte array.
Re: Doubts about Package AID and Package token
How can I set the token value? If package tokens are overlapped, will it cause exception?
Re: Doubts about Package AID and Package token
The token are generated by the converter that has access to the EXP files of imports etc. And the offcard verifier should also be able to check for this as well, so overlapped tokens can not happen.
Who is online
Users browsing this forum: Bing [Bot] and 68 guests