• Home
  • Raw
  • Download

Lines Matching refs:plaintext

1789     string plaintext = DecryptMessage(ciphertext, KM_MODE_ECB, KM_PAD_PKCS7);  in TEST_P()  local
1790 EXPECT_EQ(message, plaintext); in TEST_P()
1965 string plaintext = ProcessMessage(KM_PURPOSE_DECRYPT, ciphertext, params); in TEST_F() local
1967 EXPECT_EQ(message, plaintext); in TEST_F()
2093 string plaintext = DecryptMessage(ciphertext, KM_PAD_NONE); in TEST_P() local
2095 EXPECT_EQ(expected_plaintext, plaintext); in TEST_P()
2213 string plaintext = DecryptMessage(ciphertext, KM_DIGEST_SHA_2_256, KM_PAD_RSA_OAEP); in TEST_P() local
2214 EXPECT_EQ(message, plaintext); in TEST_P()
2230 string plaintext = DecryptMessage(ciphertext, KM_DIGEST_SHA_2_224, KM_PAD_RSA_OAEP); in TEST_P() local
2231 EXPECT_EQ(message, plaintext); in TEST_P()
2375 string plaintext = DecryptMessage(ciphertext, KM_PAD_RSA_PKCS1_1_5_ENCRYPT); in TEST_P() local
2376 EXPECT_EQ(message, plaintext); in TEST_P()
2413 string plaintext = DecryptMessage(ciphertext, digest, padding); in TEST_P() local
2414 EXPECT_EQ(message, plaintext); in TEST_P()
2512 string plaintext = DecryptMessage(ciphertext1, KM_MODE_ECB, KM_PAD_NONE); in TEST_P() local
2513 EXPECT_EQ(message, plaintext); in TEST_P()
2562 string plaintext = DecryptMessage(ciphertext, KM_MODE_ECB, KM_PAD_PKCS7); in TEST_P() local
2563 EXPECT_EQ(message, plaintext); in TEST_P()
2603 string plaintext; in TEST_P() local
2605 EXPECT_EQ(KM_ERROR_OK, UpdateOperation(ciphertext, &plaintext, &input_consumed)); in TEST_P()
2607 EXPECT_EQ(KM_ERROR_INVALID_ARGUMENT, FinishOperation(&plaintext)); in TEST_P()
2632 string plaintext = DecryptMessage(ciphertext1, KM_MODE_CTR, KM_PAD_NONE, iv1); in TEST_P() local
2633 EXPECT_EQ(message, plaintext); in TEST_P()
2668 string plaintext; in TEST_P() local
2671 UpdateOperation(ciphertext.substr(i, increment), &plaintext, &input_consumed)); in TEST_P()
2672 EXPECT_EQ(KM_ERROR_OK, FinishOperation(&plaintext)); in TEST_P()
2673 EXPECT_EQ(ciphertext.size(), plaintext.size()); in TEST_P()
2674 EXPECT_EQ(message, plaintext); in TEST_P()
2682 const char* plaintext; member
2721 const string plaintext = hex2str(test.plaintext); in TEST_P() local
2723 CheckAesCtrTestVector(key, nonce, plaintext, ciphertext); in TEST_P()
2777 string plaintext = DecryptMessage(ciphertext1, KM_MODE_CBC, KM_PAD_NONE, iv1); in TEST_P() local
2778 EXPECT_EQ(message, plaintext); in TEST_P()
2796 string plaintext = DecryptMessage(ciphertext1, KM_MODE_CBC, KM_PAD_NONE, iv1); in TEST_P() local
2797 EXPECT_EQ(message, plaintext); in TEST_P()
2810 plaintext = ProcessMessage(KM_PURPOSE_DECRYPT, ciphertext2, input_params, update_params, in TEST_P()
2812 EXPECT_EQ(message, plaintext); in TEST_P()
2819 plaintext = ProcessMessage(KM_PURPOSE_DECRYPT, ciphertext2, input_params, update_params, in TEST_P()
2821 EXPECT_NE(message, plaintext); in TEST_P()
2839 string plaintext = DecryptMessage(ciphertext1, KM_MODE_CBC, KM_PAD_NONE, iv1); in TEST_P() local
2840 EXPECT_EQ(message, plaintext); in TEST_P()
2886 string plaintext; in TEST_P() local
2889 UpdateOperation(ciphertext.substr(i, increment), &plaintext, &input_consumed)); in TEST_P()
2890 EXPECT_EQ(KM_ERROR_OK, FinishOperation(&plaintext)); in TEST_P()
2891 EXPECT_EQ(ciphertext.size(), plaintext.size()); in TEST_P()
2892 EXPECT_EQ(message, plaintext); in TEST_P()
2909 string plaintext = DecryptMessage(ciphertext, KM_MODE_CBC, KM_PAD_PKCS7, iv); in TEST_P() local
2910 EXPECT_EQ(message, plaintext); in TEST_P()
2949 string plaintext; in TEST_P() local
2951 &plaintext, &input_consumed)); in TEST_P()
2953 EXPECT_EQ(KM_ERROR_OK, FinishOperation(&plaintext)); in TEST_P()
2955 EXPECT_EQ(message, plaintext); in TEST_P()
3042 string plaintext; in TEST_P() local
3059 EXPECT_EQ(KM_ERROR_OK, UpdateOperation(ciphertext_str, &plaintext, &input_consumed)); in TEST_P()
3060 EXPECT_EQ(KM_ERROR_OK, FinishOperation(&plaintext)); in TEST_P()
3075 EXPECT_EQ(KM_ERROR_OK, UpdateOperation(ciphertext_str, &plaintext, &input_consumed)); in TEST_P()
3076 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(&plaintext)); in TEST_P()
3114 string plaintext; in TEST_P() local
3116 &plaintext, &input_consumed)); in TEST_P()
3118 EXPECT_EQ(KM_ERROR_OK, FinishOperation(&plaintext)); in TEST_P()
3120 EXPECT_EQ(empty_message, plaintext); in TEST_P()
3172 string plaintext; in TEST_P() local
3176 EXPECT_EQ(KM_ERROR_OK, UpdateOperation(update_params, "", &update_out_params, &plaintext, in TEST_P()
3179 EXPECT_EQ(0U, plaintext.size()); in TEST_P()
3185 &update_out_params, &plaintext, &input_consumed)); in TEST_P()
3188 EXPECT_EQ(1000U, plaintext.size()); in TEST_P()
3189 EXPECT_EQ(KM_ERROR_OK, FinishOperation(&plaintext)); in TEST_P()
3235 string plaintext; in TEST_P() local
3237 &plaintext, &input_consumed)); in TEST_P()
3239 EXPECT_EQ(KM_ERROR_OK, FinishOperation(&plaintext)); in TEST_P()
3241 EXPECT_EQ(message, plaintext); in TEST_P()
3283 string plaintext; in TEST_P() local
3285 &plaintext, &input_consumed)); in TEST_P()
3287 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(&plaintext)); in TEST_P()
3322 string plaintext; in TEST_P() local
3324 &plaintext, &input_consumed)); in TEST_P()
3326 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(&plaintext)); in TEST_P()
3329 EXPECT_NE(message, plaintext); in TEST_P()
3369 string plaintext; in TEST_P() local
3371 &plaintext, &input_consumed)); in TEST_P()
3373 EXPECT_EQ(KM_ERROR_VERIFICATION_FAILED, FinishOperation(&plaintext)); in TEST_P()
3375 EXPECT_EQ(message, plaintext); in TEST_P()
3397 string plaintext = DecryptMessage(ciphertext1, KM_MODE_ECB, KM_PAD_NONE); in TEST_P() local
3398 EXPECT_EQ(message, plaintext); in TEST_P()
3441 string plaintext = DecryptMessage(ciphertext, KM_MODE_ECB, KM_PAD_PKCS7); in TEST_P() local
3442 EXPECT_EQ(message, plaintext); in TEST_P()
3478 string plaintext; in TEST_P() local
3480 EXPECT_EQ(KM_ERROR_OK, UpdateOperation(ciphertext, &plaintext, &input_consumed)); in TEST_P()
3482 EXPECT_EQ(KM_ERROR_INVALID_ARGUMENT, FinishOperation(&plaintext)); in TEST_P()
3669 string plaintext = DecryptMessage(ciphertext1, KM_MODE_CBC, KM_PAD_NONE, iv1); in TEST_P() local
3670 EXPECT_EQ(message, plaintext); in TEST_P()
3688 string plaintext = DecryptMessage(ciphertext1, KM_MODE_CBC, KM_PAD_NONE, iv1); in TEST_P() local
3689 EXPECT_EQ(message, plaintext); in TEST_P()
3702 plaintext = ProcessMessage(KM_PURPOSE_DECRYPT, ciphertext2, input_params, update_params, in TEST_P()
3704 EXPECT_EQ(message, plaintext); in TEST_P()
3711 plaintext = ProcessMessage(KM_PURPOSE_DECRYPT, ciphertext2, input_params, update_params, in TEST_P()
3713 EXPECT_NE(message, plaintext); in TEST_P()
3729 string plaintext = DecryptMessage(ciphertext1, KM_MODE_CBC, KM_PAD_NONE, iv1); in TEST_P() local
3730 EXPECT_EQ(message, plaintext); in TEST_P()
3786 string plaintext = DecryptMessage(ciphertext, KM_MODE_CBC, KM_PAD_PKCS7, iv); in TEST_P() local
3787 EXPECT_EQ(message, plaintext); in TEST_P()
3825 string plaintext; in TEST_P() local
3827 EXPECT_EQ(KM_ERROR_OK, UpdateOperation(ciphertext, &plaintext, &input_consumed)); in TEST_P()
3829 EXPECT_EQ(KM_ERROR_INVALID_ARGUMENT, FinishOperation(&plaintext)); in TEST_P()
3862 string plaintext; in TEST_P() local
3865 UpdateOperation(ciphertext.substr(i, increment), &plaintext, &input_consumed)); in TEST_P()
3866 EXPECT_EQ(KM_ERROR_OK, FinishOperation(&plaintext)); in TEST_P()
3867 EXPECT_EQ(ciphertext.size(), plaintext.size()); in TEST_P()
3868 EXPECT_EQ(message, plaintext); in TEST_P()