Lines Matching refs:signature
594 string signature; in TEST_P() local
595 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
608 string signature; in TEST_P() local
609 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
621 string signature; in TEST_P() local
638 string signature; in TEST_P() local
639 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
651 string signature; in TEST_P() local
652 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
672 string signature; in TEST_P() local
673 EXPECT_EQ(KM_ERROR_INVALID_INPUT_LENGTH, FinishOperation(&signature)); in TEST_P()
687 string signature; in TEST_P() local
701 string signature; in TEST_P() local
777 string signature; in TEST_P() local
778 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
804 string signature; in TEST_P() local
825 string signature; in TEST_P() local
826 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
836 string signature; in TEST_P() local
837 SignMessage(message, &signature, KM_DIGEST_SHA_2_256); in TEST_P()
847 string signature; in TEST_P() local
848 SignMessage(message, &signature, KM_DIGEST_SHA_2_384); in TEST_P()
858 string signature; in TEST_P() local
886 string signature; in TEST_P() local
889 SignMessage(message, &signature, digest); in TEST_P()
918 string signature; in TEST_P() local
919 MacMessage(message, &signature, 160); in TEST_P()
920 ASSERT_EQ(20U, signature.size()); in TEST_P()
935 string signature; in TEST_P() local
936 MacMessage(message, &signature, 224); in TEST_P()
937 ASSERT_EQ(28U, signature.size()); in TEST_P()
952 string signature; in TEST_P() local
953 MacMessage(message, &signature, 256); in TEST_P()
954 ASSERT_EQ(32U, signature.size()); in TEST_P()
970 string signature; in TEST_P() local
971 MacMessage(message, &signature, 384); in TEST_P()
972 ASSERT_EQ(48U, signature.size()); in TEST_P()
987 string signature; in TEST_P() local
988 MacMessage(message, &signature, 512); in TEST_P()
989 ASSERT_EQ(64U, signature.size()); in TEST_P()
1001 string signature; in TEST_P() local
1002 MacMessage(message, &signature, 160); in TEST_P()
1003 ASSERT_EQ(20U, signature.size()); in TEST_P()
1310 string signature; in TEST_P() local
1311 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
1312 VerifyMessage(message, signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
1325 string signature; in TEST_P() local
1326 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
1327 VerifyMessage(message, signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
1340 string signature; in TEST_P() local
1341 SignMessage(message, &signature, KM_DIGEST_SHA_2_224, KM_PAD_RSA_PSS); in TEST_P()
1342 VerifyMessage(message, signature, KM_DIGEST_SHA_2_224, KM_PAD_RSA_PSS); in TEST_P()
1364 EVP_DigestVerifyFinal(&digest_ctx, reinterpret_cast<const uint8_t*>(signature.data()), in TEST_P()
1365 signature.size())); in TEST_P()
1375 string signature; in TEST_P() local
1376 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
1377 ++signature[signature.size() / 2]; in TEST_P()
1388 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(signature, &result)); in TEST_P()
1401 string signature; in TEST_P() local
1402 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
1414 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(signature, &result)); in TEST_P()
1426 string signature; in TEST_P() local
1427 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1428 VerifyMessage(message, signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1441 string signature; in TEST_P() local
1442 SignMessage(message, &signature, KM_DIGEST_SHA_2_224, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1443 VerifyMessage(message, signature, KM_DIGEST_SHA_2_224, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1464 EVP_DigestVerifyFinal(&digest_ctx, reinterpret_cast<const uint8_t*>(signature.data()), in TEST_P()
1465 signature.size())); in TEST_P()
1475 string signature; in TEST_P() local
1476 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1477 ++signature[signature.size() / 2]; in TEST_P()
1488 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(signature, &result)); in TEST_P()
1501 string signature; in TEST_P() local
1502 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1514 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(signature, &result)); in TEST_P()
1601 string signature; in TEST_P() local
1602 SignMessage(message, &signature, digest, padding_mode); in TEST_P()
1603 VerifyMessage(message, signature, digest, padding_mode); in TEST_P()
1616 string signature; in TEST_P() local
1617 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
1618 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1628 string signature; in TEST_P() local
1629 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
1630 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1641 string signature; in TEST_P() local
1642 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
1643 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1647 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1659 string signature; in TEST_P() local
1660 SignMessage(message, &signature, KM_DIGEST_SHA_2_256); in TEST_P()
1661 VerifyMessage(message, signature, KM_DIGEST_SHA_2_256); in TEST_P()
1675 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(signature, &result)); in TEST_P()
1683 string signature; in TEST_P() local
1684 SignMessage(message, &signature, KM_DIGEST_SHA_2_224); in TEST_P()
1685 VerifyMessage(message, signature, KM_DIGEST_SHA_2_224); in TEST_P()
1699 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(signature, &result)); in TEST_P()
1710 string signature; in TEST_P() local
1720 SignMessage(message, &signature, digest); in TEST_P()
1721 VerifyMessage(message, signature, digest); in TEST_P()
1740 string signature; in TEST_P() local
1741 MacMessage(message, &signature, 160); in TEST_P()
1742 VerifyMac(message, signature); in TEST_P()
1757 string signature; in TEST_P() local
1758 MacMessage(message, &signature, 224); in TEST_P()
1759 VerifyMac(message, signature); in TEST_P()
1770 string signature; in TEST_P() local
1771 MacMessage(message, &signature, 256); in TEST_P()
1772 VerifyMac(message, signature); in TEST_P()
1783 string signature; in TEST_P() local
1784 MacMessage(message, &signature, 256); in TEST_P()
1787 signature.resize(128 / 8); in TEST_P()
1788 VerifyMac(message, signature); in TEST_P()
1791 signature.resize(signature.length() - 1); in TEST_P()
1798 EXPECT_EQ(KM_ERROR_INVALID_MAC_LENGTH, FinishOperation(signature, &result)); in TEST_P()
1813 string signature; in TEST_P() local
1814 MacMessage(message, &signature, 384); in TEST_P()
1815 VerifyMac(message, signature); in TEST_P()
1830 string signature; in TEST_P() local
1831 MacMessage(message, &signature, 512); in TEST_P()
1832 VerifyMac(message, signature); in TEST_P()
1943 string signature; in TEST_P() local
1944 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
1945 VerifyMessage(message, signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
2001 string signature; in TEST_P() local
2002 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
2003 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
2033 string signature; in TEST_P() local
2034 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
2035 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
2085 string signature; in TEST_P() local
2086 MacMessage(message, &signature, 256); in TEST_P()
2087 VerifyMac(message, signature); in TEST_P()
3488 string signature; in TEST_P() local
3489 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
3505 string signature; in TEST_P() local
3506 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
3522 string signature; in TEST_P() local
3523 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
3542 string signature; in TEST_P() local
3543 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
3586 string signature; in TEST_P() local
3587 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
3588 VerifyMessage(message, signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()