Home
last modified time | relevance | path

Searched refs:s_rsaKeyCache (Results 1 – 1 of 1) sorted by relevance

/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/
DRsaKeyCache.c103 RSA_KEY_CACHE s_rsaKeyCache[RSA_KEY_CACHE_ENTRIES]; variable
146 s_rsaKeyCache[index].publicModulus = publicArea->unique.rsa; in InitializeKeyCache()
147 s_rsaKeyCache[index].privateExponent = sensitive->sensitive.rsa; in InitializeKeyCache()
170 if(fwrite(s_rsaKeyCache, 1, sizeof(s_rsaKeyCache), cacheFile) in InitializeKeyCache()
171 != sizeof(s_rsaKeyCache)) in InitializeKeyCache()
209 if(ftell(cacheFile) == sizeof(s_rsaKeyCache)) in KeyCacheLoaded()
213 fread(&s_rsaKeyCache, 1, sizeof(s_rsaKeyCache), cacheFile) in KeyCacheLoaded()
214 == sizeof(s_rsaKeyCache)); in KeyCacheLoaded()
244 if((s_rsaKeyCache[index].publicModulus.t.size * 8) == keyBits) in GetCachedRsaKey()
246 publicArea->unique.rsa = s_rsaKeyCache[index].publicModulus; in GetCachedRsaKey()
[all …]