Home | History | Annotate | Download | only in recovery

Lines Matching defs:cert

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