Home
last modified time | relevance | path

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

/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/
DAlgorithmTests.c454 static TPMT_SIGNATURE testSig; in TestRsaSignAndVerify() local
474 testSig.sigAlg = scheme; in TestRsaSignAndVerify()
475 testSig.signature.rsapss.hash = DEFAULT_TEST_HASH; in TestRsaSignAndVerify()
492 if(TPM_RC_SUCCESS != CryptRsaSign(&testSig, &testObject, &testDigest, NULL)) in TestRsaSignAndVerify()
495 if(testSig.sigAlg == TPM_ALG_RSASSA) in TestRsaSignAndVerify()
497 if(testSig.signature.rsassa.sig.t.size != RSA_TEST_KEY_SIZE in TestRsaSignAndVerify()
499 testSig.signature.rsassa.sig.t.buffer, in TestRsaSignAndVerify()
504 if(TPM_RC_SUCCESS != CryptRsaValidateSignature(&testSig, &testObject, in TestRsaSignAndVerify()
511 MemoryCopy2B(&testSig.signature.rsapss.sig.b, (P2B)&c_RsapssKvt, in TestRsaSignAndVerify()
512 sizeof(testSig.signature.rsapss.sig.t.buffer)); in TestRsaSignAndVerify()
[all …]