Changeset 1195 for trunk/CrypPlugins/AES


Ignore:
Timestamp:
Feb 26, 2010, 1:57:31 AM (12 years ago)
Author:
Sven Rech
Message:

removed unsafe code

Location:
trunk/CrypPlugins/AES
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/AES/AES.cs

    r1194 r1195  
    523523                return null;
    524524
    525             unsafe
    526             {
    527                 fixed (byte* inp = ciphertext)
    528                 fixed (byte* akey = key)
    529                 fixed (byte* iv = IV)
    530                 {
    531                     return NativeCryptography.Crypto.decryptAES(inp, akey, iv, bits, size, ((AESSettings)plugin.Settings).Mode);
    532                 }
    533             }
     525            return NativeCryptography.Crypto.decryptAES(ciphertext, key, IV, bits, size, ((AESSettings)plugin.Settings).Mode);
    534526        }
    535527
  • trunk/CrypPlugins/AES/AES.csproj

    r1193 r1195  
    2424    <ErrorReport>prompt</ErrorReport>
    2525    <WarningLevel>4</WarningLevel>
    26     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
     26    <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
    2727  </PropertyGroup>
    2828  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     
    3333    <ErrorReport>prompt</ErrorReport>
    3434    <WarningLevel>4</WarningLevel>
    35     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
     35    <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
    3636  </PropertyGroup>
    3737  <ItemGroup>
Note: See TracChangeset for help on using the changeset viewer.