Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

AesManaged().CreateEncryptor(); in 4.3.3

Discussion in 'Windows' started by PaXLiCh, Feb 13, 2014.

  1. PaXLiCh

    PaXLiCh

    Joined:
    Jul 28, 2013
    Posts:
    4
    I have problem with new AesManaged().CreateEncryptor();

    Result object from CreateEncryptor() must be casted to ICryptoTransform
    and work with this constructor
    new CryptoStream(MemoryStream, ICryptoTransform, CryptoStreamMode)

    but in real method returns:
    in editor — AesTransform
    on device — RijndaelManagedTransform

    and on windows phone RijndaelManagedTransform can’t be casted to ICryptoTransform
    In editor AesTransform cast works normal


    If execute this method on real device
    typeof(AesManaged).GetMethod("CreateEncryptor");
    you may see, that ICryptoTransfrom CreateEncryptor() existing and must work


    normal Windows Phone 8 app works fine with AES encryption
    previous version of unity also works passably

    Unity 4.3.3


    bugreport with comments and project to reproduce was sended, but still no answer from team
    ticket 590728_8geldnle7hl7a3jh
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,628
    Hi,

    this is a known issue and will be fixed in the very next Unity release. It's a regression that was introduced into 4.3.3. 4.3.2 shouldn't have this problem.
     
  3. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    If you guys decide to fix this in a 4.3.x hotfix, please include the broken reflection fixes as well (such as Type.GetHashCode).
     
  4. kpaleniu

    kpaleniu

    Joined:
    Mar 5, 2014
    Posts:
    1
    Seems to be still present on 4.3.4.
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,628
    Yes, it's still present on 4.3.4. It is fixed and under way on the very next Unity 4.x release.
     
  6. PaXLiCh

    PaXLiCh

    Joined:
    Jul 28, 2013
    Posts:
    4
    And when new update will be released?
    We cant manually fix this problem, we cant downgrade to older versions (unity is most bugged engine, each version has a tons of awful problems)
    Support ignores my post. On bugtracker no answers.

    Or you guys think, that we buy 5 version of this <some rude word> just for fixing bugs?

    We bought unity3 pro, but you drop support with a lot of bugs.
    We bought unity4 pro, and this happens again? WTF? Our studio loosing money in waiting of update.
     
  7. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,703
    Unity 4.5 is in late beta now, should be released fairly soon.