This repository was archived by the owner on Dec 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +30
-30
lines changed Expand file tree Collapse file tree 3 files changed +30
-30
lines changed Original file line number Diff line number Diff line change @@ -1576,11 +1576,11 @@ public class bn_gencb_st
1576
1576
[ DllImport ( DLLNAME , CallingConvention = CallingConvention . Cdecl ) ]
1577
1577
public extern static IntPtr EVP_PKEY_get1_RSA ( IntPtr pkey ) ;
1578
1578
1579
- [ DllImport ( DLLNAME , CallingConvention = CallingConvention . Cdecl ) ]
1580
- public extern static int EVP_PKEY_set1_EC_KEY ( IntPtr pkey , IntPtr key ) ;
1579
+ [ DllImport ( DLLNAME , CallingConvention = CallingConvention . Cdecl ) ]
1580
+ public extern static int EVP_PKEY_set1_EC_KEY ( IntPtr pkey , IntPtr key ) ;
1581
1581
1582
- [ DllImport ( DLLNAME , CallingConvention = CallingConvention . Cdecl ) ]
1583
- public extern static IntPtr EVP_PKEY_get1_EC ( IntPtr pkey ) ;
1582
+ [ DllImport ( DLLNAME , CallingConvention = CallingConvention . Cdecl ) ]
1583
+ public extern static IntPtr EVP_PKEY_get1_EC ( IntPtr pkey ) ;
1584
1584
1585
1585
[ DllImport ( DLLNAME , CallingConvention = CallingConvention . Cdecl ) ]
1586
1586
public extern static int EVP_PKEY_set1_DH ( IntPtr pkey , IntPtr key ) ;
Original file line number Diff line number Diff line change @@ -197,15 +197,15 @@ public CryptoKey(RSA rsa)
197
197
Native . ExpectSuccess ( Native . EVP_PKEY_set1_RSA ( ptr , rsa . Handle ) ) ;
198
198
}
199
199
200
- /// <summary>
201
- /// Calls EVP_PKEY_set1_EC()
202
- /// </summary>
203
- /// <param name="ec"></param>
204
- public CryptoKey ( EC . Key ec )
205
- : this ( )
206
- {
207
- Native . ExpectSuccess ( Native . EVP_PKEY_set1_EC_KEY ( ptr , ec . Handle ) ) ;
208
- }
200
+ /// <summary>
201
+ /// Calls EVP_PKEY_set1_EC()
202
+ /// </summary>
203
+ /// <param name="ec"></param>
204
+ public CryptoKey ( EC . Key ec )
205
+ : this ( )
206
+ {
207
+ Native . ExpectSuccess ( Native . EVP_PKEY_set1_EC_KEY ( ptr , ec . Handle ) ) ;
208
+ }
209
209
210
210
/// <summary>
211
211
/// Calls EVP_PKEY_set1_DH()
Original file line number Diff line number Diff line change @@ -134,23 +134,23 @@ public void CanCreateFromRSA()
134
134
}
135
135
}
136
136
137
- [ Test ]
138
- public void CanCreateFromEC ( )
139
- {
140
- using ( Key ec = new Key ( ) )
141
- {
142
- using ( Group group = Group . FromCurveName ( Objects . NID . X9_62_prime256v1 ) )
143
- {
144
- ec . Group = group ;
145
- }
146
- ec . GenerateKey ( ) ;
147
- using ( CryptoKey key = new CryptoKey ( ec ) )
148
- {
149
- Assert . AreEqual ( CryptoKey . KeyType . EC , key . Type ) ;
150
- Assert . AreEqual ( ec . Size , key . Size ) ;
151
- }
152
- }
153
- }
137
+ [ Test ]
138
+ public void CanCreateFromEC ( )
139
+ {
140
+ using ( Key ec = new Key ( ) )
141
+ {
142
+ using ( Group group = Group . FromCurveName ( Objects . NID . X9_62_prime256v1 ) )
143
+ {
144
+ ec . Group = group ;
145
+ }
146
+ ec . GenerateKey ( ) ;
147
+ using ( CryptoKey key = new CryptoKey ( ec ) )
148
+ {
149
+ Assert . AreEqual ( CryptoKey . KeyType . EC , key . Type ) ;
150
+ Assert . AreEqual ( ec . Size , key . Size ) ;
151
+ }
152
+ }
153
+ }
154
154
155
155
[ Test ]
156
156
public void CanCreateFromDH ( )
You can’t perform that action at this time.
0 commit comments