I am trying to get our smart card code to work on JCIDE, and while I have resolved most of the issues, there is still on
Posted: Thu Jun 16, 2016 2:39 am
I am trying to get our smart card code to work on JCIDE, and while I have resolved most of the issues, there is still one issue that I absolutely cannot figure out. When I try to build the project, I get the following build error:
C:\Main_Stuff\Crypto.java:358: cannot find symbol
symbol : variable ALG_SHA_256
location: class javacard.security.MessageDigest
hash = MessageDigest.getInstance(MessageDigest.ALG_SHA_256, false);
The line of code in question is:
hash = MessageDigest.getInstance(MessageDigest.ALG_SHA_256, false);
The weird thing about this build error is that even the development environment recognizes “MessageDigest.ALG_SHA_256” in that it will autocomplete it when I type it out (this line also builds without problems in the Oberthur development environment). I have tried looking for a solution online, but I cannot find the answer. Any insight on this matter would be helpful.
C:\Main_Stuff\Crypto.java:358: cannot find symbol
symbol : variable ALG_SHA_256
location: class javacard.security.MessageDigest
hash = MessageDigest.getInstance(MessageDigest.ALG_SHA_256, false);
The line of code in question is:
hash = MessageDigest.getInstance(MessageDigest.ALG_SHA_256, false);
The weird thing about this build error is that even the development environment recognizes “MessageDigest.ALG_SHA_256” in that it will autocomplete it when I type it out (this line also builds without problems in the Oberthur development environment). I have tried looking for a solution online, but I cannot find the answer. Any insight on this matter would be helpful.