public void PutGetContentUsingInstructionFileModeKMS() { AssertExtensions.ExpectException(() => { AsyncHelpers.RunSync(() => EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientFileModeKMSV1, s3EncryptionClientFileModeKMSV2, null, null, SampleContent, SampleContent, bucketName)); }, InstructionAndKmsErrorMessage); }
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 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 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 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 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 PutGetFileUsingInstructionFileModeAsymmetricWrap_V2SecurityProfile() { fileConfigV2.SecurityProfile = SecurityProfile.V2; AssertExtensions.ExpectException(() => { AsyncHelpers.RunSync(() => EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientFileModeAsymmetricWrapV1, s3EncryptionClientFileModeAsymmetricWrapV2, filePath, null, null, SampleContent, bucketName) ); }, LegacyReadWhenLegacyDisabledMessage); }
public void PutGetFileUsingMetadataModeKMS_V2SecurityProfile() { metadataConfigV2.SecurityProfile = SecurityProfile.V2; AssertExtensions.ExpectException(() => { AsyncHelpers.RunSync(() => EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientMetadataModeKMSV1, s3EncryptionClientMetadataModeKMSV2, filePath, null, null, SampleContent, bucketName) ); }, LegacyReadWhenLegacyDisabledMessage); }
public void PutGetStreamUsingInstructionFileModeKMS() { AssertExtensions.ExpectException(() => { AsyncHelpers.RunSync(() => { return(EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientFileModeKMSV2, s3EncryptionClientFileModeKMSV1N, null, SampleContentBytes, null, SampleContent, bucketName)); }); }, InstructionAndKMSErrorMessageV2); AssertExtensions.ExpectException(() => { AsyncHelpers.RunSync(() => { return(EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientFileModeKMSV1N, s3EncryptionClientFileModeKMSV2, null, SampleContentBytes, null, SampleContent, bucketName)); }); }, InstructionAndKMSErrorMessageV1N); }
public async Task PutGetZeroLengthContentUsingMetadataModeKMS() { await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientMetadataModeKMS, null, null, "", "", bucketName).ConfigureAwait(false); }
public async Task PutGetContentUsingInstructionFileModeAsymmetricWrap() { await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientFileModeAsymmetricWrap, null, null, sampleContent, sampleContent, bucketName).ConfigureAwait(false); }
public async Task PutGetNullContentContentUsingMetadataModeSymmetricWrap() { await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientMetadataModeSymmetricWrap, null, null, null, "", bucketName).ConfigureAwait(false); }
public async Task PutGetStreamUsingMetadataModeSymmetricWrap() { await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientMetadataModeSymmetricWrap, null, sampleContentBytes, null, sampleContent, bucketName).ConfigureAwait(false); }
public async Task PutGetFileUsingMetadataModeAsymmetricWrap() { await EncryptionTestsUtils.TestPutGetAsync(s3EncryptionClientMetadataModeAsymmetricWrap, filePath, null, null, sampleContent, bucketName).ConfigureAwait(false); }