Lines Matching refs:scheme
88 &signKey->publicArea.parameters.keyedHashDetail.scheme; in CryptHMACVerifySignature()
98 if((keyScheme->scheme != TPM_ALG_NULL) in CryptHMACVerifySignature()
99 && ((keyScheme->scheme != signature->sigAlg) in CryptHMACVerifySignature()
132 TPMT_KEYEDHASH_SCHEME *scheme; in CryptGenerateKeyedHash() local
136 scheme = &publicArea->parameters.keyedHashDetail.scheme; in CryptGenerateKeyedHash()
142 if(scheme->scheme == TPM_ALG_NULL) in CryptGenerateKeyedHash()
144 else if(scheme->scheme == TPM_ALG_XOR) in CryptGenerateKeyedHash()
145 hashAlg = scheme->details.xor.hashAlg; in CryptGenerateKeyedHash()
147 hashAlg = scheme->details.hmac.hashAlg; in CryptGenerateKeyedHash()
191 TPM_ALG_ID scheme // IN: the scheme algorithm to test in CryptIsSchemeAnonymous() argument
194 return scheme == TPM_ALG_ECDAA; in CryptIsSchemeAnonymous()
530 TPMT_RSA_DECRYPT scheme; in CryptSecretEncrypt() local
539 scheme.scheme = TPM_ALG_OAEP; in CryptSecretEncrypt()
540 scheme.details.anySig.hashAlg = encryptKey->publicArea.nameAlg; in CryptSecretEncrypt()
554 encryptKey, &scheme, label, NULL); in CryptSecretEncrypt()
668 TPMT_RSA_DECRYPT scheme; in CryptSecretDecrypt() local
670 = &decryptKey->publicArea.parameters.rsaDetail.scheme; in CryptSecretDecrypt()
673 scheme = *(TPMT_RSA_DECRYPT *)keyScheme; in CryptSecretDecrypt()
676 if(scheme.scheme == TPM_ALG_NULL) in CryptSecretDecrypt()
679 scheme.scheme = TPM_ALG_OAEP; in CryptSecretDecrypt()
680 scheme.details.oaep.hashAlg = decryptKey->publicArea.nameAlg; in CryptSecretDecrypt()
690 digestSize = CryptHashGetDigestSize(scheme.details.oaep.hashAlg); in CryptSecretDecrypt()
691 if(scheme.scheme != TPM_ALG_OAEP || digestSize == 0) in CryptSecretDecrypt()
699 decryptKey, &scheme, label); in CryptSecretDecrypt()
1183 TPM_ALG_ID scheme // IN: the algorithm selector in CryptIsSplitSign() argument
1186 switch(scheme) in CryptIsSplitSign()
1204 TPMI_ALG_ASYM_SCHEME scheme // IN: the scheme in CryptIsAsymSignScheme() argument
1213 switch(scheme) in CryptIsAsymSignScheme()
1231 switch(scheme) in CryptIsAsymSignScheme()
1263 TPMI_ALG_ASYM_SCHEME scheme // IN: the scheme in CryptIsAsymDecryptScheme() argument
1272 switch(scheme) in CryptIsAsymDecryptScheme()
1287 switch(scheme) in CryptIsAsymDecryptScheme()
1335 TPMT_SIG_SCHEME *scheme // IN/OUT: signing scheme in CryptSelectSignScheme() argument
1347 scheme->scheme = TPM_ALG_NULL; in CryptSelectSignScheme()
1348 scheme->details.any.hashAlg = TPM_ALG_NULL; in CryptSelectSignScheme()
1362 (TPMT_SIG_SCHEME *)&publicArea->parameters.asymDetail.scheme; in CryptSelectSignScheme()
1365 (TPMT_SIG_SCHEME *)&publicArea->parameters.keyedHashDetail.scheme; in CryptSelectSignScheme()
1369 if(objectScheme->scheme == TPM_ALG_NULL) in CryptSelectSignScheme()
1372 OK = (scheme->scheme != TPM_ALG_NULL); in CryptSelectSignScheme()
1376 else if(scheme->scheme == TPM_ALG_NULL) in CryptSelectSignScheme()
1382 OK = !CryptIsSplitSign(objectScheme->scheme); in CryptSelectSignScheme()
1388 *scheme = *objectScheme; in CryptSelectSignScheme()
1398 OK = (objectScheme->scheme == scheme->scheme) in CryptSelectSignScheme()
1400 == scheme->details.any.hashAlg); in CryptSelectSignScheme()
1433 signature->sigAlg = signScheme->scheme; in CryptSign()
1706 TPMT_KEYEDHASH_SCHEME *scheme; in CryptValidateKeys() local
1708 scheme = ¶ms->keyedHashDetail.scheme; in CryptValidateKeys()
1709 if(scheme->scheme == TPM_ALG_XOR) in CryptValidateKeys()
1711 maxSize = CryptHashGetBlockSize(scheme->details.xor.hashAlg); in CryptValidateKeys()
1713 else if(scheme->scheme == TPM_ALG_HMAC) in CryptValidateKeys()
1715 maxSize = CryptHashGetBlockSize(scheme->details.hmac.hashAlg); in CryptValidateKeys()
1717 else if(scheme->scheme == TPM_ALG_NULL) in CryptValidateKeys()
1774 TPMT_KEYEDHASH_SCHEME *scheme; in CryptSelectMac() local
1775 scheme = &publicArea->parameters.keyedHashDetail.scheme; in CryptSelectMac()
1777 if(scheme->scheme != TPM_ALG_NULL) in CryptSelectMac()
1778 macAlg = scheme->details.hmac.hashAlg; in CryptSelectMac()
1783 TPMT_SYM_DEF_OBJECT *scheme; in CryptSelectMac() local
1784 scheme = &publicArea->parameters.symDetail.sym; in CryptSelectMac()
1786 if(scheme->algorithm != TPM_ALG_NULL) in CryptSelectMac()
1787 macAlg = scheme->mode.sym; in CryptSelectMac()