Lines Matching refs:algorithm
23 VbPrivateKey* PrivateKeyReadPem(const char* filename, uint64_t algorithm) { in PrivateKeyReadPem() argument
29 if (algorithm >= kNumAlgorithms) { in PrivateKeyReadPem()
55 key->algorithm = algorithm; in PrivateKeyReadPem()
90 if (1 != fwrite(&key->algorithm, sizeof(key->algorithm), 1, f)) { in PrivateKeyWrite()
128 key->algorithm = *(typeof(key->algorithm) *)buffer; in PrivateKeyRead()
129 start = buffer + sizeof(key->algorithm); in PrivateKeyRead()
132 filelen - sizeof(key->algorithm)); in PrivateKeyRead()
147 VbPublicKey* PublicKeyAlloc(uint64_t key_size, uint64_t algorithm, in PublicKeyAlloc() argument
153 key->algorithm = algorithm; in PublicKeyAlloc()
160 VbPublicKey* PublicKeyReadKeyb(const char* filename, uint64_t algorithm, in PublicKeyReadKeyb() argument
167 if (algorithm >= kNumAlgorithms) { in PublicKeyReadKeyb()
181 if (!RSAProcessedKeySize(algorithm, &expected_key_size) || in PublicKeyReadKeyb()
188 key = PublicKeyAlloc(key_size, algorithm, version); in PublicKeyReadKeyb()
209 if (key->algorithm >= kNumAlgorithms) { in PublicKeyLooksOkay()
217 if (!RSAProcessedKeySize(key->algorithm, &key_size) || in PublicKeyLooksOkay()