473,288 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,288 software developers and data experts.

AES 128 using SslStream in .Net Framework 2.0

Hello,
I just wanted to inquire if all the cipher suite Cipher Algorithm types (specifically AES group) are usable in .Net framework or not. According to my understanding, AES ciphers are still not recognized by the .Net environment. I just wanted to ask if AES 64, 128, 256, etc. are available in the .Net framework to work with or not.
I have pasted some relevant posts from the other forums below:
Post 1:
CryptoAPI AES 128bit for SSL stream in Windows VISTA seems not compatibale with openssl
Does anyone know how to make it work for Openssl and CryptoAPI using AES 128bit?
I had tried the SDK sample in the "Microsoft Platform SDK\Samples\Security\SSPI\SSL\WebServer". Client side is using Openssl library, both can handshake and exchange symmetric encryption key. Openssl side can decrypt the AES 128bit stream, but Microsoft CryptoAPI side can not decrypt AES 128bit data from OpenSSL side.

If use CryptoAPI in both sides, or OpenSSL in both sides then AES will work fine. If not use AES encryption, Openssl can talk with CryptoAPI without problem. Is this a compatible problem?

Post 2:
Here is that newsgroup inquiry from somebody - November 2005:
"I am having major problems connecting to a specific SSL-enabled server.
This server only supports AES 128 and AES 256, but the .NET 2.0 SslStream
class doesn't seem to support it (although the CipherAlgorithmType enum
has the values Aes128 and Aes256)."

Answer:
The underlying security package that System.Net uses (SSPI - a part of
Windows) currently does not support those cipher suites.
Mike Flasko - PM, System.Net & Winsock, MSFT

Is it still the case that AES is not useable from .NET and only useable
via the CryptoAPI using C++ or C?

Here is the list from the CipherAlgorithmType page, where only the last 4
are useable.
Aes The Advanced Encryption Standard (AES) algorithm.
Aes128 The Advanced Encryption Standard (AES) algorithm with a 128 bit
key.
Aes192 The Advanced Encryption Standard (AES) algorithm with a 192 bit
key.
Aes256 The Advanced Encryption Standard (AES) algorithm with a 256 bit
key.
Des The Data Encryption Standard (DES) algorithm.
None No encryption algorithm is used.
Rc2 Rivest's Code 2 (RC2) algorithm.
Rc4 Rivest's Code 4 (RC4) algorithm.
TripleDes The Triple Data Encryption Standard (3DES) algorithm.

Thanks

Shuaib Ali
Nov 22 '07 #1
0 2167

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Richard Taylor | last post by:
User-Agent: OSXnews 2.07 Xref: number1.nntp.dca.giganews.com comp.lang.python:437315 Hi I am trying to use py2app (http://undefined.org/python/) to package a gnome-python application...
0
by: Jakob Nielsen | last post by:
This is a question about partly .net sslStreams and partly about the certificates it uses. I can't seem to find a more specific group.. and since i am coding in c# :-) I try creating a sslStream...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
8
by: Azrael | last post by:
Hi, I have an SSLStream and i want to resume the SSL-Session for another connection to this server. How can i do this? I haven´t found any clues for it in SSLStream, perhaps Negotiatestream...
0
by: xievvv | last post by:
I am trying to have a SslStream client and an SslStream server mutually authenticate and communicate with each other, over TCP. So when I call the methods AuthenticateAsClient() and...
1
by: Dave | last post by:
Hi. When my client program runs under XP and calls a server (solaris in this case) via an SslStream all is well. The client may make multiple calls and multiple authentication calls and be fine....
3
by: ntuyen01 | last post by:
Hi All, I want to develop an web application using TLS (C# 2.0) to test our server, which just installed the AT/TLS encryption on test system's CICS Sockets. I here .NET 2.0 support TLS, but I...
0
by: ntuyen01 | last post by:
Hi all, I want to use the SSLStream with the cipher (TLS_RSA_WITH_AES_128_CBC_SHA) to get the handshake with my server, but I not sure where I can start. I do it in C# 2.0 Here is my code: ...
0
by: ntuyen01 | last post by:
Hi, I am having major problems connecting to a specific SSL-enabled server. This server only allow AES ciphers V3CipherSuites 393837363533323130 V3CipherSuites ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.