source: trunk/CrypPlugins/PKCS1/WpfControls/SigVal/SigValControl.xaml @ 1775

Last change on this file since 1775 was 1775, checked in by schomburg, 11 years ago

corrected some label-texts

File size: 4.9 KB
Line 
1<UserControl x:Class="PKCS1.WpfControls.SigVal.SigValControl"
2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4    HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
5    <ScrollViewer  VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
6        <Grid>
7            <Grid.RowDefinitions>
8                <RowDefinition Height="auto" />
9                <RowDefinition Height="auto" />
10            </Grid.RowDefinitions>
11            <!-- Controls -->
12            <Grid Grid.Row="0">
13                <Grid.RowDefinitions>
14                    <RowDefinition Height="auto" />
15                    <RowDefinition Height="*" />
16                </Grid.RowDefinitions>
17
18                <GroupBox Grid.Row="0" Header="Signatur verifizieren" Margin="0,0,0,0" Name="gbImpl">
19                    <Grid>
20                        <Grid.ColumnDefinitions>
21                            <ColumnDefinition Width="auto" />
22                            <ColumnDefinition Width="30" />
23                            <ColumnDefinition Width="auto" />
24                            <ColumnDefinition Width="*" />
25                        </Grid.ColumnDefinitions>
26                        <Grid Grid.Column="0">
27                            <Grid.RowDefinitions>
28                                <RowDefinition Height="auto" />
29                                <RowDefinition Height="auto" />
30                                <RowDefinition Height="auto" />
31                                <RowDefinition Height="auto" />
32                            </Grid.RowDefinitions>
33                            <Label Grid.Row="0" >Zu testende Signatur:</Label>
34                            <RadioButton Grid.Row="1" Name="rbSigPkcs" Margin="5,5,5,5" Checked="rbSigPkcs_Checked">PKCS#1-Signatur</RadioButton>
35                            <RadioButton Grid.Row="2" Name="rbSigBlei" Margin="5,5,5,5" Checked="rbSigBlei_Checked">Bleichenbacher Signatur</RadioButton>
36                            <RadioButton Grid.Row="3" Name="rbSigKuehn" Margin="5,5,5,5" Checked="rbSigKuehn_Checked">Kuehn Signatur</RadioButton>
37                        </Grid>
38                        <Grid Grid.Column="2">
39                            <Grid.RowDefinitions>
40                                <RowDefinition Height="auto" />
41                                <RowDefinition Height="auto" />
42                                <RowDefinition Height="auto" />
43                            </Grid.RowDefinitions>
44                            <Label Grid.Row="0" >Implementierung:</Label>
45                            <RadioButton Grid.Row="1" Name="rbVal" Margin="5,5,5,5" Checked="rbVal_Checked">Korrekt (PKCS#1 Version 2.1)</RadioButton>
46                            <RadioButton Grid.Row="2" Name="rbValWithFlaw" Margin="5,5,5,5" Checked="rbValWithFlaw_Checked">Fehlerhaft (PKCS#1 Version1.5)</RadioButton>
47                        </Grid>
48                        <Button Grid.Column="3" Name="bValidate" Margin="5,5,5,5" Height="25" MinWidth="100" HorizontalAlignment="Right" VerticalAlignment="Bottom" Click="bValidate_Click">Signatur verifizieren</Button>
49                    </Grid>
50                </GroupBox>
51                <DockPanel Grid.Row="1">
52                    <Label VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5,5,5,5">Ergebnis: </Label>
53                    <Image Name="imgResult" Height="26" Width="24" Source="../../Resources/icons/equal.png" Visibility="Hidden" />
54                    <Label Name="lblResult" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,5,5"> </Label>
55                    <Label Name="lblHashAlgo" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="5,5,5,5"></Label>
56                </DockPanel>
57            </Grid>
58            <!-- Display Signatures -->
59            <GroupBox Grid.Row="1" Header="Signatur" Margin="0,15,0,0">
60            <Grid>
61                <Grid.RowDefinitions>
62                    <RowDefinition Height="auto" />
63                    <RowDefinition Height="auto" />
64                    <RowDefinition Height="auto" />
65                    <RowDefinition Height="auto" />
66                </Grid.RowDefinitions>
67                <Label Grid.Row="0">Verschlüsselte Signatur</Label>
68                <TextBox Grid.Row="1" Name="tbSignatureEnc" TextWrapping="Wrap" MaxWidth="450" MinHeight="80"  IsReadOnly="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,5,5,5" />
69                <Label Grid.Row="2">Unverschlüsselte Signatur</Label>
70                <TextBox Grid.Row="3" Name="tbSignatureDec" TextWrapping="Wrap" MaxWidth="450" MinHeight="80" IsReadOnly="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,5,5,5" />
71            </Grid>
72            </GroupBox>           
73        </Grid>
74    </ScrollViewer>
75</UserControl>
Note: See TracBrowser for help on using the repository browser.