summaryrefslogtreecommitdiff
path: root/keystore/java/android/security/KeyStoreKeyConstraints.java
AgeCommit message (Collapse)Author
2015-04-13Use JCA names for block modes, paddings, and digests.Alex Klyubin
This replaces int-based enums from KeyStoreKeyConstraints with String values commonly used in JCA API. As part of under the hood refactoring: * KeyStoreKeyCharacteristics and KeyStoreKeyConstraints have been merged into KeyStoreKeyProperties. * KeymasterUtils methods operating on KeymasterArguments and KeymasterCharacteristics have been moved to their respective classes. Bug: 18088752 Change-Id: I9c8b984cb3c28184adb617e34d87f2837bd1d3a1
2015-04-09Track recent keymaster_defs.h changes.Alex Klyubin
Bug: 18088752 Change-Id: If47bb7cc7a385941db9f12d478676594e9bc9d86
2015-04-09Merge "Add asymmetric crypto constants for AndroidKeyStore API."Alex Klyubin
2015-04-09Add asymmetric crypto constants for AndroidKeyStore API.Alex Klyubin
Bug: 18088752 Change-Id: Iee72a4c230f3a2cd30d9eb4d29c4301f3e113f31
2015-04-09Add missing mapping between JCA and keystore HMAC names.Alex Klyubin
This is a follow-up to 70376a77280551791dae62586a6bb0c77ed9429a where I forgot to update this mapping. Bug: 18088752 Change-Id: I322a9abd642ddee3bd2b4f49379b121012e32836
2015-04-09Merge "Require IND-CPA by default for new AndroidKeyStore keys."Alex Klyubin
2015-04-08Require IND-CPA by default for new AndroidKeyStore keys.Alex Klyubin
Bug: 18088752 Change-Id: I01e44b7155df4326b5c9d83dda57f889c1f23ec7
2015-04-08Add more digests to AndroidKeyStore API.Alex Klyubin
This adds MD5, SHA-1, SHA-224, SHA-384, and SHA-512. SHA-256 was already there. MD5 is not exposed for HMAC on purpose, because MD5 has been deprecated for years. Bug: 18088752 Change-Id: I4df3d3f6cf10805c7910a1bdb577a91c85055945
2015-04-08Fix typoAlex Klyubin
Change-Id: I1c47ade98ad3ae41dc55e7bcafcad6901b559c89
2015-04-07Add BlockMode.GCM constant to AndroidKeyStore API.Alex Klyubin
GCM mode is not yet implemented. This is just adding a constant to KeyStoreKeyConstraints.BlockMode. Bug: 18088752 Change-Id: Ibba5b393f56ab9f6bb96d994f110687ab8d65ff3
2015-04-07Make the new AndroidKeyStore API conformant.Alex Klyubin
This makes the new AndroidKeyStore API conform with the latest Keymaster API changes as well as the latest Android framework API design guidelines. Keymaster changes: * Multiple paddings, block modes, and digests can be set on a key. * "max uses per boot" and "min seconds between use" restrictions will not be exposed in the framework API. * Padding scheme ZERO will not be exposed. Changes due to Android framework design guidelines: * Sets of enum values have been replaced with bitsets represented as ints. * Integer has been replaced with int, with null being represented with a special value (e.g., -1 or 0) where possible. Bug: 18088752 Change-Id: Ib21739aa9b42d48895cb7a681e836a5c6d972ac6
2015-03-31Hook in user authenticators and their exceptions.Alex Klyubin
Bug: 18088752 Change-Id: I2835dbe51d09587a3081597c6aaf536aa1427e24
2015-03-31Add license banner to recently added AndroidKeyStore files.Alex Klyubin
Bug: 18088752 Change-Id: I027f9530a02cca081aae8eb94833d2fdcb678e9a
2015-03-31Add unauthenticated AES ciphers backed by AndroidKeyStore.Alex Klyubin
This adds the following AES transformations: * AES/ECB/NoPadding * AES/ECB/PKCS7Padding * AES/CBC/NoPadding * AES/CBC/PKCS7Padding * AES/CTR/NoPadding Bug: 18088752 Change-Id: I3e4702e59868f8f2225c31b1c159d20008b9999d
2015-03-30Add HmacSHA256 backed by AndroidKeyStore.Alex Klyubin
This also adds the MAC length constraint on imported HMAC keys. HMAC doesn't work without this constraint at the moment. Bug: 18088752 Change-Id: I8613f58f5d2a84df00bcf6179d13e30619440330
2015-03-27Symmetric key generation for AndroidKeyStore.Alex Klyubin
This currently supports AES and HMAC with SHA-256. Bug: 18088752 Change-Id: Ife55438cf4129b895295681bb35091cd37eb73fb
2015-03-26Symmetric key import for AndroidKeyStore.Alex Klyubin
AES and HmacSHA256 symmetric keys can now be imported into AndroidKeyStore. These keys cannot yet be used. Bug: 18088752 Change-Id: Iad2fd49d15ac4c2d676abe1153f5b5f0b6ff496c