Haseena Parkar
Haseena Parkar

Reputation: 979

The specified cryptographic algorithm is not supported on this platform in Glacier Upload

We are facing a problem in uploading data to glacier on Windows XP machine. Below is the error message "The specified cryptographic algorithm is not supported on this platform."

Error occur at line (for .net low level glacier API)

client.UploadMultipartPart(uploadMPUrequest);

and also while using high level API below is the code

string archiveId =   manager.Upload(vaultName,"name",archiveToUpload).ArchiveId;

On reading few links we came to know that windows XP does not support cryptography. But we have many clients running XP machine, is there any solution or any hot fix for it.

I came across a hot fix while searching the error but it works for windows server machine and no luck for windows XP.

Upvotes: 2

Views: 5046

Answers (2)

Haseena Parkar
Haseena Parkar

Reputation: 979

I used AWSDK version 2.3 and that solved the problem, but using the higher version had led to many namespace and used classes names changes in the code.

Upvotes: 1

Orace
Orace

Reputation: 8359

Let say that your crypto algorithm is SHA256.

If you have access to the code, you can try to use SHA256Managed instead of SHA256CryptoServiceProvider.

The algorithm will be run by the framework instead of try to be run by the platform.

If you need performance, you can try the platform algorithm then the framework implemented one (Thomas Dufour solution):

    SHA256 hash;
    try
    {
        hash = new SHA256Cng( );
    }
    catch ( PlatformNotSupportedException )
    {
        hash = SHA256.Create( );
    }

An other solution has described here is to rename the cryptographic service in the registry.

In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider, find the subkey named "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)" and rename it to "Microsoft Enhanced RSA and AES Cryptographic Provider".

The system has to be a XP SP3.

Upvotes: 1

Related Questions