Lines Matching refs:algorithmParms

55     if (idKeyParams->algorithmParms.encScheme != TPM_ES_NONE  in TPM_MakeIdentity()
56 || idKeyParams->algorithmParms.sigScheme != TPM_SS_RSASSAPKCS1v15_SHA1) in TPM_MakeIdentity()
64 switch (idKeyParams->algorithmParms.algorithmID) { in TPM_MakeIdentity()
66 if (idKeyParams->algorithmParms.parmSize == 0 in TPM_MakeIdentity()
67 || idKeyParams->algorithmParms.parms.rsa.keyLength != 2048 in TPM_MakeIdentity()
68 || idKeyParams->algorithmParms.parms.rsa.numPrimes != 2 in TPM_MakeIdentity()
69 || idKeyParams->algorithmParms.parms.rsa.exponentSize != 0) in TPM_MakeIdentity()
141 idKey->algorithmParms.algorithmID = in TPM_MakeIdentity()
142 idKeyParams->algorithmParms.algorithmID; in TPM_MakeIdentity()
143 idKey->algorithmParms.encScheme = idKeyParams->algorithmParms.encScheme; in TPM_MakeIdentity()
144 idKey->algorithmParms.sigScheme = idKeyParams->algorithmParms.sigScheme; in TPM_MakeIdentity()
145 idKey->algorithmParms.parmSize = idKeyParams->algorithmParms.parmSize; in TPM_MakeIdentity()
146 switch (idKeyParams->algorithmParms.algorithmID) { in TPM_MakeIdentity()
148 idKey->algorithmParms.parms.rsa.keyLength = in TPM_MakeIdentity()
149 idKeyParams->algorithmParms.parms.rsa.keyLength; in TPM_MakeIdentity()
150 idKey->algorithmParms.parms.rsa.numPrimes = in TPM_MakeIdentity()
151 idKeyParams->algorithmParms.parms.rsa.numPrimes; in TPM_MakeIdentity()
152 idKey->algorithmParms.parms.rsa.exponentSize = in TPM_MakeIdentity()
153 idKeyParams->algorithmParms.parms.rsa.exponentSize; in TPM_MakeIdentity()
182 idKey->algorithmParms.algorithmID = in TPM_MakeIdentity()
183 idKeyParams->algorithmParms.algorithmID; in TPM_MakeIdentity()
184 idKey->algorithmParms.encScheme = idKeyParams->algorithmParms.encScheme; in TPM_MakeIdentity()
185 idKey->algorithmParms.sigScheme = idKeyParams->algorithmParms.sigScheme; in TPM_MakeIdentity()
186 idKey->algorithmParms.parmSize = idKeyParams->algorithmParms.parmSize; in TPM_MakeIdentity()
187 switch (idKeyParams->algorithmParms.algorithmID) { in TPM_MakeIdentity()
189 idKey->algorithmParms.parms.rsa.keyLength = in TPM_MakeIdentity()
190 idKeyParams->algorithmParms.parms.rsa.keyLength; in TPM_MakeIdentity()
191 idKey->algorithmParms.parms.rsa.numPrimes = in TPM_MakeIdentity()
192 idKeyParams->algorithmParms.parms.rsa.numPrimes; in TPM_MakeIdentity()
193 idKey->algorithmParms.parms.rsa.exponentSize = in TPM_MakeIdentity()
194 idKeyParams->algorithmParms.parms.rsa.exponentSize; in TPM_MakeIdentity()
223 key_length = idKeyParams->algorithmParms.parms.rsa.keyLength; in TPM_MakeIdentity()
287 idContents.identityPubKey.algorithmParms.algorithmID = in TPM_MakeIdentity()
288 idKey->algorithmParms.algorithmID; in TPM_MakeIdentity()
289 idContents.identityPubKey.algorithmParms.encScheme = in TPM_MakeIdentity()
290 idKey->algorithmParms.encScheme; in TPM_MakeIdentity()
291 idContents.identityPubKey.algorithmParms.sigScheme = in TPM_MakeIdentity()
292 idKey->algorithmParms.sigScheme; in TPM_MakeIdentity()
293 idContents.identityPubKey.algorithmParms.parmSize = in TPM_MakeIdentity()
294 idKey->algorithmParms.parmSize; in TPM_MakeIdentity()
295 switch (idKey->algorithmParms.algorithmID) { in TPM_MakeIdentity()
297 idContents.identityPubKey.algorithmParms.parms.rsa.keyLength = in TPM_MakeIdentity()
298 idKey->algorithmParms.parms.rsa.keyLength; in TPM_MakeIdentity()
299 idContents.identityPubKey.algorithmParms.parms.rsa.numPrimes = in TPM_MakeIdentity()
300 idKey->algorithmParms.parms.rsa.numPrimes; in TPM_MakeIdentity()
301 idContents.identityPubKey.algorithmParms.parms.rsa.exponentSize = in TPM_MakeIdentity()
302 idKey->algorithmParms.parms.rsa.exponentSize; in TPM_MakeIdentity()
430 if (tpm_setup_key_parms(idKey, &pubKey.algorithmParms) != 0) { in TPM_ActivateIdentity()
435 tpm_free(pubKey.algorithmParms.parms.rsa.exponent); in TPM_ActivateIdentity()
436 pubKey.algorithmParms.parms.rsa.exponentSize = 0; in TPM_ActivateIdentity()
437 pubKey.algorithmParms.parmSize = 12; in TPM_ActivateIdentity()