Lines Matching refs:signature
448 string signature; in TEST_P() local
449 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
462 string signature; in TEST_P() local
463 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
475 string signature; in TEST_P() local
492 string signature; in TEST_P() local
493 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
505 string signature; in TEST_P() local
506 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
526 string signature; in TEST_P() local
527 EXPECT_EQ(KM_ERROR_INVALID_INPUT_LENGTH, FinishOperation(&signature)); in TEST_P()
541 string signature; in TEST_P() local
555 string signature; in TEST_P() local
631 string signature; in TEST_P() local
632 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
658 string signature; in TEST_P() local
678 string signature; in TEST_P() local
679 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
689 string signature; in TEST_P() local
690 SignMessage(message, &signature, KM_DIGEST_SHA_2_256); in TEST_P()
700 string signature; in TEST_P() local
701 SignMessage(message, &signature, KM_DIGEST_SHA_2_384); in TEST_P()
711 string signature; in TEST_P() local
737 string signature; in TEST_P() local
740 SignMessage(message, &signature, digest); in TEST_P()
769 string signature; in TEST_P() local
770 MacMessage(message, &signature, 160); in TEST_P()
771 ASSERT_EQ(20U, signature.size()); in TEST_P()
786 string signature; in TEST_P() local
787 MacMessage(message, &signature, 224); in TEST_P()
788 ASSERT_EQ(28U, signature.size()); in TEST_P()
803 string signature; in TEST_P() local
804 MacMessage(message, &signature, 256); in TEST_P()
805 ASSERT_EQ(32U, signature.size()); in TEST_P()
821 string signature; in TEST_P() local
822 MacMessage(message, &signature, 384); in TEST_P()
823 ASSERT_EQ(48U, signature.size()); in TEST_P()
838 string signature; in TEST_P() local
839 MacMessage(message, &signature, 512); in TEST_P()
840 ASSERT_EQ(64U, signature.size()); in TEST_P()
852 string signature; in TEST_P() local
853 MacMessage(message, &signature, 160); in TEST_P()
854 ASSERT_EQ(20U, signature.size()); in TEST_P()
1161 string signature; in TEST_P() local
1162 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
1163 VerifyMessage(message, signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
1176 string signature; in TEST_P() local
1177 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
1178 VerifyMessage(message, signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
1191 string signature; in TEST_P() local
1192 SignMessage(message, &signature, KM_DIGEST_SHA_2_224, KM_PAD_RSA_PSS); in TEST_P()
1193 VerifyMessage(message, signature, KM_DIGEST_SHA_2_224, KM_PAD_RSA_PSS); in TEST_P()
1215 EVP_DigestVerifyFinal(&digest_ctx, reinterpret_cast<const uint8_t*>(signature.data()), in TEST_P()
1216 signature.size())); in TEST_P()
1226 string signature; in TEST_P() local
1227 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
1228 ++signature[signature.size() / 2]; in TEST_P()
1239 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(signature, &result)); in TEST_P()
1252 string signature; in TEST_P() local
1253 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
1265 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(signature, &result)); in TEST_P()
1277 string signature; in TEST_P() local
1278 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1279 VerifyMessage(message, signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1292 string signature; in TEST_P() local
1293 SignMessage(message, &signature, KM_DIGEST_SHA_2_224, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1294 VerifyMessage(message, signature, KM_DIGEST_SHA_2_224, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1315 EVP_DigestVerifyFinal(&digest_ctx, reinterpret_cast<const uint8_t*>(signature.data()), in TEST_P()
1316 signature.size())); in TEST_P()
1326 string signature; in TEST_P() local
1327 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1328 ++signature[signature.size() / 2]; in TEST_P()
1339 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(signature, &result)); in TEST_P()
1352 string signature; in TEST_P() local
1353 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1365 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(signature, &result)); in TEST_P()
1452 string signature; in TEST_P() local
1453 SignMessage(message, &signature, digest, padding_mode); in TEST_P()
1454 VerifyMessage(message, signature, digest, padding_mode); in TEST_P()
1467 string signature; in TEST_P() local
1468 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
1469 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1479 string signature; in TEST_P() local
1480 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
1481 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1492 string signature; in TEST_P() local
1493 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
1494 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1498 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1510 string signature; in TEST_P() local
1511 SignMessage(message, &signature, KM_DIGEST_SHA_2_256); in TEST_P()
1512 VerifyMessage(message, signature, KM_DIGEST_SHA_2_256); in TEST_P()
1526 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(signature, &result)); in TEST_P()
1534 string signature; in TEST_P() local
1535 SignMessage(message, &signature, KM_DIGEST_SHA_2_224); in TEST_P()
1536 VerifyMessage(message, signature, KM_DIGEST_SHA_2_224); in TEST_P()
1550 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(signature, &result)); in TEST_P()
1561 string signature; in TEST_P() local
1571 SignMessage(message, &signature, digest); in TEST_P()
1572 VerifyMessage(message, signature, digest); in TEST_P()
1591 string signature; in TEST_P() local
1592 MacMessage(message, &signature, 160); in TEST_P()
1593 VerifyMac(message, signature); in TEST_P()
1608 string signature; in TEST_P() local
1609 MacMessage(message, &signature, 224); in TEST_P()
1610 VerifyMac(message, signature); in TEST_P()
1621 string signature; in TEST_P() local
1622 MacMessage(message, &signature, 256); in TEST_P()
1623 VerifyMac(message, signature); in TEST_P()
1634 string signature; in TEST_P() local
1635 MacMessage(message, &signature, 256); in TEST_P()
1638 signature.resize(128 / 8); in TEST_P()
1639 VerifyMac(message, signature); in TEST_P()
1642 signature.resize(signature.length() - 1); in TEST_P()
1649 EXPECT_EQ(KM_ERROR_INVALID_MAC_LENGTH, FinishOperation(signature, &result)); in TEST_P()
1664 string signature; in TEST_P() local
1665 MacMessage(message, &signature, 384); in TEST_P()
1666 VerifyMac(message, signature); in TEST_P()
1681 string signature; in TEST_P() local
1682 MacMessage(message, &signature, 512); in TEST_P()
1683 VerifyMac(message, signature); in TEST_P()
1794 string signature; in TEST_P() local
1795 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
1796 VerifyMessage(message, signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
1852 string signature; in TEST_P() local
1853 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
1854 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1884 string signature; in TEST_P() local
1885 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
1886 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1936 string signature; in TEST_P() local
1937 MacMessage(message, &signature, 256); in TEST_P()
1938 VerifyMac(message, signature); in TEST_P()
3339 string signature; in TEST_P() local
3340 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
3356 string signature; in TEST_P() local
3357 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
3373 string signature; in TEST_P() local
3374 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
3393 string signature; in TEST_P() local
3394 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
3437 string signature; in TEST_P() local
3438 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
3439 VerifyMessage(message, signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
3770 string signature; in TEST_P() local
3771 SignMessage(message, &signature, KM_DIGEST_SHA_2_256); in TEST_P()
3772 VerifyMessage(message, signature, KM_DIGEST_SHA_2_256); in TEST_P()
3794 SignMessage(message, &signature, KM_DIGEST_SHA_2_256); in TEST_P()
3795 VerifyMessage(message, signature, KM_DIGEST_SHA_2_256); in TEST_P()