/frameworks/base/keystore/java/android/security/ |
D | KeyPairGeneratorSpec.java | 129 public KeyPairGeneratorSpec(Context context, String keyStoreAlias, String keyType, int keySize, in KeyPairGeneratorSpec() argument 148 final int keyTypeInt = KeyStore.getKeyTypeForAlgorithm(keyType); in KeyPairGeneratorSpec() 157 mKeyType = keyType; in KeyPairGeneratorSpec() 167 private static int getDefaultKeySizeForType(int keyType) { in getDefaultKeySizeForType() argument 168 if (keyType == NativeCrypto.EVP_PKEY_DSA) { in getDefaultKeySizeForType() 170 } else if (keyType == NativeCrypto.EVP_PKEY_EC) { in getDefaultKeySizeForType() 172 } else if (keyType == NativeCrypto.EVP_PKEY_RSA) { in getDefaultKeySizeForType() 175 throw new IllegalArgumentException("Invalid key type " + keyType); in getDefaultKeySizeForType() 178 private static void checkValidKeySize(int keyType, int keySize) { in checkValidKeySize() argument 179 if (keyType == NativeCrypto.EVP_PKEY_DSA) { in checkValidKeySize() [all …]
|
D | AndroidKeyPairGenerator.java | 93 final int keyType = KeyStore.getKeyTypeForAlgorithm(mSpec.getKeyType()); in generateKeyPair() local 94 byte[][] args = getArgsForKeyType(keyType, mSpec.getAlgorithmParameterSpec()); in generateKeyPair() 97 if (!mKeyStore.generate(privateKeyAlias, KeyStore.UID_SELF, keyType, in generateKeyPair() 156 private static String getDefaultSignatureAlgorithmForKeyType(String keyType) { in getDefaultSignatureAlgorithmForKeyType() argument 157 if ("RSA".equalsIgnoreCase(keyType)) { in getDefaultSignatureAlgorithmForKeyType() 159 } else if ("DSA".equalsIgnoreCase(keyType)) { in getDefaultSignatureAlgorithmForKeyType() 161 } else if ("EC".equalsIgnoreCase(keyType)) { in getDefaultSignatureAlgorithmForKeyType() 164 throw new IllegalArgumentException("Unsupported key type " + keyType); in getDefaultSignatureAlgorithmForKeyType() 168 private static byte[][] getArgsForKeyType(int keyType, AlgorithmParameterSpec spec) { in getArgsForKeyType() argument 169 switch (keyType) { in getArgsForKeyType()
|
D | KeyStore.java | 71 static int getKeyTypeForAlgorithm(String keyType) throws IllegalArgumentException { in getKeyTypeForAlgorithm() argument 72 if ("RSA".equalsIgnoreCase(keyType)) { in getKeyTypeForAlgorithm() 74 } else if ("DSA".equalsIgnoreCase(keyType)) { in getKeyTypeForAlgorithm() 76 } else if ("EC".equalsIgnoreCase(keyType)) { in getKeyTypeForAlgorithm() 79 throw new IllegalArgumentException("Unsupported key type: " + keyType); in getKeyTypeForAlgorithm() 207 public boolean generate(String key, int uid, int keyType, int keySize, int flags, in generate() argument 210 return mBinder.generate(key, uid, keyType, keySize, flags, args) == NO_ERROR; in generate() 316 public boolean isHardwareBacked(String keyType) { in isHardwareBacked() argument 318 return mBinder.is_hardware_backed(keyType.toUpperCase(Locale.US)) == NO_ERROR; in isHardwareBacked()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/ |
D | DrmPlugin.cpp | 48 KeyType keyType, in getKeyRequest() argument 53 if (keyType != kKeyType_Streaming) { in getKeyRequest()
|
D | DrmPlugin.h | 54 KeyType keyType,
|
/frameworks/base/keystore/tests/src/android/security/ |
D | AndroidKeyPairGeneratorTest.java | 465 private void assertKeyPairCorrect(KeyPair pair, String alias, String keyType, int keySize, in assertKeyPairCorrect() argument 470 assertEquals(keyType, pubKey.getAlgorithm()); in assertKeyPairCorrect() 472 if ("DSA".equalsIgnoreCase(keyType)) { in assertKeyPairCorrect() 482 } else if ("EC".equalsIgnoreCase(keyType)) { in assertKeyPairCorrect() 485 } else if ("RSA".equalsIgnoreCase(keyType)) { in assertKeyPairCorrect() 498 assertEquals(keyType, privKey.getAlgorithm()); in assertKeyPairCorrect()
|
D | AndroidKeyStoreTest.java | 1565 private void assertPrivateKeyEntryEquals(PrivateKeyEntry keyEntry, String keyType, byte[] key, in assertPrivateKeyEntryEquals() argument 1567 KeyFactory keyFact = KeyFactory.getInstance(keyType); in assertPrivateKeyEntryEquals()
|
/frameworks/base/core/java/android/security/ |
D | IKeystoreService.java | 247 public int generate(String name, int uid, int keyType, int keySize, int flags, in generate() argument 256 _data.writeInt(keyType); in generate() 447 public int is_hardware_backed(String keyType) throws RemoteException { in is_hardware_backed() argument 453 _data.writeString(keyType); in is_hardware_backed() 631 public int generate(String name, int uid, int keyType, int keySize, int flags, byte[][] args) in generate() argument
|
/frameworks/av/include/ndk/ |
D | NdkMediaDrm.h | 202 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType,
|
/frameworks/av/drm/mediadrm/plugins/mock/ |
D | MockDrmCryptoPlugin.cpp | 112 String8 const &mimeType, KeyType keyType, in getKeyRequest() argument 120 keyType, stringMapToString(optionalParameters).string()); in getKeyRequest() 138 keyTypeStr.appendFormat("%d", (int)keyType); in getKeyRequest()
|
D | MockDrmCryptoPlugin.h | 63 String8 const &mimeType, KeyType keyType,
|
/frameworks/av/include/media/ |
D | IDrm.h | 48 String8 const &mimeType, DrmPlugin::KeyType keyType,
|
/frameworks/av/media/libmedia/ |
D | IDrm.cpp | 126 String8 const &mimeType, DrmPlugin::KeyType keyType, in getKeyRequest() 135 data.writeInt32((uint32_t)keyType); in getKeyRequest() 552 DrmPlugin::KeyType keyType = (DrmPlugin::KeyType)data.readInt32(); in onTransact() local 567 mimeType, keyType, in onTransact()
|
/frameworks/av/media/libmediaplayerservice/ |
D | Drm.h | 53 String8 const &mimeType, DrmPlugin::KeyType keyType,
|
D | Drm.cpp | 311 String8 const &mimeType, DrmPlugin::KeyType keyType, in getKeyRequest() argument 324 return mPlugin->getKeyRequest(sessionId, initData, mimeType, keyType, in getKeyRequest()
|
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
D | GridLayout.java | 2152 private final Class<K> keyType; 2155 private Assoc(Class<K> keyType, Class<V> valueType) { 2156 this.keyType = keyType; 2160 public static <K, V> Assoc<K, V> of(Class<K> keyType, Class<V> valueType) { 2161 return new Assoc<K, V>(keyType, valueType); 2171 K[] keys = (K[]) Array.newInstance(keyType, N);
|
/frameworks/base/media/jni/ |
D | android_media_MediaDrm.cpp | 751 DrmPlugin::KeyType keyType; in android_media_MediaDrm_getKeyRequest() local 753 keyType = DrmPlugin::kKeyType_Streaming; in android_media_MediaDrm_getKeyRequest() 755 keyType = DrmPlugin::kKeyType_Offline; in android_media_MediaDrm_getKeyRequest() 757 keyType = DrmPlugin::kKeyType_Release; in android_media_MediaDrm_getKeyRequest() 773 keyType, optParams, request, defaultUrl); in android_media_MediaDrm_getKeyRequest()
|
/frameworks/native/include/media/drm/ |
D | DrmAPI.h | 136 String8 const &mimeType, KeyType keyType,
|
/frameworks/base/core/java/android/widget/ |
D | GridLayout.java | 2277 private final Class<K> keyType; 2280 private Assoc(Class<K> keyType, Class<V> valueType) { 2281 this.keyType = keyType; 2285 public static <K, V> Assoc<K, V> of(Class<K> keyType, Class<V> valueType) { 2286 return new Assoc<K, V>(keyType, valueType); 2296 K[] keys = (K[]) Array.newInstance(keyType, N);
|
/frameworks/base/media/java/android/media/ |
D | MediaDrm.java | 434 String mimeType, int keyType, HashMap<String, String> optionalParameters)
|
/frameworks/av/media/ndk/ |
D | NdkMediaDrm.cpp | 277 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType, in AMediaDrm_getKeyRequest() argument 296 switch (keyType) { in AMediaDrm_getKeyRequest()
|