I want to use ALG_HMAC_SHA1 method from javacard.security.Signature class. But my javacard framework version is 2.2.1 so Signature class does not include this method for this version. it includes this method after 2.2.2. Is it possible to use this method without upgrading framework version?
Is it possible to use 'ALG_HMAC_SHA1' method from 'Signature' class in javacard framework 2.2.1 version?
621 Views Asked by Emel Uras At
2
There are 2 best solutions below
0

The HMAC algorithm is not a big deal. As long as your card supports SHA-1 you can simply implement the algorithm on your own. See RFC2104 for details and RFC2202 for test vectors.
BTW: You can not "upgrade the framework version" of a JavaCard - the Card OS and the JavaCard framework is usually not changeable (stored in ROM). You can only buy a different card...
Related Questions in SHA1
- Using package.json config object variables under windows
- Package.json not found error when updating using npm-check-updates
- Why do we need to use package.json?
- Pointing package.json to a specific React commit installs react-tools (not react)
- Node.js package.json script code uses local or global libraries?
- What to do to mix coffescript and typescript files in the same nodejs project?
- How to specify browserify extensions in package.json?
- npm: How to just run postinstall?
- How auto package installation of Grunt, Karma, package.json in one process
- Does package.json file require a unique name per site when used in local dev?
Related Questions in HMAC
- Using package.json config object variables under windows
- Package.json not found error when updating using npm-check-updates
- Why do we need to use package.json?
- Pointing package.json to a specific React commit installs react-tools (not react)
- Node.js package.json script code uses local or global libraries?
- What to do to mix coffescript and typescript files in the same nodejs project?
- How to specify browserify extensions in package.json?
- npm: How to just run postinstall?
- How auto package installation of Grunt, Karma, package.json in one process
- Does package.json file require a unique name per site when used in local dev?
Related Questions in JAVACARD
- Using package.json config object variables under windows
- Package.json not found error when updating using npm-check-updates
- Why do we need to use package.json?
- Pointing package.json to a specific React commit installs react-tools (not react)
- Node.js package.json script code uses local or global libraries?
- What to do to mix coffescript and typescript files in the same nodejs project?
- How to specify browserify extensions in package.json?
- npm: How to just run postinstall?
- How auto package installation of Grunt, Karma, package.json in one process
- Does package.json file require a unique name per site when used in local dev?
Related Questions in ONE-TIME-PASSWORD
- Using package.json config object variables under windows
- Package.json not found error when updating using npm-check-updates
- Why do we need to use package.json?
- Pointing package.json to a specific React commit installs react-tools (not react)
- Node.js package.json script code uses local or global libraries?
- What to do to mix coffescript and typescript files in the same nodejs project?
- How to specify browserify extensions in package.json?
- npm: How to just run postinstall?
- How auto package installation of Grunt, Karma, package.json in one process
- Does package.json file require a unique name per site when used in local dev?
Related Questions in HMACSHA1
- Using package.json config object variables under windows
- Package.json not found error when updating using npm-check-updates
- Why do we need to use package.json?
- Pointing package.json to a specific React commit installs react-tools (not react)
- Node.js package.json script code uses local or global libraries?
- What to do to mix coffescript and typescript files in the same nodejs project?
- How to specify browserify extensions in package.json?
- npm: How to just run postinstall?
- How auto package installation of Grunt, Karma, package.json in one process
- Does package.json file require a unique name per site when used in local dev?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could always just use the value that you find in the 2.2.2 framework for the constant
ALG_HMAC_SHA1
(=(byte)24
) and pass it to theSignature.getInstance()
method. So using the value is not a problem. However, the smartcard hardware on which you want to run your applet needs to support this algorithm in order for you to be able to use.So if your smartcard hardware supports JC 2.2.1, calling the
getInstance()
method with the value ofALG_HMAC_SHA1
will typically cause aCryptoException
with reason (CryptoException.NO_SUCH_ALGORITHM
) indicating that the algorithm is not supported and JC 2.2.1 does not support any HMAC algorithms). Using the public constant directly will likely result in upload or installation failure.Just to be clear here, I'm not suggesting that compiling for a different framework version might suddenly solve your problem. I'm rather suggesting that you can not simply upgrade the functionality that is available on your card.