• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:cert

344             Certificate* cert = out + (*numKeys - 1);  in load_keys()  local
345 memset(cert, '\0', sizeof(Certificate)); in load_keys()
351 cert->key_type = Certificate::RSA; in load_keys()
352 cert->rsa = (RSAPublicKey*)malloc(sizeof(RSAPublicKey)); in load_keys()
353 cert->rsa->exponent = 3; in load_keys()
354 cert->hash_len = SHA_DIGEST_SIZE; in load_keys()
360 cert->key_type = Certificate::RSA; in load_keys()
361 cert->rsa = (RSAPublicKey*)malloc(sizeof(RSAPublicKey)); in load_keys()
362 cert->rsa->exponent = 65537; in load_keys()
363 cert->hash_len = SHA_DIGEST_SIZE; in load_keys()
366 cert->key_type = Certificate::RSA; in load_keys()
367 cert->rsa = (RSAPublicKey*)malloc(sizeof(RSAPublicKey)); in load_keys()
368 cert->rsa->exponent = 3; in load_keys()
369 cert->hash_len = SHA256_DIGEST_SIZE; in load_keys()
372 cert->key_type = Certificate::RSA; in load_keys()
373 cert->rsa = (RSAPublicKey*)malloc(sizeof(RSAPublicKey)); in load_keys()
374 cert->rsa->exponent = 65537; in load_keys()
375 cert->hash_len = SHA256_DIGEST_SIZE; in load_keys()
378 cert->key_type = Certificate::EC; in load_keys()
379 cert->ec = (ECPublicKey*)calloc(1, sizeof(ECPublicKey)); in load_keys()
380 cert->hash_len = SHA256_DIGEST_SIZE; in load_keys()
387 if (cert->key_type == Certificate::RSA) { in load_keys()
388 RSAPublicKey* key = cert->rsa; in load_keys()
406 LOGI("read key e=%d hash=%d\n", key->exponent, cert->hash_len); in load_keys()
407 } else if (cert->key_type == Certificate::EC) { in load_keys()
408 ECPublicKey* key = cert->ec; in load_keys()
433 LOGE("Unknown key type %d\n", cert->key_type); in load_keys()