public void MultipartEncryptionTestInstructionFileKMS() { AssertExtensions.ExpectException(() => { AsyncHelpers.RunSync(() => EncryptionTestsUtils.MultipartEncryptionTestAsync(s3EncryptionClientFileModeKMSV1, s3EncryptionClientFileModeKMSV2, bucketName)); }, InstructionAndKmsErrorMessage); }
public void TestTransferUtilityS3EncryptionClientMetadataModeSymmetricWrap() { EncryptionTestsUtils.TestTransferUtility(s3EncryptionClientMetadataModeSymmetricWrapV2, s3EncryptionClientMetadataModeSymmetricWrapV1N, bucketName); EncryptionTestsUtils.TestTransferUtility(s3EncryptionClientMetadataModeSymmetricWrapV1N, s3EncryptionClientMetadataModeSymmetricWrapV2, bucketName); }
public async void MultipartEncryptionTestMetadataModeSymmetricWrap() { await EncryptionTestsUtils.MultipartEncryptionTestAsync(s3EncryptionClientMetadataModeSymmetricWrapV2, s3EncryptionClientMetadataModeSymmetricWrapV1N, bucketName) .ConfigureAwait(false); await EncryptionTestsUtils.MultipartEncryptionTestAsync(s3EncryptionClientMetadataModeSymmetricWrapV1N, s3EncryptionClientMetadataModeSymmetricWrapV2, bucketName) .ConfigureAwait(false); }
public void PutGetContentUsingInstructionFileModeKMS() { AssertExtensions.ExpectException(() => { EncryptionTestsUtils.TestPutGet(s3EncryptionClientFileModeKMSV1, s3EncryptionClientFileModeKMSV2, null, null, SampleContent, SampleContent, bucketName); }, typeof(AmazonClientException), InstructionAndKMSErrorMessage); }
public void PutGetContentUsingInstructionFileModeKMS() { AssertExtensions.ExpectException(() => { AsyncHelpers.RunSync(() => EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientFileModeKMSV1, s3EncryptionClientFileModeKMSV2, null, null, SampleContent, SampleContent, bucketName)); }, InstructionAndKmsErrorMessage); }
public void MultipartEncryptionTestMetadataModeSymmetricWrap() { EncryptionTestsUtils.MultipartEncryptionTest(s3EncryptionClientMetadataModeSymmetricWrapV2, s3EncryptionClientMetadataModeSymmetricWrapV1N, bucketName); EncryptionTestsUtils.MultipartEncryptionTest(s3EncryptionClientMetadataModeSymmetricWrapV1N, s3EncryptionClientMetadataModeSymmetricWrapV2, bucketName); }
public void PutGetNullContentContentUsingMetadataModeKMS() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeKMSV2, s3EncryptionClientMetadataModeKMSV1N, null, null, null, "", bucketName); EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeKMSV1N, s3EncryptionClientMetadataModeKMSV2, null, null, null, "", bucketName); }
public void TestTransferUtilityS3EncryptionClientFileModeAsymmetricWrap() { EncryptionTestsUtils.TestTransferUtility(s3EncryptionClientFileModeAsymmetricWrapV1N, s3EncryptionClientFileModeAsymmetricWrapV1, bucketName); EncryptionTestsUtils.TestTransferUtility(s3EncryptionClientFileModeAsymmetricWrapV1, s3EncryptionClientFileModeAsymmetricWrapV1N, bucketName); }
public void MultipartEncryptionTestInstructionFileSymmetricWrap() { EncryptionTestsUtils.MultipartEncryptionTest(s3EncryptionClientFileModeSymmetricWrapV2, s3EncryptionClientFileModeSymmetricWrapV1N, bucketName); EncryptionTestsUtils.MultipartEncryptionTest(s3EncryptionClientFileModeSymmetricWrapV1N, s3EncryptionClientFileModeSymmetricWrapV2, bucketName); }
public async void MultipartEncryptionTestMetadataModeKMS() { await EncryptionTestsUtils.MultipartEncryptionTestAsync(s3EncryptionClientMetadataModeKMSV1N, s3EncryptionClientMetadataModeKMSV1, bucketName) .ConfigureAwait(false); await EncryptionTestsUtils.MultipartEncryptionTestAsync(s3EncryptionClientMetadataModeKMSV1, s3EncryptionClientMetadataModeKMSV1N, bucketName) .ConfigureAwait(false); }
public async void MultipartEncryptionTestInstructionFileSymmetricWrap() { await EncryptionTestsUtils.MultipartEncryptionTestAsync(s3EncryptionClientFileModeSymmetricWrapV1N, s3EncryptionClientFileModeSymmetricWrapV1, bucketName) .ConfigureAwait(false); await EncryptionTestsUtils.MultipartEncryptionTestAsync(s3EncryptionClientFileModeSymmetricWrapV1, s3EncryptionClientFileModeSymmetricWrapV1N, bucketName) .ConfigureAwait(false); }
public void MultipartEncryptionTestMetadataModeKMS() { EncryptionTestsUtils.MultipartEncryptionTest(s3EncryptionClientMetadataModeKMSV2, s3EncryptionClientMetadataModeKMSV1N, bucketName); EncryptionTestsUtils.MultipartEncryptionTest(s3EncryptionClientMetadataModeKMSV1N, s3EncryptionClientMetadataModeKMSV2, bucketName); }
public void PutGetStreamUsingMetadataModeKMS() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeKMSV2, s3EncryptionClientMetadataModeKMSV1N, null, SampleContentBytes, null, SampleContent, bucketName); EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeKMSV1N, s3EncryptionClientMetadataModeKMSV2, null, SampleContentBytes, null, SampleContent, bucketName); }
public void TestTransferUtilityS3EncryptionClientMetadataModeKMS() { EncryptionTestsUtils.TestTransferUtility(s3EncryptionClientMetadataModeKMSV2, s3EncryptionClientMetadataModeKMSV1N, bucketName); EncryptionTestsUtils.TestTransferUtility(s3EncryptionClientMetadataModeKMSV1N, s3EncryptionClientMetadataModeKMSV2, bucketName); }
public async void PutGetZeroLengthContentUsingMetadataModeSymmetricWrap() { await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientMetadataModeSymmetricWrapV1N, s3EncryptionClientMetadataModeSymmetricWrapV1, null, null, "", "", bucketName).ConfigureAwait(false); await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientMetadataModeSymmetricWrapV1, s3EncryptionClientMetadataModeSymmetricWrapV1N, null, null, "", "", bucketName) .ConfigureAwait(false); }
public void TestTransferUtilityS3EncryptionClientFileModeKMS() { AssertExtensions.ExpectException( () => { EncryptionTestsUtils.TestTransferUtility(s3EncryptionClientFileModeKMSV1, s3EncryptionClientFileModeKMSV2, bucketName); }, typeof(AmazonClientException), InstructionAndKMSErrorMessage); }
public void MultipartEncryptionTestInstructionFileKMS() { AssertExtensions.ExpectException( () => { EncryptionTestsUtils.MultipartEncryptionTest(s3EncryptionClientFileModeKMSV1, s3EncryptionClientFileModeKMSV2, bucketName); }, typeof(AmazonClientException), InstructionAndKMSErrorMessage); }
public void PutGetFileUsingMetadataModeSymmetricWrap() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeSymmetricWrapV1N, s3EncryptionClientMetadataModeSymmetricWrapV1, filePath, null, null, SampleContent, bucketName); EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeSymmetricWrapV1, s3EncryptionClientMetadataModeSymmetricWrapV1N, filePath, null, null, SampleContent, bucketName); }
public async void PutGetNullContentContentUsingMetadataModeKMS() { await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientMetadataModeKMSV1N, s3EncryptionClientMetadataModeKMSV1, null, null, null, "", bucketName) .ConfigureAwait(false); await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientMetadataModeKMSV1, s3EncryptionClientMetadataModeKMSV1N, null, null, null, "", bucketName) .ConfigureAwait(false); }
public void PutGetStreamUsingInstructionFileModeAsymmetricWrap() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientFileModeAsymmetricWrapV1N, s3EncryptionClientFileModeAsymmetricWrapV1, null, SampleContentBytes, null, SampleContent, bucketName); EncryptionTestsUtils.TestPutGet(s3EncryptionClientFileModeAsymmetricWrapV1, s3EncryptionClientFileModeAsymmetricWrapV1N, null, SampleContentBytes, null, SampleContent, bucketName); }
public void PutGetStreamUsingMetadataModeSymmetricWrap() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeSymmetricWrapV1N, s3EncryptionClientMetadataModeSymmetricWrapV1, null, SampleContentBytes, null, SampleContent, bucketName); EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeSymmetricWrapV1, s3EncryptionClientMetadataModeSymmetricWrapV1N, null, SampleContentBytes, null, SampleContent, bucketName); }
public async void PutGetFileUsingMetadataModeSymmetricWrap() { await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientMetadataModeSymmetricWrapV1N, s3EncryptionClientMetadataModeSymmetricWrapV1, filePath, null, null, SampleContent, bucketName) .ConfigureAwait(false); await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientMetadataModeSymmetricWrapV1, s3EncryptionClientMetadataModeSymmetricWrapV1N, filePath, null, null, SampleContent, bucketName) .ConfigureAwait(false); }
public void PutGetContentUsingInstructionFileModeSymmetricWrap() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientFileModeSymmetricWrapV2, s3EncryptionClientFileModeSymmetricWrapV1N, null, null, SampleContent, SampleContent, bucketName); EncryptionTestsUtils.TestPutGet(s3EncryptionClientFileModeSymmetricWrapV1N, s3EncryptionClientFileModeSymmetricWrapV2, null, null, SampleContent, SampleContent, bucketName); }
public void PutGetZeroLengthContentUsingMetadataModeSymmetricWrap() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeSymmetricWrapV2, s3EncryptionClientMetadataModeSymmetricWrapV1N, null, null, "", "", bucketName); EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeSymmetricWrapV1N, s3EncryptionClientMetadataModeSymmetricWrapV2, null, null, "", "", bucketName); }
public void PutGetContentUsingMetadataModeAsymmetricWrap() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeAsymmetricWrapV2, s3EncryptionClientMetadataModeAsymmetricWrapV1N, null, null, SampleContent, SampleContent, bucketName); EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeAsymmetricWrapV1N, s3EncryptionClientMetadataModeAsymmetricWrapV2, null, null, SampleContent, SampleContent, bucketName); }
public async void PutGetStreamUsingMetadataModeKMS() { await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientMetadataModeKMSV1N, s3EncryptionClientMetadataModeKMSV1, null, SampleContentBytes, null, SampleContent, bucketName) .ConfigureAwait(false); await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientMetadataModeKMSV1, s3EncryptionClientMetadataModeKMSV1N, null, SampleContentBytes, null, SampleContent, bucketName) .ConfigureAwait(false); }
public void PutGetFileUsingInstructionFileModeAsymmetricWrap_V2SecurityProfile() { fileConfig.SecurityProfile = SecurityProfile.V2; AssertExtensions.ExpectException(() => { EncryptionTestsUtils.TestPutGet(s3EncryptionClientFileModeAsymmetricWrapV1, s3EncryptionClientFileModeAsymmetricWrapV2, filePath, null, null, SampleContent, bucketName); }, typeof(AmazonCryptoException), LegacyReadWhenLegacyDisabledMessage); }
public async void PutGetContentUsingInstructionFileModeSymmetricWrap() { await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientFileModeSymmetricWrapV1N, s3EncryptionClientFileModeSymmetricWrapV1, null, null, SampleContent, SampleContent, bucketName) .ConfigureAwait(false); await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientFileModeSymmetricWrapV1, s3EncryptionClientFileModeSymmetricWrapV1N, null, null, SampleContent, SampleContent, bucketName) .ConfigureAwait(false); }
public void PutGetFileUsingMetadataModeKMS_V2SecurityProfile() { metadataConfig.SecurityProfile = SecurityProfile.V2; AssertExtensions.ExpectException(() => { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeKMSV1, s3EncryptionClientMetadataModeKMSV2, filePath, null, null, SampleContent, bucketName); }, typeof(AmazonCryptoException), LegacyReadWhenLegacyDisabledMessage); }
public void PutGetFileUsingInstructionFileModeAsymmetricWrap_V2SecurityProfile() { fileConfigV2.SecurityProfile = SecurityProfile.V2; AssertExtensions.ExpectException(() => { AsyncHelpers.RunSync(() => EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientFileModeAsymmetricWrapV1, s3EncryptionClientFileModeAsymmetricWrapV2, filePath, null, null, SampleContent, bucketName) ); }, LegacyReadWhenLegacyDisabledMessage); }