Home | History | Annotate | Download | only in recovery

Lines Matching refs:cert

343             Certificate* cert = out + (*numKeys - 1);
344 memset(cert, '\0', sizeof(Certificate));
350 cert->key_type = Certificate::RSA;
351 cert->rsa = (RSAPublicKey*)malloc(sizeof(RSAPublicKey));
352 cert->rsa->exponent = 3;
353 cert->hash_len = SHA_DIGEST_SIZE;
359 cert->key_type = Certificate::RSA;
360 cert->rsa = (RSAPublicKey*)malloc(sizeof(RSAPublicKey));
361 cert->rsa->exponent = 65537;
362 cert->hash_len = SHA_DIGEST_SIZE;
365 cert->key_type = Certificate::RSA;
366 cert->rsa = (RSAPublicKey*)malloc(sizeof(RSAPublicKey));
367 cert->rsa->exponent = 3;
368 cert->hash_len = SHA256_DIGEST_SIZE;
371 cert->key_type = Certificate::RSA;
372 cert->rsa = (RSAPublicKey*)malloc(sizeof(RSAPublicKey));
373 cert->rsa->exponent = 65537;
374 cert->hash_len = SHA256_DIGEST_SIZE;
377 cert->key_type = Certificate::EC;
378 cert->ec = (ECPublicKey*)calloc(1, sizeof(ECPublicKey));
379 cert->hash_len = SHA256_DIGEST_SIZE;
386 if (cert->key_type == Certificate::RSA) {
387 RSAPublicKey* key = cert->rsa;
405 LOGI("read key e=%d hash=%d\n", key->exponent, cert->hash_len);
406 } else if (cert->key_type == Certificate::EC) {
407 ECPublicKey* key = cert->ec;
432 cert->key_type);