AesCng can't use any other key than 128 bits

Jul 1, 2013 at 6:31 PM
Hi All

I am trying to use AesCNG class with key length = 192.
When I call ValidKeySize() it only validates key size 128.

In the AesCng.cs I found this code:
    public override KeySizes[] LegalBlockSizes
    {
        get { return m_symmetricAlgorithm.LegalBlockSizes; }
    }

    public override KeySizes[] LegalKeySizes
    {
        get { return m_symmetricAlgorithm.LegalBlockSizes; }
    }
I suspect LegalKeySize should return m_symmetricAlgorithm.LegalKeySizes property instead, or this is some restriction regarding FIPS compliance?

Best