Changeset 1240 for trunk/CrypPlugins/MD5


Ignore:
Timestamp:
Mar 14, 2010, 7:14:53 PM (12 years ago)
Author:
pretzsch
Message:

+ MD5 plugin: Improved presentation

Location:
trunk/CrypPlugins/MD5
Files:
6 edited

Legend:

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

    r970 r1240  
    3434using Cryptool.MD5.Presentation;
    3535using Cryptool.MD5.Algorithm;
     36using System.Windows.Threading;
    3637
    3738namespace Cryptool.MD5
  • trunk/CrypPlugins/MD5/MD5.csproj

    r1031 r1240  
    99    <OutputType>Library</OutputType>
    1010    <AppDesignerFolder>Properties</AppDesignerFolder>
    11     <RootNamespace>Cryptool.MD5</RootNamespace>
     11    <RootNamespace>Cryptool.Plugins.MD5</RootNamespace>
    1212    <AssemblyName>MD5</AssemblyName>
    1313    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
     
    155155      <DependentUpon>UninitializedPresentation.xaml</DependentUpon>
    156156    </Compile>
     157    <Compile Include="Presentation\Tooltips\DataElementSelectionTooltip.xaml.cs">
     158      <DependentUpon>DataElementSelectionTooltip.xaml</DependentUpon>
     159    </Compile>
    157160    <Compile Include="Properties\AssemblyInfo.cs" />
    158161  </ItemGroup>
     
    291294    </Page>
    292295    <Page Include="Presentation\States\UninitializedPresentation.xaml">
     296      <SubType>Designer</SubType>
     297      <Generator>MSBuild:Compile</Generator>
     298    </Page>
     299    <Page Include="Presentation\Tooltips\DataElementSelectionTooltip.xaml">
    293300      <SubType>Designer</SubType>
    294301      <Generator>MSBuild:Compile</Generator>
  • trunk/CrypPlugins/MD5/Presentation/States/AddingPaddingBytesPresentation.xaml

    r936 r1240  
    1313    <Grid>
    1414        <displays:DataBlockDisplay Data="{Binding CurrentState.CurrentDataBlock}" Height="40" Margin="8,75,8,0" VerticalAlignment="Top" />
    15         <TextBlock Margin="8,119,8,186" Name="textBlock1" Text="and start the padding process by appending one single '1' bit to the end of our data. Since we are working with octets, this is the same as adding a '10000000' octet, thus, a byte with value 0x08, to the end of our data." TextWrapping="Wrap" Style="{DynamicResource textBlockStyle}" />
    16         <TextBlock Margin="8,248,8,0" x:Name="textBlock2" TextWrapping="Wrap" Height="120" VerticalAlignment="Top" Style="{DynamicResource textBlockStyle}" ><Run Text="We "/><Run Text="also "/><Run Text="append zero bytes to the data. We choose the number of zero bytes so that our resulting data length is 8 bytes short of the next multiple of 64. That way, we can append 8 bytes more and get an exact multiple of 64 as our data length."/></TextBlock>
     15        <TextBlock Margin="8,119,8,186" Name="textBlock1" Text="and start the padding process by appending one single '1' bit to the end of our data. Since we are working with octets, this amounts to adding a byte with the binary value 10000000, which equals the hex value 0x80, to the end of our data." TextWrapping="Wrap" Style="{DynamicResource textBlockStyle}" />
     16        <TextBlock Margin="8,248,8,0" x:Name="textBlock2" TextWrapping="Wrap" Height="120" VerticalAlignment="Top" Style="{DynamicResource textBlockStyle}" ><Run Text="After that, we append multiple zero bytes to our data. We choose the amount of zero bytes in such a way that the length of the complete data block will be 8 bytes short of the next multiple of 64. This allows us to then append 8 more bytes to the data and receive an exact multiple of 64 as our data length."/></TextBlock>
    1717        <TextBlock Height="25" Margin="8,46,8,0" Name="textBlock3" Text="We take the incomplete block of data that we've read," TextWrapping="Wrap" VerticalAlignment="Top" Style="{DynamicResource textBlockStyle}" />
    1818    </Grid>
  • trunk/CrypPlugins/MD5/Presentation/States/FinishedCompressionPresentation.xaml

    r970 r1240  
    1515                <my:CompressionVariableDisplay DataContext="{Binding LastState}" Margin="8,0,8,120" d:LayoutOverrides="VerticalAlignment" Height="70" VerticalAlignment="Bottom" />
    1616                <my:HashAccumulatorDisplay DataContext="{Binding CurrentState}" Height="70" Margin="8,0,8,12" VerticalAlignment="Bottom"/>
    17                 <TextBlock Height="28" Margin="392.703,153,392.703,0" x:Name="label1" VerticalAlignment="Top" Style="{DynamicResource textBlockStyle}"><Run Text="+"/></TextBlock>
    18                 <TextBlock Margin="392.703,0,392.703,111" x:Name="label2" Style="{DynamicResource textBlockStyle}" Height="28" VerticalAlignment="Bottom"><Run Text="="/></TextBlock>
     17                <TextBlock Margin="392.703,178,392.703,194" x:Name="label1" Style="{DynamicResource textBlockStyle}"><Run Text="+"/></TextBlock>
     18                <TextBlock Margin="392.703,0,392.703,86" x:Name="label2" Style="{DynamicResource textBlockStyle}" Height="28" VerticalAlignment="Bottom"><Run Text="="/></TextBlock>
    1919        <TextBlock Height="85" Margin="4,8,12,0" Name="textBlock2" Style="{DynamicResource textBlockStyle}" Text="We have finished with the last round of the compression function. To finish up, we take the result of the compression function's steps, our temporary variables A - D, and add them to our accumulators H1 - H4." TextWrapping="Wrap" VerticalAlignment="Top" />
    2020    </Grid>
  • trunk/CrypPlugins/MD5/Presentation/States/RoundStepPresentation.xaml

    r970 r1240  
    33    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    44    xmlns:Cryptool_MD5_Presentation_Displays="clr-namespace:Cryptool.MD5.Presentation.Displays" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="Cryptool.MD5.Presentation.States.RoundStepPresentation"
    5     Height="400" Width="800" mc:Ignorable="d">
     5    Height="400" Width="800" mc:Ignorable="d" IsVisibleChanged="UserControl_IsVisibleChanged">
    66    <UserControl.Resources>
    77        <ResourceDictionary>
     
    99                <ResourceDictionary Source="StyleDictionary.xaml"/>
    1010            </ResourceDictionary.MergedDictionaries>
     11            <Color x:Key="colorHighlight">#FFFF8D00</Color>
     12            <Color x:Key="colorNormal">Black</Color>
     13            <Storyboard x:Key="LineFadeStoryboard">
     14                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path2" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     15                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     16                        <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="Black"/>
     17                        <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFFF8D00"/>
     18                        <SplineColorKeyFrame KeyTime="00:00:02" Value="Black"/>
     19                </ColorAnimationUsingKeyFrames>
     20                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path3" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     21                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     22                        <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="Black"/>
     23                        <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFFF8D00"/>
     24                        <SplineColorKeyFrame KeyTime="00:00:02" Value="Black"/>
     25                </ColorAnimationUsingKeyFrames>
     26                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path1" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     27                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     28                        <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="Black"/>
     29                        <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFFF8D00"/>
     30                        <SplineColorKeyFrame KeyTime="00:00:02" Value="Black"/>
     31                </ColorAnimationUsingKeyFrames>
     32                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path6" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     33                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     34                    <SplineColorKeyFrame KeyTime="00:00:02.5000000" Value="{StaticResource colorNormal}"/>
     35                    <SplineColorKeyFrame KeyTime="00:00:03" Value="#FFFF8D00"/>
     36                    <SplineColorKeyFrame KeyTime="00:00:04" Value="Black"/>
     37                </ColorAnimationUsingKeyFrames>
     38                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path7" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     39                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     40                        <SplineColorKeyFrame KeyTime="00:00:02.5000000" Value="{StaticResource colorNormal}"/>
     41                        <SplineColorKeyFrame KeyTime="00:00:03" Value="#FFFF8D00"/>
     42                        <SplineColorKeyFrame KeyTime="00:00:04" Value="Black"/>
     43                </ColorAnimationUsingKeyFrames>
     44                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path8" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     45                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     46                        <SplineColorKeyFrame KeyTime="00:00:03.5000000" Value="{StaticResource colorNormal}"/>
     47                        <SplineColorKeyFrame KeyTime="00:00:04" Value="#FFFF8D00"/>
     48                        <SplineColorKeyFrame KeyTime="00:00:05" Value="Black"/>
     49                </ColorAnimationUsingKeyFrames>
     50                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path9" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     51                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     52                        <SplineColorKeyFrame KeyTime="00:00:03.5000000" Value="{StaticResource colorNormal}"/>
     53                        <SplineColorKeyFrame KeyTime="00:00:04" Value="#FFFF8D00"/>
     54                        <SplineColorKeyFrame KeyTime="00:00:05" Value="Black"/>
     55                </ColorAnimationUsingKeyFrames>
     56                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path10" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     57                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     58                        <SplineColorKeyFrame KeyTime="00:00:04.5000000" Value="{StaticResource colorNormal}"/>
     59                        <SplineColorKeyFrame KeyTime="00:00:05" Value="#FFFF8D00"/>
     60                        <SplineColorKeyFrame KeyTime="00:00:06" Value="{StaticResource colorNormal}"/>
     61                </ColorAnimationUsingKeyFrames>
     62                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path11" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     63                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     64                        <SplineColorKeyFrame KeyTime="00:00:04.5000000" Value="{StaticResource colorNormal}"/>
     65                        <SplineColorKeyFrame KeyTime="00:00:05" Value="#FFFF8D00"/>
     66                        <SplineColorKeyFrame KeyTime="00:00:06" Value="{StaticResource colorNormal}"/>
     67                </ColorAnimationUsingKeyFrames>
     68                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path12" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     69                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     70                        <SplineColorKeyFrame KeyTime="00:00:05.5000000" Value="{StaticResource colorNormal}"/>
     71                        <SplineColorKeyFrame KeyTime="00:00:06" Value="#FFFF8D00"/>
     72                        <SplineColorKeyFrame KeyTime="00:00:07" Value="#FFFF8D00"/>
     73                        <SplineColorKeyFrame KeyTime="00:00:08" Value="Black"/>
     74                </ColorAnimationUsingKeyFrames>
     75                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path13" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     76                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     77                        <SplineColorKeyFrame KeyTime="00:00:05.5000000" Value="{StaticResource colorNormal}"/>
     78                        <SplineColorKeyFrame KeyTime="00:00:06" Value="#FFFF8D00"/>
     79                        <SplineColorKeyFrame KeyTime="00:00:07" Value="Black"/>
     80                </ColorAnimationUsingKeyFrames>
     81                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path14" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     82                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     83                        <SplineColorKeyFrame KeyTime="00:00:05.5000000" Value="{StaticResource colorNormal}"/>
     84                        <SplineColorKeyFrame KeyTime="00:00:06" Value="#FFFF8D00"/>
     85                        <SplineColorKeyFrame KeyTime="00:00:07" Value="Black"/>
     86                </ColorAnimationUsingKeyFrames>
     87                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path12_Copy" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     88                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     89                        <SplineColorKeyFrame KeyTime="00:00:06.5000000" Value="{StaticResource colorNormal}"/>
     90                        <SplineColorKeyFrame KeyTime="00:00:07" Value="#FFFF8D00"/>
     91                        <SplineColorKeyFrame KeyTime="00:00:08" Value="Black"/>
     92                </ColorAnimationUsingKeyFrames>
     93                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path15" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     94                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     95                        <SplineColorKeyFrame KeyTime="00:00:06.5000000" Value="{StaticResource colorNormal}"/>
     96                        <SplineColorKeyFrame KeyTime="00:00:07" Value="#FFFF8D00"/>
     97                        <SplineColorKeyFrame KeyTime="00:00:08" Value="Black"/>
     98                </ColorAnimationUsingKeyFrames>
     99                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path16" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     100                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     101                        <SplineColorKeyFrame KeyTime="00:00:06.5000000" Value="{StaticResource colorNormal}"/>
     102                        <SplineColorKeyFrame KeyTime="00:00:07" Value="#FFFF8D00"/>
     103                        <SplineColorKeyFrame KeyTime="00:00:08" Value="Black"/>
     104                </ColorAnimationUsingKeyFrames>
     105                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path17" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     106                    <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     107                        <SplineColorKeyFrame KeyTime="00:00:06.5000000" Value="{StaticResource colorNormal}"/>
     108                        <SplineColorKeyFrame KeyTime="00:00:07" Value="#FFFF8D00"/>
     109                        <SplineColorKeyFrame KeyTime="00:00:08" Value="Black"/>
     110                </ColorAnimationUsingKeyFrames>
     111                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path6" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
     112                    <SplineColorKeyFrame KeyTime="00:00:00" Value="White"/>
     113                    <SplineColorKeyFrame KeyTime="00:00:02.5000000" Value="Black"/>
     114                    <SplineColorKeyFrame KeyTime="00:00:03" Value="White"/>
     115                </ColorAnimationUsingKeyFrames>
     116                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path7" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
     117                    <SplineColorKeyFrame KeyTime="00:00:00" Value="White"/>
     118                        <SplineColorKeyFrame KeyTime="00:00:02.5000000" Value="Black"/>
     119                        <SplineColorKeyFrame KeyTime="00:00:03" Value="White"/>
     120                </ColorAnimationUsingKeyFrames>
     121                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path8" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
     122                    <SplineColorKeyFrame KeyTime="00:00:00" Value="White"/>
     123                        <SplineColorKeyFrame KeyTime="00:00:03.5000000" Value="{StaticResource colorNormal}"/>
     124                        <SplineColorKeyFrame KeyTime="00:00:04" Value="White"/>
     125                </ColorAnimationUsingKeyFrames>
     126                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path9" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
     127                    <SplineColorKeyFrame KeyTime="00:00:00" Value="White"/>
     128                        <SplineColorKeyFrame KeyTime="00:00:03.5000000" Value="{StaticResource colorNormal}"/>
     129                        <SplineColorKeyFrame KeyTime="00:00:04" Value="White"/>
     130                </ColorAnimationUsingKeyFrames>
     131                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path4" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
     132                    <SplineColorKeyFrame KeyTime="00:00:00" Value="White"/>
     133                        <SplineColorKeyFrame KeyTime="00:00:01.5000000" Value="{StaticResource colorNormal}"/>
     134                        <SplineColorKeyFrame KeyTime="00:00:02" Value="White"/>
     135                </ColorAnimationUsingKeyFrames>
     136                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path5" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
     137                    <SplineColorKeyFrame KeyTime="00:00:00" Value="White"/>
     138                        <SplineColorKeyFrame KeyTime="00:00:01.5000000" Value="{StaticResource colorNormal}"/>
     139                        <SplineColorKeyFrame KeyTime="00:00:02" Value="White"/>
     140                </ColorAnimationUsingKeyFrames>
     141                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path2" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
     142                        <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     143                        <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="Black"/>
     144                        <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFFF8D00"/>
     145                        <SplineColorKeyFrame KeyTime="00:00:02" Value="White"/>
     146                </ColorAnimationUsingKeyFrames>
     147                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path3" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
     148                        <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     149                        <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="Black"/>
     150                        <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFFF8D00"/>
     151                        <SplineColorKeyFrame KeyTime="00:00:02" Value="White"/>
     152                </ColorAnimationUsingKeyFrames>
     153                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path1" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
     154                        <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     155                        <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="Black"/>
     156                        <SplineColorKeyFrame KeyTime="00:00:01" Value="#FFFF8D00"/>
     157                        <SplineColorKeyFrame KeyTime="00:00:02" Value="White"/>
     158                </ColorAnimationUsingKeyFrames>
     159                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path4" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     160                        <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     161                        <SplineColorKeyFrame KeyTime="00:00:01.5000000" Value="{StaticResource colorNormal}"/>
     162                        <SplineColorKeyFrame KeyTime="00:00:02" Value="{StaticResource colorHighlight}"/>
     163                        <SplineColorKeyFrame KeyTime="00:00:03" Value="{StaticResource colorNormal}"/>
     164                </ColorAnimationUsingKeyFrames>
     165                <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path5" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
     166                        <SplineColorKeyFrame KeyTime="00:00:00" Value="Black"/>
     167                        <SplineColorKeyFrame KeyTime="00:00:01.5000000" Value="{StaticResource colorNormal}"/>
     168                        <SplineColorKeyFrame KeyTime="00:00:02" Value="{StaticResource colorHighlight}"/>
     169                        <SplineColorKeyFrame KeyTime="00:00:03" Value="{StaticResource colorNormal}"/>
     170                </ColorAnimationUsingKeyFrames>
     171            </Storyboard>
    11172        </ResourceDictionary>
    12173    </UserControl.Resources>
    13174    <Grid>
    14175
     176        <Path x:Name="path12_Copy" Fill="White" Stretch="Fill"  Stroke="Black" HorizontalAlignment="Right" Margin="0,0,293,39.5" Width="1" Data="M506,62 L506,351.5" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Bottom" Height="113">
     177            <Path.RenderTransform>
     178                <TransformGroup>
     179                    <ScaleTransform/>
     180                    <SkewTransform/>
     181                    <RotateTransform/>
     182                    <TranslateTransform/>
     183                </TransformGroup>
     184            </Path.RenderTransform>
     185        </Path>
     186        <Path x:Name="path6" Fill="White" Stroke="Black" HorizontalAlignment="Left" Margin="185.5,123.5,0,0" VerticalAlignment="Top" Width="192" Height="46" Data="M0.5,0.5 L189.5,45.5"/>
     187
    15188        <Cryptool_MD5_Presentation_Displays:RoundAndStepDisplay VerticalAlignment="Top" HorizontalAlignment="Left" DataContext="{Binding CurrentState}" Margin="8,8,0,0"/>
    16         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Left" Margin="74,62,0,0" VerticalAlignment="Top" Width="1" Height="1" Data="M74,62"/>
    17        
    18         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Right" Margin="0,62,65,47.5" Width="1" Data="M740,62 L740,351.5"/>
    19         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Right" Margin="0,60,181,47.5" Width="1" Data="M618,60 L618,351.5"/>
    20         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Right" Margin="0,62,293,47.5" Width="1" Data="M506,62 L506,351.5"/>
    21         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Right" Margin="0,61.5,291.5,0" VerticalAlignment="Top" Width="62.5" Height="51.5" Data="M446,112 L507.5,61.5"/>
    22         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Right" Margin="0,60,181,0" VerticalAlignment="Top" Width="169.5" Height="52.5" Data="M618,60 L449.5,111.5"/>
    23         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Right" Margin="0,60,65,0" VerticalAlignment="Top" Width="283.5" Height="52.5" Data="M734,60 L451.5,111.5"/>
    24         <Path Fill="White" Stretch="Fill" Stroke="Black" Margin="375,58,0,0" VerticalAlignment="Top" Height="43" Data="M375,58 L375,149.5" HorizontalAlignment="Left" Width="1"/>
    25         <Path Fill="White" Stretch="Fill" Stroke="Black" Margin="390.5,118,379,0" VerticalAlignment="Top" Height="1" Data="M420,134 L397.5,134"/>
    26         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Left" Margin="375,137,0,0" VerticalAlignment="Top" Width="1" Height="12.5" Data="M375,150 L375,161.5"/>
    27         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Left" Margin="376,184,0,0" Width="1" Data="M376,200 L376,209.5" VerticalAlignment="Top" Height="13.5"/>
    28         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Left" Margin="376,0,0,152.5" VerticalAlignment="Bottom" Width="1" Height="14.5" Data="M376,246 L376,259.5"/>
    29         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Left" Margin="376,0,0,105" VerticalAlignment="Bottom" Width="1" Height="14" Data="M376,246 L376,259.5"/>
    30         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Left" Margin="376,0,0,56.5" VerticalAlignment="Bottom" Width="1" Height="9.5" Data="M376,246 L376,259.5"/>
    31         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Left" Margin="306,126,0,0" VerticalAlignment="Top" Width="54.5" Height="50.5" Data="M306,126 L359.5,129.5"/>
    32         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Left" Margin="148,188,0,177.04" Width="212.5" Data="M148,214 L343.5,229.5"/>
    33         <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Left" Margin="164,0,0,128.04" VerticalAlignment="Bottom" Width="180.5" Height="9.96" Data="M128,262 L343.5,275.5"/>
    34         <Path Fill="White" Stretch="Fill" Stroke="Black" Margin="392,0,293.5,87" VerticalAlignment="Bottom" Height="55.5" Data="M392,324 L505.5,269.5"/>
     189
     190        <Path x:Name="path15" Fill="White" Stretch="Fill"  Stroke="Black" HorizontalAlignment="Right" Margin="0,62,65,47.5" Width="1" Data="M740,62 L740,351.5"/>
     191        <Path x:Name="path16" Fill="White" Stretch="Fill"  Stroke="Black" HorizontalAlignment="Right" Margin="0,60,181,47.5" Width="1" Data="M618,60 L618,351.5"/>
     192        <Path x:Name="path12" Stretch="Fill"  Stroke="Black" HorizontalAlignment="Right" Margin="0,62,293,152.5" Width="1" Data="M506,62 L506,351.5" RenderTransformOrigin="0.5,0.5" Fill="White">
     193            <Path.RenderTransform>
     194                <TransformGroup>
     195                    <ScaleTransform/>
     196                    <SkewTransform/>
     197                    <RotateTransform/>
     198                    <TranslateTransform/>
     199                </TransformGroup>
     200            </Path.RenderTransform>
     201        </Path>
     202        <Path x:Name="path2" Stretch="Fill" HorizontalAlignment="Right" Margin="0,61.5,291.5,0" VerticalAlignment="Top" Width="62.5" Height="51.5" Data="M446,112 L507.5,61.5" OpacityMask="{x:Null}">
     203                <Path.Stroke>
     204                        <SolidColorBrush Color="{DynamicResource colorNormal}"/>
     205                </Path.Stroke>
     206                <Path.Fill>
     207                        <SolidColorBrush Color="{DynamicResource colorNormal}"/>
     208                </Path.Fill>
     209        </Path>
     210        <Path x:Name="path3" Stretch="Fill" HorizontalAlignment="Right" Margin="0,60,181,0" VerticalAlignment="Top" Width="169.5" Height="52.5" Data="M618,60 L449.5,111.5" OpacityMask="{x:Null}">
     211                <Path.Stroke>
     212                        <SolidColorBrush Color="{DynamicResource colorNormal}"/>
     213                </Path.Stroke>
     214                <Path.Fill>
     215                        <SolidColorBrush Color="{DynamicResource colorNormal}"/>
     216                </Path.Fill>
     217        </Path>
     218        <Path x:Name="path1" Stretch="Fill" HorizontalAlignment="Right" Margin="0,60,65,0" VerticalAlignment="Top" Width="283.5" Height="52.5" Data="M734,60 L451.5,111.5" OpacityMask="{x:Null}">
     219                <Path.Stroke>
     220                        <SolidColorBrush Color="{DynamicResource colorNormal}"/>
     221                </Path.Stroke>
     222                <Path.Fill>
     223                        <SolidColorBrush Color="{DynamicResource colorNormal}"/>
     224                </Path.Fill>
     225        </Path>
     226        <Path x:Name="path4" Fill="White" Stretch="Fill" Margin="375,58,0,0" VerticalAlignment="Top" Height="43" Data="M375,58 L375,149.5" HorizontalAlignment="Left" Width="1" Stroke="Black"/>
     227        <Path x:Name="path5" Fill="White" Stretch="Fill" Margin="390.5,118,379,0" VerticalAlignment="Top" Height="1" Data="M420,134 L397.5,134" Stroke="Black"/>
     228        <Path x:Name="path7" Fill="White" Stretch="Fill"  Stroke="Black" HorizontalAlignment="Left" Margin="375,137,0,0" VerticalAlignment="Top" Width="1" Height="12.5" Data="M375,150 L375,161.5"/>
     229        <Path x:Name="path8" Fill="White" Stretch="Fill"   HorizontalAlignment="Left" Margin="376,184,0,0" Width="1" Data="M376,200 L376,209.5" VerticalAlignment="Top" Height="13.5" Stroke="Black"/>
     230        <Path x:Name="path10" Fill="White" Stretch="Fill"  HorizontalAlignment="Left" Margin="376,0,0,136.22" VerticalAlignment="Bottom" Width="1" Height="29.78" Data="M376,246 L376,259.5" Stroke="Black"/>
     231        <Path x:Name="path13" Stretch="Fill"  HorizontalAlignment="Left" Margin="376,0,0,105" VerticalAlignment="Bottom" Width="1" Height="14" Data="M376,246 L376,259.5" Stroke="Black" Fill="White"/>
     232        <Path x:Name="path17" Fill="White" Stretch="Fill"  HorizontalAlignment="Left" Margin="376,0,0,56.5" VerticalAlignment="Bottom" Width="1" Height="9.5" Data="M376,246 L376,259.5" Stroke="Black"/>
     233        <Path x:Name="path9" Fill="White" Stretch="Fill"  HorizontalAlignment="Left" Margin="148,188,0,186" Width="212.5" Data="M148,214 L343.5,229.5" Stroke="Black"/>
     234        <Path x:Name="path11" Fill="White" Stretch="Fill"   HorizontalAlignment="Left" Margin="164,0,0,134" VerticalAlignment="Bottom" Width="180.5" Height="8" Data="M128,262 L343.5,275.5" Stroke="Black"/>
     235        <Path x:Name="path14" Stretch="Fill"   Margin="392,0,294,87" VerticalAlignment="Bottom" Height="67" Data="M392,324 L505.5,269.5" Stroke="Black" Fill="White"/>
    35236        <Cryptool_MD5_Presentation_Displays:FunctionNameDisplay HorizontalAlignment="Right" Margin="0,97,323,0" Width="56" VerticalAlignment="Top" Height="44" FunctionName="{Binding CurrentState.RoundFunctionName}"/>
    36237        <Cryptool_MD5_Presentation_Displays:ShiftedCompressionVariableDisplay Margin="332,0,8,8" VerticalAlignment="Bottom" Height="50" Width="460" DataContext="{Binding CurrentState}"/>
    37238        <Cryptool_MD5_Presentation_Displays:CompressionVariableDisplay Margin="332,8,8,0" VerticalAlignment="Top" Height="50" Width="460" DataContext="{Binding LastState}"/>
    38239        <Label Margin="360.5,101,0,0" VerticalAlignment="Top" Height="35" Content="+" Style="{DynamicResource labelStyle}" BorderThickness="1" BorderBrush="Black" HorizontalContentAlignment="Center" Template="{DynamicResource functionLabelStyle}" HorizontalAlignment="Left" Width="30" FontSize="16" Background="White">
    39                 <Label.Effect>
    40                         <DropShadowEffect/>
    41                 </Label.Effect>
     240            <Label.Effect>
     241                <DropShadowEffect/>
     242            </Label.Effect>
    42243        </Label>
    43244        <Label Background="White" HorizontalAlignment="Left" Margin="360.5,149,0,0" Style="{DynamicResource labelStyle}" Width="30" Content="+" BorderBrush="Black" BorderThickness="1" FontSize="16" HorizontalContentAlignment="Center" Template="{DynamicResource functionLabelStyle}" VerticalAlignment="Top" Height="35">
    44                 <Label.Effect>
    45                         <DropShadowEffect/>
    46                 </Label.Effect>
    47         </Label>
    48         <Label Background="White" Margin="344.5,0,393.5,119" Style="{DynamicResource labelStyle}" VerticalAlignment="Bottom" Height="35" Content="&lt;&lt;&lt;" BorderBrush="Black" BorderThickness="1" FontSize="16" HorizontalContentAlignment="Center" Template="{DynamicResource functionLabelStyle}">
    49                 <Label.Effect>
    50                         <DropShadowEffect/>
    51                 </Label.Effect>
     245            <Label.Effect>
     246                <DropShadowEffect/>
     247            </Label.Effect>
     248        </Label>
     249        <Label Background="White" Margin="344.5,0,393.5,113" Style="{DynamicResource labelStyle}" VerticalAlignment="Bottom" Height="35" Content="&lt;&lt;&lt;" BorderBrush="Black" BorderThickness="1" FontSize="16" HorizontalContentAlignment="Center" Template="{DynamicResource functionLabelStyle}">
     250            <Label.Effect>
     251                <DropShadowEffect/>
     252            </Label.Effect>
    52253        </Label>
    53254        <Label Background="White" HorizontalAlignment="Left" Margin="360.5,197,0,168" Style="{DynamicResource labelStyle}" Width="30" Content="+" BorderBrush="Black" BorderThickness="1" FontSize="16" HorizontalContentAlignment="Center" Template="{DynamicResource functionLabelStyle}">
    54                 <Label.Effect>
    55                         <DropShadowEffect/>
    56                 </Label.Effect>
     255            <Label.Effect>
     256                <DropShadowEffect/>
     257            </Label.Effect>
    57258        </Label>
    58259        <Label Background="White" HorizontalAlignment="Left" Margin="360.5,0,0,70" Style="{DynamicResource labelStyle}" VerticalAlignment="Bottom" Width="30" Height="35" Content="+" BorderBrush="Black" BorderThickness="1" FontSize="16" HorizontalContentAlignment="Center" Template="{DynamicResource functionLabelStyle}">
    59                 <Label.Effect>
    60                         <DropShadowEffect/>
    61                 </Label.Effect>
    62         </Label>
    63         <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="AC" Margin="112.245,165.298,0,186" HorizontalAlignment="Left" Width="117.755" Value="{Binding CurrentState.AdditionConstant}"/>
    64                 <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="SC" Margin="112.245,0,0,118.298" HorizontalAlignment="Left" Width="117.755" Value="{Binding CurrentState.ShiftConstant}" VerticalAlignment="Bottom" Height="48.702"/>
    65                 <Cryptool_MD5_Presentation_Displays:DataIntegerDisplay Margin="18,101,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="298" Height="46"/>
    66 
    67 
     260            <Label.Effect>
     261                <DropShadowEffect/>
     262            </Label.Effect>
     263        </Label>
     264        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="AC" Margin="127,165.298,0,186" HorizontalAlignment="Left" Width="117.755" Value="{Binding CurrentState.AdditionConstant}"/>
     265        <Cryptool_MD5_Presentation_Displays:LabelledIntegerDisplay Caption="SC" Margin="127,0,0,122.646" HorizontalAlignment="Left" Width="117.755" Value="{Binding CurrentState.ShiftConstant}" VerticalAlignment="Bottom" Height="48.702"/>
     266        <Cryptool_MD5_Presentation_Displays:DataIntegerDisplay Margin="12,101,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="298" Height="46"/>
     267        <Label Margin="12,165.298,679,186" Name="label1" VerticalContentAlignment="Center">Addition constant</Label>
     268        <Label Height="48.702" HorizontalAlignment="Left" Margin="12,0,0,119" Name="label2" VerticalAlignment="Bottom" VerticalContentAlignment="Center" Width="109">Shift constant</Label>
     269        <Label Height="28" HorizontalAlignment="Left" Margin="12,73,0,0" Name="label3" VerticalAlignment="Top" Width="298" HorizontalContentAlignment="Center">Selected part from input data block</Label>
     270        <Label Background="White" BorderBrush="DarkGray" BorderThickness="1" FontSize="16" Height="35" HorizontalAlignment="Left" HorizontalContentAlignment="Center" Margin="8,0,0,52" Style="{DynamicResource labelStyle}" Template="{DynamicResource functionLabelStyle}" VerticalAlignment="Bottom" Width="30" Foreground="DarkGray">
     271            <Label.Effect>
     272                <DropShadowEffect Color="DarkGray" />
     273            </Label.Effect> +
     274        </Label>
     275        <Label Height="38.909" HorizontalAlignment="Left" Margin="76,0,0,6.888" Name="label4" VerticalAlignment="Bottom" VerticalContentAlignment="Center" Width="109" Foreground="DarkGray">Rotating left shift</Label>
     276        <Label Background="White" BorderBrush="DarkGray" BorderThickness="1" FontSize="16" Height="35" HorizontalAlignment="Left" HorizontalContentAlignment="Center" Margin="8,0,0,10.797" Style="{DynamicResource labelStyle}" Template="{DynamicResource functionLabelStyle}" VerticalAlignment="Bottom" Width="62" Foreground="DarkGray">
     277            <Label.Effect>
     278                <DropShadowEffect Color="DarkGray" />
     279            </Label.Effect> &lt;&lt;&lt;
     280        </Label>
     281        <Label Height="39" HorizontalAlignment="Left" Margin="44,0,0,47.5" Name="label5" VerticalAlignment="Bottom" VerticalContentAlignment="Center" Width="282" Foreground="DarkGray">Unsigned integer addition discarding carry bit</Label>
     282        <Label Height="45.056" HorizontalAlignment="Left" Margin="284,234,0,0" Name="label6" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="70" Foreground="DarkGray">shifted by</Label>
     283        <Label Height="45.056" Margin="374,0,344,134" Name="label7" VerticalAlignment="Bottom" VerticalContentAlignment="Center" Foreground="DarkGray">shifted value</Label>
    68284    </Grid>
    69285</UserControl>
  • trunk/CrypPlugins/MD5/Presentation/States/RoundStepPresentation.xaml.cs

    r970 r1240  
    1212using System.Windows.Navigation;
    1313using System.Windows.Shapes;
     14using System.Windows.Media.Animation;
    1415
    1516namespace Cryptool.MD5.Presentation.States
     
    2425            InitializeComponent();
    2526        }
     27
     28        private void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
     29        {
     30            if (IsVisible)
     31                ((Storyboard)FindResource("LineFadeStoryboard")).Begin();
     32        }
    2633    }
    2734}
Note: See TracChangeset for help on using the changeset viewer.