Lines Matching refs:signature
463 string signature; in TEST_P() local
464 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
477 string signature; in TEST_P() local
478 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
490 string signature; in TEST_P() local
507 string signature; in TEST_P() local
508 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
520 string signature; in TEST_P() local
521 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
539 string signature; in TEST_P() local
540 EXPECT_EQ(KM_ERROR_INVALID_INPUT_LENGTH, FinishOperation(message, "", &signature)); in TEST_P()
554 string signature; in TEST_P() local
568 string signature; in TEST_P() local
644 string signature; in TEST_P() local
645 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
671 string signature; in TEST_P() local
691 string signature; in TEST_P() local
692 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
702 string signature; in TEST_P() local
703 SignMessage(message, &signature, KM_DIGEST_SHA_2_256); in TEST_P()
713 string signature; in TEST_P() local
714 SignMessage(message, &signature, KM_DIGEST_SHA_2_384); in TEST_P()
724 string signature; in TEST_P() local
750 string signature; in TEST_P() local
753 SignMessage(message, &signature, digest); in TEST_P()
778 string signature; in TEST_P() local
779 MacMessage(message, &signature, 160); in TEST_P()
780 ASSERT_EQ(20U, signature.size()); in TEST_P()
791 string signature; in TEST_P() local
792 MacMessage(message, &signature, 224); in TEST_P()
793 ASSERT_EQ(28U, signature.size()); in TEST_P()
804 string signature; in TEST_P() local
805 MacMessage(message, &signature, 256); in TEST_P()
806 ASSERT_EQ(32U, signature.size()); in TEST_P()
818 string signature; in TEST_P() local
819 MacMessage(message, &signature, 384); in TEST_P()
820 ASSERT_EQ(48U, signature.size()); in TEST_P()
831 string signature; in TEST_P() local
832 MacMessage(message, &signature, 512); in TEST_P()
833 ASSERT_EQ(64U, signature.size()); in TEST_P()
845 string signature; in TEST_P() local
846 MacMessage(message, &signature, 160); in TEST_P()
847 ASSERT_EQ(20U, signature.size()); in TEST_P()
1064 string signature; in TEST_P() local
1065 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
1066 VerifyMessage(message, signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
1079 string signature; in TEST_P() local
1080 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
1081 VerifyMessage(message, signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
1094 string signature; in TEST_P() local
1095 SignMessage(message, &signature, KM_DIGEST_SHA_2_224, KM_PAD_RSA_PSS); in TEST_P()
1096 VerifyMessage(message, signature, KM_DIGEST_SHA_2_224, KM_PAD_RSA_PSS); in TEST_P()
1118 EVP_DigestVerifyFinal(&digest_ctx, reinterpret_cast<const uint8_t*>(signature.data()), in TEST_P()
1119 signature.size())); in TEST_P()
1129 string signature; in TEST_P() local
1130 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
1131 ++signature[signature.size() / 2]; in TEST_P()
1139 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(message, signature, &result)); in TEST_P()
1152 string signature; in TEST_P() local
1153 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PSS); in TEST_P()
1162 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(message, signature, &result)); in TEST_P()
1174 string signature; in TEST_P() local
1175 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1176 VerifyMessage(message, signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1189 string signature; in TEST_P() local
1190 SignMessage(message, &signature, KM_DIGEST_SHA_2_224, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1191 VerifyMessage(message, signature, KM_DIGEST_SHA_2_224, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1212 EVP_DigestVerifyFinal(&digest_ctx, reinterpret_cast<const uint8_t*>(signature.data()), in TEST_P()
1213 signature.size())); in TEST_P()
1223 string signature; in TEST_P() local
1224 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1225 ++signature[signature.size() / 2]; in TEST_P()
1233 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(message, signature, &result)); in TEST_P()
1246 string signature; in TEST_P() local
1247 SignMessage(message, &signature, KM_DIGEST_SHA_2_256, KM_PAD_RSA_PKCS1_1_5_SIGN); in TEST_P()
1256 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(message, signature, &result)); in TEST_P()
1346 string signature; in TEST_P() local
1347 SignMessage(message, &signature, digest, padding_mode); in TEST_P()
1348 VerifyMessage(message, signature, digest, padding_mode); in TEST_P()
1361 string signature; in TEST_P() local
1362 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
1363 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1373 string signature; in TEST_P() local
1374 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
1375 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1386 string signature; in TEST_P() local
1387 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
1388 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1392 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1404 string signature; in TEST_P() local
1405 SignMessage(message, &signature, KM_DIGEST_SHA_2_256); in TEST_P()
1406 VerifyMessage(message, signature, KM_DIGEST_SHA_2_256); in TEST_P()
1417 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(message, signature, &result)); in TEST_P()
1425 string signature; in TEST_P() local
1426 SignMessage(message, &signature, KM_DIGEST_SHA_2_224); in TEST_P()
1427 VerifyMessage(message, signature, KM_DIGEST_SHA_2_224); in TEST_P()
1438 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(message, signature, &result)); in TEST_P()
1449 string signature; in TEST_P() local
1461 SignMessage(message, &signature, digest); in TEST_P()
1462 VerifyMessage(message, signature, digest); in TEST_P()
1477 string signature; in TEST_P() local
1478 MacMessage(message, &signature, 160); in TEST_P()
1479 VerifyMac(message, signature); in TEST_P()
1490 string signature; in TEST_P() local
1491 MacMessage(message, &signature, 224); in TEST_P()
1492 VerifyMac(message, signature); in TEST_P()
1503 string signature; in TEST_P() local
1504 MacMessage(message, &signature, 256); in TEST_P()
1505 VerifyMac(message, signature); in TEST_P()
1516 string signature; in TEST_P() local
1517 MacMessage(message, &signature, 256); in TEST_P()
1520 signature.resize(128 / 8); in TEST_P()
1521 VerifyMac(message, signature); in TEST_P()
1524 signature.resize(signature.length() - 1); in TEST_P()
1529 EXPECT_EQ(KM_ERROR_INVALID_MAC_LENGTH, FinishOperation(message, signature, &result)); in TEST_P()
1540 string signature; in TEST_P() local
1541 MacMessage(message, &signature, 384); in TEST_P()
1542 VerifyMac(message, signature); in TEST_P()
1553 string signature; in TEST_P() local
1554 MacMessage(message, &signature, 512); in TEST_P()
1555 VerifyMac(message, signature); in TEST_P()
1666 string signature; in TEST_P() local
1667 SignMessage(message, &signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
1668 VerifyMessage(message, signature, KM_DIGEST_NONE, KM_PAD_NONE); in TEST_P()
1724 string signature; in TEST_P() local
1725 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
1726 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1756 string signature; in TEST_P() local
1757 SignMessage(message, &signature, KM_DIGEST_NONE); in TEST_P()
1758 VerifyMessage(message, signature, KM_DIGEST_NONE); in TEST_P()
1808 string signature; in TEST_P() local
1809 MacMessage(message, &signature, 256); in TEST_P()
1810 VerifyMac(message, signature); in TEST_P()
4217 string signature; in TEST_P() local
4218 SignMessage(message, &signature, KM_DIGEST_SHA_2_256); in TEST_P()
4219 VerifyMessage(message, signature, KM_DIGEST_SHA_2_256); in TEST_P()
4241 SignMessage(message, &signature, KM_DIGEST_SHA_2_256); in TEST_P()
4242 VerifyMessage(message, signature, KM_DIGEST_SHA_2_256); in TEST_P()