Lines Matching refs:input_params
2646 AuthorizationSet input_params(client_params()); in TEST_P() local
2647 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CTR); in TEST_P()
2648 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P()
2650 EXPECT_EQ(KM_ERROR_OK, BeginOperation(KM_PURPOSE_ENCRYPT, input_params, &output_params)); in TEST_P()
2661 input_params.Reinitialize(output_params); in TEST_P()
2662 input_params.push_back(client_params()); in TEST_P()
2663 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CTR); in TEST_P()
2664 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P()
2667 EXPECT_EQ(KM_ERROR_OK, BeginOperation(KM_PURPOSE_DECRYPT, input_params, &output_params)); in TEST_P()
2749 AuthorizationSet input_params(client_params()); in TEST_P() local
2750 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CTR); in TEST_P()
2751 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P()
2752 input_params.push_back(TAG_NONCE, "123", 3); in TEST_P()
2753 EXPECT_EQ(KM_ERROR_INVALID_NONCE, BeginOperation(KM_PURPOSE_ENCRYPT, input_params)); in TEST_P()
2800 AuthorizationSet input_params(client_params()); in TEST_P() local
2803 input_params.push_back(TAG_NONCE, "abcdefghijklmnop", 16); in TEST_P()
2804 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CBC); in TEST_P()
2805 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P()
2807 ProcessMessage(KM_PURPOSE_ENCRYPT, message, input_params, update_params, &output_params); in TEST_P()
2810 plaintext = ProcessMessage(KM_PURPOSE_DECRYPT, ciphertext2, input_params, update_params, in TEST_P()
2815 input_params.Reinitialize(client_params()); in TEST_P()
2816 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CBC); in TEST_P()
2817 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P()
2818 input_params.push_back(TAG_NONCE, "aaaaaaaaaaaaaaaa", 16); in TEST_P()
2819 plaintext = ProcessMessage(KM_PURPOSE_DECRYPT, ciphertext2, input_params, update_params, in TEST_P()
2843 AuthorizationSet input_params(client_params()); in TEST_P() local
2846 input_params.push_back(TAG_NONCE, "abcdefghijklmnop", 16); in TEST_P()
2847 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CBC); in TEST_P()
2848 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P()
2851 BeginOperation(KM_PURPOSE_ENCRYPT, input_params, &output_params)); in TEST_P()
2864 AuthorizationSet input_params(client_params()); in TEST_P() local
2865 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CBC); in TEST_P()
2866 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P()
2868 EXPECT_EQ(KM_ERROR_OK, BeginOperation(KM_PURPOSE_ENCRYPT, input_params, &output_params)); in TEST_P()
2879 input_params.Reinitialize(output_params); in TEST_P()
2880 input_params.push_back(client_params()); in TEST_P()
2881 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CBC); in TEST_P()
2882 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P()
2885 EXPECT_EQ(KM_ERROR_OK, BeginOperation(KM_PURPOSE_DECRYPT, input_params, &output_params)); in TEST_P()
3692 AuthorizationSet input_params(client_params()); in TEST_P() local
3695 input_params.push_back(TAG_NONCE, "abcdefgh", 8); in TEST_P()
3696 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CBC); in TEST_P()
3697 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P()
3699 ProcessMessage(KM_PURPOSE_ENCRYPT, message, input_params, update_params, &output_params); in TEST_P()
3702 plaintext = ProcessMessage(KM_PURPOSE_DECRYPT, ciphertext2, input_params, update_params, in TEST_P()
3707 input_params.Reinitialize(client_params()); in TEST_P()
3708 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CBC); in TEST_P()
3709 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P()
3710 input_params.push_back(TAG_NONCE, "aaaaaaaa", 8); in TEST_P()
3711 plaintext = ProcessMessage(KM_PURPOSE_DECRYPT, ciphertext2, input_params, update_params, in TEST_P()
3733 AuthorizationSet input_params(client_params()); in TEST_P() local
3736 input_params.push_back(TAG_NONCE, "abcdefgh", 8); in TEST_P()
3737 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CBC); in TEST_P()
3738 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P()
3741 BeginOperation(KM_PURPOSE_ENCRYPT, input_params, &output_params)); in TEST_P()
3840 AuthorizationSet input_params(client_params()); in TEST_P() local
3841 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CBC); in TEST_P()
3842 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P()
3844 EXPECT_EQ(KM_ERROR_OK, BeginOperation(KM_PURPOSE_ENCRYPT, input_params, &output_params)); in TEST_P()
3855 input_params.Reinitialize(output_params); in TEST_P()
3856 input_params.push_back(client_params()); in TEST_P()
3857 input_params.push_back(TAG_BLOCK_MODE, KM_MODE_CBC); in TEST_P()
3858 input_params.push_back(TAG_PADDING, KM_PAD_NONE); in TEST_P()
3861 EXPECT_EQ(KM_ERROR_OK, BeginOperation(KM_PURPOSE_DECRYPT, input_params, &output_params)); in TEST_P()