-
Notifications
You must be signed in to change notification settings - Fork 26
Keymaster CTS Fixes #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mdwivedi
merged 34 commits into
divegeek:Javacard_KM_41_AOSP_UPMERGE_0630
from
subrahmanyaman:Javacard_KM_41_CTS_Fixes
Dec 2, 2021
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
1dd1894
1. Corrected the HardwareAuthToken and VerificationToken validation.
subrahmanyaman 7a5f77f
1. Store AUTH_TIMEOUT_MILLIS in keyblob.
subrahmanyaman 76f2f1d
Added missed functions in 4.1
subrahmanyaman 0b6aeb1
CTS Fixes
subrahmanyaman 8003cc6
CTS Fixes
subrahmanyaman 3f78abf
Reduced writes in SEProvider
subrahmanyaman db91064
Updated Provision json sample files
subrahmanyaman cdb6526
Fixed CTS issues
subrahmanyaman 08bde9e
Add configurations class
subrahmanyaman ddec6bc
Added KMConfiguration class
subrahmanyaman 5fd558a
Separated the provision buffer
subrahmanyaman f09d41a
1. Corrected some mismatches with 4.1 specification.
subrahmanyaman c4d5f0c
Added cts keystore patch
subrahmanyaman 49f490c
Added implementation for MAX_USES_PER_BOOT
subrahmanyaman 62066b5
No Buffering for Block ciphers except for AES PKCS7 and AES GCM Decry…
subrahmanyaman 9a103de
Store ComputedHmac Key inside a KeyObject
subrahmanyaman d999433
Added KMComputedHmacKey
subrahmanyaman ab85ff6
Added trusted confirmation changes
subrahmanyaman c48ba44
Hmac signer reset
subrahmanyaman 120c3a6
Added VTS and CTS patches
subrahmanyaman 10682f6
Updated the patches
subrahmanyaman a0f6023
Cache earlybootEnded event in HAL and send in getHmacSharedParameters
subrahmanyaman 5df5d5e
Added support PKCS8 decoder
subrahmanyaman be8509a
Added support PKCS8 decoder
subrahmanyaman 524c022
Send earlybootEndedEvent if pending from begin, generateKey, importKey
subrahmanyaman c8655fe
ProvisionAttestaionKey is accepted only as RAW
subrahmanyaman d318490
Added applet upgrade versioning support
subrahmanyaman 9c05e26
optimized the AUTH_DATA creation for Keyblob
subrahmanyaman ce7ec01
Merge pull request #4 from subrahmanyaman/applet_version_upgrade_move…
subrahmanyaman 99973a2
Added Indentation
subrahmanyaman ec606d5
Added package version
subrahmanyaman 780495e
Removed *.iml file
subrahmanyaman 8b2d166
Incorporated review comments
subrahmanyaman 6bbdbc9
1. moved packageversion from byte array to short
subrahmanyaman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check, if we can simplify the logic like this ?
Status = false;
if(currentMajorVersion - oldMajorVersion == 1) {
Status = true;
} else if (currentMajorVersion - oldMajorVersion == 0) {
if(currentMinorVersoin - oldMinorVersion == 1) {
Status = true;
}
return status;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I used this logic and simplified the code.