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?
682 Views Asked by Emel Uras At
2
There are 2 best solutions below
0
Robert
On
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
- SSL certificate error 403.13 in IIS 7.5
- Data signing with Azure KeyVault and SHA1 hashing algorithm
- Translate HmacSHA1 checksum generating method from Java to PHP
- Generate signature using private key with OpenSSL API
- Different sha1 hashes calculated in PHP vs Node.js
- Will identical files in different locations have different sha1 hashes?
- How to change SHA1 fingerprint in an android app
- Attempting to use SHA1 hashing to send password to Google
- SHA-1 in haskell producing wrong hashes
- how to base64 encode an unsigned byte array which is actually a int[]
- How to increment the value of an unsigned char *
- Converting SHA1 string encryption code from objective-c to swift
- Get SHA1 sign of string with DSA private key from PEM file
- Can android certificate fingerprint sha1 use in firebase and Google Place API?
- Verify signature
Related Questions in HMAC
- Inconsistency in HMAC signature generation in Python 3?
- I forgot my AmazonAWS secret key, but I have a couple HMAC signed requests. How can I
- CryptoJS.HmacSHA512 returns undefined
- C# Web API method returns 403 Forbidden
- openssl hmac differ from python hmac
- TLS MAC message verification
- Google Web Services HMAC-SHA1 algorithm in JavaScript
- How to calaculate HMAC-SHA3 in Android using Crypto.js?
- NSString to String throwing "fatal error: unexpectedly found nil while unwrapping an Optional value"
- Progressive HMAC SHA256 in Objective-C
- Validating HMAC-SHA256 signature in Node.js
- Different HMAC for JAVA and IOS
- Hmac in MIGS payment in php and Node.js different
- Unable to find EVP_sha256 during compilation
- HMAC Implementation - Pseudo code
Related Questions in JAVACARD
- Recovering an ECPublicKey from JavaCard to Java
- Recovering an ECPublicKey from Java to JavaCard
- Java Card applet EEPROM vs RAM testing
- How to send a data array to my Applet and manipulation it by Applet and return new data in response apdu?
- Converting .class file to .cap JavaCard 3.0.2 Connected Edition
- Javacard - Signining and verifying
- Converting hex string into byte array in javacard
- Calculating sqrt and arcTan in javacard without float type
- How to access the host filesystem from Java Card API
- Trying to install .CAP, getting error SW 64 00
- -scp option not working properly with gp.exe
- How to get further data from JavaCard after 0x6310 status?
- What is the IP address of the web server in Java Card 3.0 connected version?
- ADPU command for selecting an app from a calypso card
- filesystem implementation for java card?
Related Questions in ONE-TIME-PASSWORD
- OTP (token) should be automatically read from the message
- How to generate OTP Number with 6 digits
- How to generate an OTP and send to user in codeigniter 3
- Windows pre-Login one time password for admin account
- Is it possible to use 'ALG_HMAC_SHA1' method from 'Signature' class in javacard framework 2.2.1 version?
- How to reset password in web API using ASP.Net Identity
- How to override text of edit text when maxLength of edittext is 1
- SecurID-like web-service authentication
- Integrating Truecaller SDK with OTP in Android app
- Firebase SMS Verification
- Firebase Phone Authentication not sending OTP
- How to compare randomly generated OTP/Number in PHP with the user input
- sms_otp_auto_verify unable to auto detect the OTP
- OTP Owncloud label hide
- How to populate OTP from user's message box to application directly in iPhone?
Related Questions in HMACSHA1
- Translate HmacSHA1 checksum generating method from Java to PHP
- I forgot my AmazonAWS secret key, but I have a couple HMAC signed requests. How can I
- Google Web Services HMAC-SHA1 algorithm in JavaScript
- Wrong result for base64 string of HMAC_SHA1 using Crypto*** API
- Generate HMAC signature for Google Maps at work API on Apigee Edge
- Check HMAC-SHA1 without key in C#
- Why is Crypto++ pbkdf2 output different than Rfc2898DeriveBytes in C# and crypto.pbkdf2 in JavaScript
- In OAuth: use MAC-SHA1 or RSA-SHA1?
- Is it possible to use 'ALG_HMAC_SHA1' method from 'Signature' class in javacard framework 2.2.1 version?
- Port Python hmac on Java produsing different result
- HMAC SHA1 in Classic ASP
- Getting HMACSHA1 correctly on iPhone using openssl
- C# HMAC to Java
- HMAC-SHA1 in bash
- Different HMAC results in C# and C++
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 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_SHA1will typically cause aCryptoExceptionwith 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.