Lines Matching refs:scheme
53 TPMT_KDF_SCHEME *scheme // IN: a decrypt scheme in CryptEccSelectScheme() argument
59 if(scheme->scheme == TPM_ALG_NULL) in CryptEccSelectScheme()
60 *scheme = *keyScheme; in CryptEccSelectScheme()
61 if(keyScheme->scheme == TPM_ALG_NULL) in CryptEccSelectScheme()
62 keyScheme = scheme; in CryptEccSelectScheme()
63 return (scheme->scheme != TPM_ALG_NULL && in CryptEccSelectScheme()
64 (keyScheme->scheme == scheme->scheme in CryptEccSelectScheme()
65 && keyScheme->details.anyKdf.hashAlg == scheme->details.anyKdf.hashAlg)); in CryptEccSelectScheme()
81 TPMT_KDF_SCHEME *scheme, // IN: scheme to use. in CryptEccEncrypt() argument
116 if (TPM_ALG_KDF2 != scheme->scheme) in CryptEccEncrypt()
128 if (0 == CryptHashStart(&hashState, scheme->details.mgf1.hashAlg)) in CryptEccEncrypt()
139 scheme->details.mgf1.hashAlg, z.t.size, z.t.buffer, 1); in CryptEccEncrypt()
159 TPMT_KDF_SCHEME *scheme, // IN: scheme to use. in CryptEccDecrypt() argument
180 if (TPM_ALG_KDF2 != scheme->scheme) in CryptEccDecrypt()
187 if (0 == CryptHashStart(&hashState, scheme->details.mgf1.hashAlg)) in CryptEccDecrypt()
196 scheme->details.mgf1.hashAlg, z.t.size, in CryptEccDecrypt()