Home
last modified time | relevance | path

Searched refs:keyType (Results 1 – 8 of 8) sorted by relevance

/system/security/keystore/
Dkeystore_utils.cpp57 void add_legacy_key_authorizations(int keyType, std::vector<keymaster_key_param_t>* params) { in add_legacy_key_authorizations() argument
63 if (keyType == EVP_PKEY_RSA) { in add_legacy_key_authorizations()
Dkeystore_utils.h34 void add_legacy_key_authorizations(int keyType, std::vector<keymaster_key_param_t>* params);
Dkey_store_service.h58 int32_t generate(const String16& name, int32_t targetUid, int32_t keyType, int32_t keySize,
88 int32_t is_hardware_backed(const String16& keyType);
170 bool isKeyTypeSupported(const keymaster2_device_t* device, keymaster_keypair_t keyType);
Dkey_store_service.cpp272 int32_t KeyStoreService::generate(const String16& name, int32_t targetUid, int32_t keyType, in generate() argument
282 add_legacy_key_authorizations(keyType, &params.params); in generate()
284 switch (keyType) { in generate()
332 ALOGW("Unsupported key type %d", keyType); in generate()
548 int32_t KeyStoreService::is_hardware_backed(const String16& keyType) { in is_hardware_backed() argument
549 return mKeyStore->isHardwareBacked(keyType) ? 1 : 0; in is_hardware_backed()
1273 keymaster_keypair_t keyType) { in isKeyTypeSupported() argument
1276 switch (keyType) { in isKeyTypeSupported()
1285 switch (keyType) { in isKeyTypeSupported()
1296 return keyType == TYPE_RSA; in isKeyTypeSupported()
Dkeystore.h85 bool isHardwareBacked(const android::String16& keyType) const;
DIKeystoreService.cpp703 virtual int32_t generate(const String16& name, int32_t uid, int32_t keyType, int32_t keySize, in generate() argument
710 data.writeInt32(keyType); in generate()
942 virtual int32_t is_hardware_backed(const String16& keyType) in is_hardware_backed() argument
946 data.writeString16(keyType); in is_hardware_backed()
1487 int32_t keyType = data.readInt32(); in onTransact() local
1510 int32_t ret = generate(name, uid, keyType, keySize, flags, &args); in onTransact()
1642 String16 keyType = data.readString16(); in onTransact() local
1643 int32_t ret = is_hardware_backed(keyType); in onTransact()
Dkeystore.cpp472 bool KeyStore::isHardwareBacked(const android::String16& keyType) const { in isHardwareBacked()
478 if (sRSAKeyType == keyType) { in isHardwareBacked()
/system/security/keystore/include/keystore/
DIKeystoreService.h177 virtual int32_t generate(const String16& name, int32_t uid, int32_t keyType, int32_t keySize,
200 virtual int32_t is_hardware_backed(const String16& keyType) = 0;