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?
685 views Asked by Emel Uras At
2
There are 2 answers
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
- Create HMAC SHA-1 in JS with byte array
- Restore sha-1 certificate fingerprint on OpenSSL without setting security level to zero
- Hash values do not match
- SHA1 implementation differs from builtin SHA1
- Rewriting Python SHA1 Digest code to Bash
- Why Truecaller SDK gives me an error: 40304, Invalid fingerprint in my flutter app?
- Twitter oauth_signature process
- Need SHA-1 certificate fingerprint to use Google Maps in Flutter, Get Error Unsupported class file major version 65
- Unable to find signingReport for SHA-1 fingerprint key in Gradle Bar : Android Studio Hedgehog
- How to check code integrity with SHA1 fingerprint?
- How to calculate SHA-1 fingerprint of an X.509 certificate in Flutter?
- Reference Error - SHA-1 for node_modules\@react-native\metro-config\node_modules\@react-native\js-polyfills\console.js is not computed
- The term '-alias' is not recognized , while generating SHA1 key for firebase
- Generate Openssl signature
- One or more of your Android apps have a SHA-1 fingerprint and package name combination that's in use
Related Questions in HMAC
- Create HMAC SHA-1 in JS with byte array
- How to get the same HMAC-SHA512 signature in Swift as in Python?
- Trouble with HMAC Signature Verification Between Go and PHP for Encrypted URL
- Kucoin Spot Trading Balance Retrieval Error: Invalid KC-API-SIGN (400005)
- Python HMAC Digest differs from OpenSSL command
- Different Signature HMAC SHA512 Between Hardcoded Secret Key and Stored Secret Key at env file using Golang
- How to properly get a HMACSHA256 hash through bash scripting
- Double Decodes for HMAC JWTs using kids?
- How do I replicate PHP's hash_hmac function in C++?
- HMAC/sha256 Token In Postman Pre-Req - Convert From js Sample
- How to update authentication token for mp4 file with JW Player?
- Java HMAC hashing gives different hash values for java 8 and open JDK 17
- PHP Function Generating Invalid HMAC Signature
- how to create user in zuora api using dotnet framework
- Why does my TOTP algorithm sometimes generate the wrong OTP and other times the correct one?
Related Questions in JAVACARD
- How to return a slice in Java
- Is it possible Java Card supports NIO,like event-driven, reactor
- How do I read EF.PLMNsel?
- Can't install .cap file on NXP P71D321
- How can I upload a SIM applet through OTA
- How to communicate programmatically with the JCOP simulator, how to programmatically send APDUs to a JCOP simulator?
- Problem Loading Signed CAP file directly to Supplementary Security Domain
- an error occurred while building a Java Card project in Eclipse javax/xml/bind/JAXBException
- Bitcoin Transaction signing using Javacard
- Gemalto SmartCard Get status issue
- How to use APDU I/O API in Eclipse
- InitialiseSecureChannel error during profile package installation on an eUICC
- Why euicc manager get NO_SUCH_ELEMENT aka errcode 3?
- Java Card Eclipse Plug-in: APDU I/O API is hanging on powerUp()
- What are the correct steps to have a supplementary security domain with DAP verification?
Related Questions in ONE-TIME-PASSWORD
- Password protected or private URL one-time viewable video access
- Proper way to implement transactional HOTP?
- How to configure otphp for Microsoft Authenticator App?
- How do I optimizing OTP Delivery Latency in Web App?
- multiOTP ask 2FA when I try to connect foreign (remote) server with RDP
- OTP fill in appium selenium
- Firebase OTP in Flutter
- Securing one-time links against phishing filter of email providers
- Need an interface provider who provide functionality for sending OTP through SMS/Phone call/ Email
- OTP entering view without using library in android Kotlin
- Gitlab : Not receive OTP for verify phone number when registering
- What difference between AdminSiteOTPRequired and OTPAdminSite?
- Why am I able to fill OTP with Autofill without using .oneTimeCode in Swift?
- Generating an OTP in Postman via JavaScript
- creating firebase otp authetication in a dialogue in flutter
Related Questions in HMACSHA1
- How do I replicate PHP's hash_hmac function in C++?
- PHP Oauth 1.0 - Signature is invalid while accessing Rest API with GET Request & URL parameters
- HMAC using SHA-1: Can't concat int to bytes
- Why different results from base64 + hmac in python and php?
- Python and C# HMAC SHA1 results are not Matching
- How to implement SHA1 in C
- Getting bad request response error in Tumblr api /posts endpoint
- Flutter api calls oauth_signature HMAC-SHA1 generation
- Adapting An Encryption Algorithm Written in Javascript to Java
- Yubikey 5 HMAC-SHA1 Challenge/Response with APDU commands
- Rust hmacsha and hmac-sha1 libraries return different result on calculation
- creating signature in php for Ninja RMM
- why my code doesn't generate the same OTP like google authenticator?
- How to get/generate HMAC-SHA1 signature for Twitter in PHP using TwitterOAuth (abraham/twitteroauth)
- Google Apps Script Oauth1 / Trello API "Invalid Signature"
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?
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)
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.