Ignore:
Timestamp:
Aug 29, 2010, 10:09:47 PM (11 years ago)
Author:
schomburg
Message:

added english menus
changed GUI a bit
added additional input for bleichenbacher signatures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/PKCS1/WpfControls/Components/SigGenKuehnControl.xaml

    r1744 r1885  
    44    xmlns:my="clr-namespace:PKCS1.WpfResources"
    55    xmlns:lib="clr-namespace:PKCS1.Library"
     6    xmlns:lang="clr-namespace:PKCS1.Resources.lang.Gui"
    67    VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
    78    <UserControl.Resources>
     
    1516        </Grid.RowDefinitions>
    1617        <!-- Generate Signature -->
    17         <GroupBox Header="Signatur generieren" Name="gbSigGen" Grid.Row="0">
     18        <GroupBox Name="gbSigGen" Grid.Row="0">
     19            <GroupBox.Header>
     20                <x:Static Member="lang:SigGenKuehnCtrl.genSig"></x:Static>
     21            </GroupBox.Header>
    1822            <Grid>
    1923                <Grid.ColumnDefinitions>
     
    2933                        <RowDefinition Height="*" />
    3034                    </Grid.RowDefinitions>
    31                     <Label Grid.Row="0" Name="lblRsaKeySize" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">RSA-Schlüsselgröße (in Bit):</Label>
    32                     <Label Grid.Row="1" Name="lblPublicKey" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">Öffentlicher Schlüssel:</Label>
    33                     <Label Grid.Row="2" Name="lblIterations" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">Max. Anzahl an Iterationen:</Label>
     35                    <Label Grid.Row="0" Name="lblRsaKeySize" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">
     36                        <x:Static Member="lang:SigGenKuehnCtrl.rsaKeySize"></x:Static></Label>
     37                    <Label Grid.Row="1" Name="lblPublicKey" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">
     38                        <x:Static Member="lang:SigGenKuehnCtrl.pubKey"></x:Static></Label>
     39                    <Label Grid.Row="2" Name="lblIterations" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">
     40                        <x:Static Member="lang:SigGenKuehnCtrl.maxIterations"></x:Static></Label>
    3441                </Grid>
    3542                <!-- middle -->
     
    6471                        <RowDefinition Height="*" />
    6572                    </Grid.RowDefinitions>
    66                     <GroupBox Grid.Row="0" Header="Struktur" Name="gbStruct" Height="47" Width="200" HorizontalAlignment="Right" VerticalAlignment="Top">
     73                    <GroupBox Grid.Row="0" Name="gbStruct" Height="47" Width="200" HorizontalAlignment="Right" VerticalAlignment="Top">
     74                        <GroupBox.Header>
     75                            <x:Static Member="lang:SigGenKuehnCtrl.structure"></x:Static>
     76                        </GroupBox.Header>
    6777                        <Grid>
    6878                            <Grid.ColumnDefinitions>
     
    8090                            <Label Grid.Column="3">'00'</Label>
    8191                            <Label Grid.Column="4" Foreground="Blue">HI</Label>
    82                             <Label Grid.Column="5" Foreground="Red">HW</Label>
     92                            <Label Grid.Column="5" Foreground="Red">HD</Label>
    8393                            <Label Grid.Column="6">GG</Label>
    8494                        </Grid>
    8595                    </GroupBox>
    86                     <Button Grid.Row="1" Name="bExecute" Margin="5,5,5,5" Click="bExecute_Click" Height="25" HorizontalAlignment="Right" VerticalAlignment="Bottom" MinWidth="100">Gefälschte Signatur generieren</Button>
     96                    <Button Grid.Row="1" Name="bExecute" Margin="5,5,5,5" Click="bExecute_Click" Height="25" HorizontalAlignment="Right" VerticalAlignment="Bottom" MinWidth="100">
     97                        <x:Static Member="lang:SigGenKuehnCtrl.genFakeSig"></x:Static></Button>
    8798                </Grid>
    8899            </Grid>
     
    93104       
    94105        <!-- Result -->
    95         <GroupBox Header="Generierte Signatur" Name="gbSigRes" Grid.Row="2" Margin="0,15,0,0">
     106        <GroupBox Header="Erzeugte Signatur" Name="gbSigRes" Grid.Row="2" Margin="0,15,0,0">
    96107            <Grid>
    97108                <Grid.RowDefinitions >
     
    101112                    <RowDefinition Height="*" />
    102113                </Grid.RowDefinitions>
    103                 <Label Grid.Row="0" Margin="0,0,0,0" Name="lblClearText">Unverschlüsselt</Label>
     114                <Label Grid.Row="0" Margin="0,0,0,0" Name="lblClearText">
     115                    <x:Static Member="lang:SigGenKuehnCtrl.decrypted"></x:Static></Label>
    104116                <Label Grid.Row="0" Margin="150,0,0,0" Name="lblSignatureLength"></Label>
    105117                <RichTextBox Grid.Row="1" Name="rtbResult" MinHeight="80" IsReadOnly="True" Margin="5,5,5,5" MaxWidth="450" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" TextChanged="rtbResult_TextChanged"></RichTextBox>
    106                 <Label Grid.Row="2" Margin="0,0,0,0" Name="lblCipherText">Verschlüsselt</Label>
     118                <Label Grid.Row="2" Margin="0,0,0,0" Name="lblCipherText">
     119                    <x:Static Member="lang:SigGenKuehnCtrl.encrypted"></x:Static></Label>
    107120                <Label Grid.Row="2" Margin="150,0,0,0" Name="lblEncryptedSignatureLength"></Label>
    108121                <TextBox Grid.Row="3" Name="tbResultEncrypted" TextWrapping="Wrap" MinHeight="80" IsReadOnly="True" Margin="5,5,5,5" MaxWidth="450" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" TextChanged="tbResultEncrypted_TextChanged"></TextBox>
Note: See TracChangeset for help on using the changeset viewer.