public void PutGetNullContentContentUsingMetadataModeKMS() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeKMSV2, s3EncryptionClientMetadataModeKMSV1N, null, null, null, "", bucketName); EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeKMSV1N, s3EncryptionClientMetadataModeKMSV2, null, null, null, "", bucketName); }
public void PutGetContentUsingInstructionFileModeKMS() { AssertExtensions.ExpectException(() => { EncryptionTestsUtils.TestPutGet(s3EncryptionClientFileModeKMSV1, s3EncryptionClientFileModeKMSV2, null, null, SampleContent, SampleContent, bucketName); }, typeof(AmazonClientException), InstructionAndKMSErrorMessage); }
public void PutGetStreamUsingMetadataModeKMS() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeKMSV2, s3EncryptionClientMetadataModeKMSV1N, null, SampleContentBytes, null, SampleContent, bucketName); EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeKMSV1N, s3EncryptionClientMetadataModeKMSV2, null, SampleContentBytes, null, SampleContent, bucketName); }
public void PutGetFileUsingInstructionFileModeAsymmetricWrap_V2SecurityProfile() { fileConfig.SecurityProfile = SecurityProfile.V2; AssertExtensions.ExpectException(() => { EncryptionTestsUtils.TestPutGet(s3EncryptionClientFileModeAsymmetricWrapV1, s3EncryptionClientFileModeAsymmetricWrapV2, filePath, null, null, SampleContent, bucketName); }, typeof(AmazonCryptoException), LegacyReadWhenLegacyDisabledMessage); }
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 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 void PutGetFileUsingMetadataModeSymmetricWrap() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeSymmetricWrapV1N, s3EncryptionClientMetadataModeSymmetricWrapV1, filePath, null, null, SampleContent, bucketName); EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeSymmetricWrapV1, s3EncryptionClientMetadataModeSymmetricWrapV1N, filePath, null, null, SampleContent, bucketName); }
public void PutGetFileUsingMetadataModeKMS_V2SecurityProfile() { metadataConfig.SecurityProfile = SecurityProfile.V2; AssertExtensions.ExpectException(() => { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeKMSV1, s3EncryptionClientMetadataModeKMSV2, filePath, null, null, SampleContent, bucketName); }, typeof(AmazonCryptoException), LegacyReadWhenLegacyDisabledMessage); }
public void PutGetZeroLengthContentUsingMetadataModeKMS() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeKMSV1, s3EncryptionClientMetadataModeKMSV2, null, null, "", "", bucketName); }
public void PutGetContentUsingMetadataModeKMS() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeKMSV1, s3EncryptionClientMetadataModeKMSV2, null, null, SampleContent, SampleContent, bucketName); }
public void PutGetNullContentContentUsingMetadataModeAsymmetricWrap() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientMetadataModeAsymmetricWrapV1, s3EncryptionClientMetadataModeAsymmetricWrapV2, null, null, null, "", bucketName); }
public void PutGetFileUsingInstructionFileModeAsymmetricWrap() { EncryptionTestsUtils.TestPutGet(s3EncryptionClientFileModeAsymmetricWrapV1, s3EncryptionClientFileModeAsymmetricWrapV2, filePath, null, null, SampleContent, bucketName); }