source: trunk/PKCS1/WpfControls/Components/SigGenKuehnControl.xaml @ 1650

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

initial commit of PKCS1 Plugin

File size: 6.1 KB
Line 
1<UserControl x:Class="PKCS1.WpfControls.Components.SigGenKuehnControl"
2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4    VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
5    <Grid>
6        <Grid.RowDefinitions>
7            <RowDefinition Height="auto" />
8            <RowDefinition Height="*" />
9        </Grid.RowDefinitions>
10        <!-- Generate Signature -->
11        <GroupBox Header="Signatur generieren" Name="gbSigGen" Grid.Row="0">
12            <Grid>
13                <Grid.ColumnDefinitions>
14                    <ColumnDefinition Width="auto" />
15                    <ColumnDefinition Width="auto" />
16                    <ColumnDefinition Width="*" />
17                </Grid.ColumnDefinitions>
18                <!-- left -->
19                <Grid Grid.Column="0">
20                    <Grid.RowDefinitions>
21                        <RowDefinition Height="auto" />
22                        <RowDefinition Height="auto" />
23                        <RowDefinition Height="auto" />
24                    </Grid.RowDefinitions>
25                    <Label Grid.Row="0" Name="lblRsaKeySize" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">RSA-Schlüsselgröße (in Bit):</Label>
26                    <!--<ComboBox Grid.Row="1" Name="cbRsaKeySize" Margin="5,5,5,5" HorizontalAlignment="Left" MinWidth="80" SelectionChanged="cbRsaKeySize_SelectionChanged" />-->
27                    <Label Grid.Row="1" Name="lblPublicKey" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">Öffentlicher Schlüssel:</Label>
28                    <!--<Label Grid.Row="2" Name="lblPosDataBlock" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top">Position des Datenblocks:</Label>-->
29                </Grid>
30                <!-- middle -->
31                <Grid Grid.Column="1">
32                    <Grid.RowDefinitions>
33                        <RowDefinition Height="auto" />
34                        <RowDefinition Height="auto" />
35                        <RowDefinition Height="*" />
36                    </Grid.RowDefinitions>
37                    <!--<Label Grid.Row="0" Name="lblPrivateKey" Margin="5,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top">privater Schlüssel</Label>-->
38                    <TextBox Grid.Row="0" Name="tbRsaKeySize" IsReadOnly="True" Margin="5,0,5,5" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="50" MaxWidth="150"></TextBox>
39                    <TextBox Grid.Row="1" Name="tbPublicKey" IsReadOnly="True" Margin="5,5,5,5" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="50" MaxWidth="150"></TextBox>
40                    <!--<TextBox Grid.Row="2" Name="tbPosDataBlock" IsReadOnly="True" Margin="5,5,5,5" HorizontalAlignment="Left" VerticalAlignment="Top" MinWidth="50" MaxWidth="150"></TextBox>-->
41                </Grid>
42                <!-- right -->
43                <Grid Grid.Column="2">
44                    <Grid.RowDefinitions>
45                        <RowDefinition Height="auto" />
46                        <RowDefinition Height="*" />
47                    </Grid.RowDefinitions>
48                    <GroupBox Grid.Row="0" Header="Struktur" Name="gbStruct" Height="40" Width="170" HorizontalAlignment="Right" VerticalAlignment="Top">
49                        <Grid>
50                            <Grid.ColumnDefinitions>
51                                <ColumnDefinition Width="auto" />
52                                <ColumnDefinition Width="auto" />
53                                <ColumnDefinition Width="auto" />
54                                <ColumnDefinition Width="auto" />
55                                <ColumnDefinition Width="auto" />
56                                <ColumnDefinition Width="auto" />
57                            </Grid.ColumnDefinitions>
58                            <Label Grid.Column="0">'00'</Label>
59                            <Label Grid.Column="1">'01'</Label>
60                            <Label Grid.Column="2">PS</Label>
61                            <Label Grid.Column="3">'00'</Label>
62                            <Label Grid.Column="4">HW</Label>
63                            <Label Grid.Column="5">GG</Label>
64                        </Grid>
65                    </GroupBox>
66                    <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>
67                </Grid>
68            </Grid>
69        </GroupBox>
70
71        <!-- Result -->
72        <GroupBox Header="Generierte Signatur" Name="gbSigRes" Grid.Row="1" Margin="0,15,0,0">
73            <Grid>
74                <Grid.RowDefinitions >
75                    <RowDefinition Height="auto" />
76                    <RowDefinition Height="*" />
77                    <RowDefinition Height="auto" />
78                    <RowDefinition Height="*" />
79                </Grid.RowDefinitions>
80                <Label Grid.Row="0" Margin="0,0,0,0" Name="lblClearText">Unverschlüsselt</Label>
81                <Label Grid.Row="0" Margin="150,0,0,0" Name="lblSignatureLength"></Label>
82                <!--<TextBox Grid.Row="1" Name="tbResult" TextWrapping="Wrap" MaxWidth="400" MinHeight="80" IsReadOnly="True" Margin="5,5,5,5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextChanged="tbResult_TextChanged"></TextBox>-->
83                <RichTextBox Grid.Row="1" Name="rtbResult" MaxWidth="400" MinHeight="80" IsReadOnly="True" Margin="5,5,5,5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextChanged="rtbResult_TextChanged"></RichTextBox>
84                <Label Grid.Row="2" Margin="0,0,0,0" Name="lblCipherText">Verschlüsselt</Label>
85                <Label Grid.Row="2" Margin="150,0,0,0" Name="lblEncryptedSignatureLength"></Label>
86                <TextBox Grid.Row="3" Name="tbResultEncrypted" TextWrapping="Wrap" MaxWidth="400" MinHeight="80" IsReadOnly="True" Margin="5,5,5,5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextChanged="tbResultEncrypted_TextChanged"></TextBox>
87            </Grid>
88        </GroupBox>
89    </Grid>
90</UserControl>
Note: See TracBrowser for help on using the repository browser.