/system/bt/stack/smp/ |
D | p_256_ecc_pp.c | 44 static void ECC_Double(Point *q, Point *p, uint32_t keyLength) in ECC_Double() argument 56 if (multiprecision_iszero(p->z, keyLength)) in ECC_Double() 58 multiprecision_init(q->z, keyLength); in ECC_Double() 65 multiprecision_mersenns_squa_mod(t1, z1, keyLength); // t1=z1^2 in ECC_Double() 66 multiprecision_sub_mod(t2, x1, t1, keyLength); // t2=x1-t1 in ECC_Double() 67 multiprecision_add_mod(t1, x1, t1, keyLength); // t1=x1+t1 in ECC_Double() 68 multiprecision_mersenns_mult_mod(t2, t1, t2, keyLength); // t2=t2*t1 in ECC_Double() 69 multiprecision_lshift_mod(t3, t2, keyLength); in ECC_Double() 70 multiprecision_add_mod(t2, t3, t2, keyLength); // t2=3t2 in ECC_Double() 72 multiprecision_mersenns_mult_mod(z3, y1, z1, keyLength); // z3=y1*z1 in ECC_Double() [all …]
|
D | p_256_multprecision.h | 39 int multiprecision_compare(DWORD *a, DWORD *b, uint32_t keyLength); 40 int multiprecision_iszero(DWORD *a, uint32_t keyLength); 41 void multiprecision_init(DWORD *c, uint32_t keyLength); 42 void multiprecision_copy(DWORD *c, DWORD *a, uint32_t keyLength); 44 UINT32 multiprecision_most_signdwords(DWORD *a, uint32_t keyLength); 45 UINT32 multiprecision_most_signbits(DWORD *a, uint32_t keyLength); 46 void multiprecision_inv_mod(DWORD *aminus, DWORD *a, uint32_t keyLength); 47 DWORD multiprecision_add(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); // c=a+b 48 void multiprecision_add_mod(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); 49 DWORD multiprecision_sub(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); // c=a-b [all …]
|
D | p_256_multprecision.c | 30 void multiprecision_init(DWORD *c, uint32_t keyLength) in multiprecision_init() argument 32 for (uint32_t i = 0; i < keyLength; i++) in multiprecision_init() 36 void multiprecision_copy(DWORD *c, DWORD *a, uint32_t keyLength) in multiprecision_copy() argument 38 for (uint32_t i = 0; i < keyLength; i++) in multiprecision_copy() 42 int multiprecision_compare(DWORD *a, DWORD *b, uint32_t keyLength) in multiprecision_compare() argument 44 for (int i = keyLength - 1; i >= 0; i--) in multiprecision_compare() 54 int multiprecision_iszero(DWORD *a, uint32_t keyLength) in multiprecision_iszero() argument 56 for (uint32_t i = 0; i < keyLength; i++) in multiprecision_iszero() 73 UINT32 multiprecision_most_signdwords(DWORD *a, uint32_t keyLength) in multiprecision_most_signdwords() argument 76 for (i = keyLength - 1; i >= 0; i--) in multiprecision_most_signdwords() [all …]
|
D | p_256_ecc_pp.h | 59 void ECC_PointMult_Bin_NAF(Point *q, Point *p, DWORD *n, uint32_t keyLength); 61 #define ECC_PointMult(q, p, n, keyLength) ECC_PointMult_Bin_NAF(q, p, n, keyLength) argument 63 void p_256_init_curve(UINT32 keyLength);
|
D | p_256_curvepara.c | 28 void p_256_init_curve(UINT32 keyLength) in p_256_init_curve() argument 32 if(keyLength == KEY_LENGTH_DWORDS_P256) in p_256_init_curve()
|
/system/security/keystore/ |
D | keystore_get.cpp | 24 ssize_t keystore_get(const char *key, size_t keyLength, uint8_t** value) { in keystore_get() argument 34 int32_t ret = service->get(String16(key, keyLength), -1, value, &valueLength); in keystore_get()
|
D | IKeystoreService.cpp | 717 size_t keyLength = item->size(); in generate() local 718 data.writeInt32(keyLength); in generate() 719 void* buf = data.writeInplace(keyLength); in generate() 720 memcpy(buf, item->data(), keyLength); in generate() 736 virtual int32_t import(const String16& name, const uint8_t* key, size_t keyLength, int uid, in import() argument 742 data.writeInt32(keyLength); in import() 743 void* buf = data.writeInplace(keyLength); in import() 744 memcpy(buf, key, keyLength); in import() 1065 size_t keyLength, int uid, int flags, in importKey() argument 1074 data.writeByteArray(keyLength, keyData); in importKey() [all …]
|
D | key_store_service.h | 100 keymaster_key_format_t format, const uint8_t* keyData, size_t keyLength,
|
D | key_store_service.cpp | 725 size_t keyLength, int uid, int flags, in importKey() argument 742 const keymaster_blob_t input = {keyData, keyLength}; in importKey()
|
/system/security/keystore/include/keystore/ |
D | IKeystoreService.h | 218 size_t keyLength, int uid, int flags,
|
/system/tpm/attestation/common/ |
D | tpm_utility_v1.cc | 706 rsa.get()->n = BN_bin2bn(parsed.pubKey.key, parsed.pubKey.keyLength, nullptr); in ConvertPublicKeyToDER()
|