| /src/crypto/external/cpl/trousers/dist/src/tspi/ |
| tsp_asym.c | 38 TPM_PUBKEY pubKey; 50 if ((result = Trspi_UnloadBlob_PUBKEY(&offset, blob, &pubKey))) { 56 if (pubKey.pubKey.keyLength < inDataLen) { 61 if (pubKey.algorithmParms.encScheme == TPM_ES_RSAESPKCSv15 || 62 pubKey.algorithmParms.encScheme == TSS_ES_RSAESPKCSV15) { 64 pubKey.pubKey.key, pubKey.pubKey.keyLength)) [all...] |
| tsp_own.c | 99 free(dummyKey.pubKey.key); 105 free(dummyKey.pubKey.key); 112 encOwnerAuthLength, dummyKey.pubKey.key, 113 dummyKey.pubKey.keyLength))) { 114 free(dummyKey.pubKey.key); 120 encSRKAuthLength, dummyKey.pubKey.key, 121 dummyKey.pubKey.keyLength))) { 122 free(dummyKey.pubKey.key); 127 free(dummyKey.pubKey.key);
|
| tspi_sign.c | 110 BYTE *pubKey = NULL; 123 if ((result = obj_rsakey_get_modulus(hKey, &pubKeySize, &pubKey))) 127 free_tspi(tspContext, pubKey); 132 free_tspi(tspContext, pubKey); 137 result = Trspi_Verify(TSS_HASH_SHA1, hashData, hashDataSize, pubKey, pubKeySize, 140 result = Trspi_Verify(TSS_HASH_OTHER, hashData, hashDataSize, pubKey, pubKeySize, 146 free_tspi(tspContext, pubKey);
|
| tspi_bind.c | 51 /* XXX Just get the pubkey here */ 68 if (keyContainer.pubKey.keyLength < ulDataLength) { 76 &encDataLength, keyContainer.pubKey.key, 77 keyContainer.pubKey.keyLength))) 96 &encDataLength, keyContainer.pubKey.key, 97 keyContainer.pubKey.keyLength))) { 119 keyContainer.pubKey.key, 120 keyContainer.pubKey.keyLength))) {
|
| tspi_ek.c | 149 TCPA_PUBKEY pubKey; 152 __tspi_memset(&pubKey, 0, sizeof(TCPA_PUBKEY)); 190 /* check validation of the entire pubkey structure */ 193 * just the pubKey portion of the pubEK. This is done on 197 __tspi_memset(&pubKey, 0, sizeof(TCPA_PUBKEY)); 198 if ((result = Trspi_UnloadBlob_PUBKEY(&offset, pubEK, &pubKey))) 202 result |= Trspi_HashUpdate(&hashCtx, pubKey.pubKey.keyLength, 203 pubKey.pubKey.key) [all...] |
| tspi_key.c | 485 pubLen = keyContainer.pubKey.keyLength; 641 BYTE *pubKey = NULL; 671 /* Get associated pubKey */ 672 if ((result = obj_rsakey_get_pub_blob(hTssKey, &pubKeyLen, &pubKey))) 678 LogDebugData(pubKeyLen, pubKey); 679 result |= Trspi_HashUpdate(&hashCtx, pubKeyLen, pubKey); 683 free_tspi(tspContext, pubKey); 689 free_tspi(tspContext, pubKey); 693 if ((result = RPC_KeyControlOwner(tspContext, hTcsKey, pubKeyLen, pubKey, tpmAttribName, 695 free_tspi(tspContext, pubKey); [all...] |
| obj_rsakey.c | 104 rsakey->key.pubKey.keyLength = 0; 284 rsakey->key.pubKey.keyLength = len/8; 883 switch (rsakey->key.pubKey.keyLength) { 894 *len = rsakey->key.pubKey.keyLength * 8; 1140 if (!memcmp(rsakey->key.pubKey.key, zeroBlob, rsakey->key.pubKey.keyLength)) { 1146 *data = calloc_tspi(obj->tspContext, rsakey->key.pubKey.keyLength); 1148 LogError("malloc of %u bytes failed.", rsakey->key.pubKey.keyLength); 1152 *size = rsakey->key.pubKey.keyLength; 1153 memcpy(*data, rsakey->key.pubKey.key, rsakey->key.pubKey.keyLength) [all...] |
| tspi_cmk.c | 130 BYTE *pubKey = NULL; 148 if ((result = obj_rsakey_get_pub_blob(hVerifyKey, &pubKeySize, &pubKey))) 161 result |= Trspi_HashUpdate(&hashCtx, pubKeySize, pubKey); 172 if ((result = RPC_CMK_CreateTicket(hContext, pubKeySize, pubKey, sigData, sigSize, sig, 190 free_tspi(hContext, pubKey); 252 free(tpmMigKeyAuth.migrationKey.pubKey.key);
|
| tsp_key.c | 31 free(key->pubKey.key); 32 key->pubKey.key = NULL; 33 key->pubKey.keyLength = 0; 293 /* This function both encrypts the handle of the pubkey being requested and requires the hash 294 * of that pubkey for the transport log when logging is enabled. */
|
| tspi_quote.c | 191 keyContainer.pubKey.key, 192 keyContainer.pubKey.keyLength,
|
| tspi_selftest.c | 140 keyContainer.pubKey.key, keyContainer.pubKey.keyLength,
|
| tspi_migration.c | 96 Trspi_LoadBlob_STORE_PUBKEY(&offset, pubKeyBlob, &tssKey.pubKey); 208 free(migAuth.migrationKey.pubKey.key); 209 migAuth.migrationKey.pubKey.keyLength = 0;
|
| tspi_aik.c | 132 /* get the CA Pubkey's encryption scheme */ 166 Trspi_LoadBlob_STORE_PUBKEY(&offset, chosenIDBlob, &caKey.pubKey); 366 caKey.pubKey.key, caKey.pubKey.keyLength,
|
| tspi_changeauth.c | 279 ephemeralKey.pubKey.key, 280 ephemeralKey.pubKey.keyLength);
|
| obj.c | 290 result |= Trspi_Hash_STORE_PUBKEY(&hashCtx, &rsakey->key.pubKey);
|
| /src/crypto/external/cpl/trousers/dist/src/tcs/ |
| tcs_key_mem_cache.c | 93 ret = tmp->blob ? &tmp->blob->pubKey : NULL; 114 ret = tmp->blob ? &tmp->blob->pubKey : NULL; 207 tmp->blob->pubKey.keyLength == pub->keyLength && 208 !memcmp(tmp->blob->pubKey.key, pub->key, pub->keyLength)) { 346 if (key_blob->pubKey.keyLength > 0) { 347 entry->blob->pubKey.key = (BYTE *)malloc(key_blob->pubKey.keyLength); 348 if (entry->blob->pubKey.key == NULL) { 349 LogError("malloc of %u bytes failed.", key_blob->pubKey.keyLength); 355 memcpy(entry->blob->pubKey.key, key_blob->pubKey.key, key_blob->pubKey.keyLength) [all...] |
| tcs_key.c | 46 if ((tcsHandle = mc_get_handle_by_pub(&key.pubKey, hParent)) == NULL_TCS_HANDLE) { 170 if ((tcs_handle = mc_get_handle_by_pub(&key.pubKey, parent_handle))) { 481 if ((rc = UnloadBlob_STORE_PUBKEY(offset, blob, &key->pubKey))) { 505 free(key->pubKey.key); 506 key->pubKey.key = NULL; 507 key->pubKey.keyLength = 0; 530 LoadBlob_STORE_PUBKEY(offset, blob, &key->pubKey); 539 LoadBlob_STORE_PUBKEY(offset, blob, &(key->pubKey)); 555 if ((rc = UnloadBlob_STORE_PUBKEY(offset, blob, &key->pubKey))) { 577 free(key->pubKey.key) [all...] |
| tcsi_own.c | 103 /* Set the SRK pubkey to all 0's before writing the SRK to disk, this is for 105 save = srkKeyContainer.pubKey.key; 106 srkKeyContainer.pubKey.key = fake_pubkey; 119 srkKeyContainer.pubKey.key = save;
|
| tcsi_ps.c | 610 TCPA_STORE_PUBKEY pubKey; 613 pubKey.key = NULL; 620 pubKey.keyLength = ulPublicInfoLength; 621 pubKey.key = malloc(pubKey.keyLength); 622 if (pubKey.key == NULL) { 623 LogError("malloc of %d bytes failed.", pubKey.keyLength); 627 memcpy(pubKey.key, rgbPublicInfo, pubKey.keyLength); 629 if ((result = ps_get_key_by_pub(&pubKey, keySize, keyBlob))) [all...] |
| /src/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/ |
| rpc_maint.c | 212 BYTE *pubKey; 230 pubKey = (BYTE *)malloc(pubKeySize); 231 if (pubKey == NULL) { 236 if (getData(TCSD_PACKET_TYPE_PBYTE, 3, pubKey, pubKeySize, &data->comm)) { 237 free(pubKey); 243 result = TCSP_LoadManuMaintPub_Internal(hContext, antiReplay, pubKeySize, pubKey, 247 free(pubKey);
|
| rpc_key.c | 68 BYTE *pubKey; 93 result = TCSP_GetPubKey_Internal(hContext, hKey, pAuth, &pubKeySize, &pubKey); 102 free(pubKey); 106 free(pubKey); 109 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, pubKey, pubKeySize, &data->comm)) { 110 free(pubKey); 113 free(pubKey);
|
| /src/crypto/external/cpl/trousers/dist/src/include/trousers/ |
| trousers.h | 46 TSS_RESULT Trspi_UnloadBlob_PUBKEY(UINT64 *offset, BYTE *blob, TCPA_PUBKEY *pubKey); 95 void Trspi_LoadBlob_PUBKEY(UINT64 *offset, BYTE *blob, TCPA_PUBKEY *pubKey); 151 TSS_RESULT Trspi_Hash_PUBKEY(Trspi_HashCtx *c, TCPA_PUBKEY *pubKey); 205 unsigned char *pubkey, unsigned int pubsize, 212 #define Trspi_RSA_PKCS15_Encrypt(in,inlen,out,outlen,pubKey,pubSize) \ 213 Trspi_RSA_Public_Encrypt(in,inlen,out,outlen,pubKey,pubSize,65537,TR_RSA_PKCS1_PADDING) 215 #define Trspi_RSA_OAEP_Encrypt(in,inlen,out,outlen,pubKey,pubSize) \ 216 Trspi_RSA_Public_Encrypt(in,inlen,out,outlen,pubKey,pubSize,65537, \ 219 #define Trspi_TPM_RSA_OAEP_Encrypt(in,inlen,out,outlen,pubKey,pubSize) \ 220 Trspi_RSA_Encrypt(in,inlen,out,outlen,pubKey,pubSize [all...] |
| /src/crypto/external/cpl/trousers/dist/src/include/ |
| trousers_types.h | 116 TPM_STORE_PUBKEY pubKey;
|
| /src/crypto/external/cpl/trousers/dist/src/trspi/ |
| trousers.c | 68 Trspi_LoadBlob_PUBKEY(UINT64 *offset, BYTE *blob, TCPA_PUBKEY *pubKey) 70 Trspi_LoadBlob_KEY_PARMS(offset, blob, &pubKey->algorithmParms); 71 Trspi_LoadBlob_STORE_PUBKEY(offset, blob, &pubKey->pubKey); 75 Trspi_UnloadBlob_PUBKEY(UINT64 *offset, BYTE *blob, TCPA_PUBKEY *pubKey) 79 if (!pubKey) { 86 if ((result = Trspi_UnloadBlob_KEY_PARMS(offset, blob, &pubKey->algorithmParms))) 88 if ((result = Trspi_UnloadBlob_STORE_PUBKEY(offset, blob, &pubKey->pubKey))) { 89 free(pubKey->pubKey.key) [all...] |
| /src/external/apache2/mDNSResponder/dist/Clients/dnssdutil/ |
| DNSServerDNSSEC.c | 31 check_compile_time( offsetof( DNSKey ## ALG_NAME ## Info, pubKey ) == sizeof( dns_fixed_fields_dnskey ) ); \ 45 uint8_t pubKey[ kRSASHA1_PublicKeyBytes ]; // Public key. 63 uint8_t pubKey[ kRSASHA256_PublicKeyBytes ]; // Public key. 81 uint8_t pubKey[ kRSASHA512_PublicKeyBytes ]; // Public key. 99 uint8_t pubKey[ kECDSAP256SHA256_PublicKeyBytes ]; // Public key. 117 uint8_t pubKey[ kECDSAP384SHA384_PublicKeyBytes ]; // Public key. 131 uint8_t pubKey[ kEd25519_PublicKeyBytes ]; // Public key. 194 .pubKey = 296 .pubKey = 401 .pubKey [all...] |