const tuning
Karel Miko
6 years ago
31 | 31 | PKA_EC, |
32 | 32 | EC_PRIME_FIELD |
33 | 33 | }; |
34 | #endif /* LTC_SOURCE */ | |
34 | 35 | |
35 | 36 | typedef struct Oid { |
36 | 37 | unsigned long OID[16]; |
39 | 40 | } oid_st; |
40 | 41 | |
41 | 42 | int pk_get_oid(int pk, oid_st *st); |
42 | #endif /* LTC_SOURCE */ | |
43 | 43 | |
44 | 44 | /* ---- RSA ---- */ |
45 | 45 | #ifdef LTC_MRSA |
257 | 257 | int size; |
258 | 258 | |
259 | 259 | /** name of curve */ |
260 | const char *name; | |
260 | char *name; | |
261 | 261 | |
262 | 262 | /** The prime that defines the field the curve is in (encoded in hex) */ |
263 | const char *prime; | |
263 | char *prime; | |
264 | 264 | |
265 | 265 | /** The fields A param (hex) */ |
266 | const char *A; | |
266 | char *A; | |
267 | 267 | |
268 | 268 | /** The fields B param (hex) */ |
269 | const char *B; | |
269 | char *B; | |
270 | 270 | |
271 | 271 | /** The order of the curve (hex) */ |
272 | const char *order; | |
272 | char *order; | |
273 | 273 | |
274 | 274 | /** The x co-ordinate of the base point on the curve (hex) */ |
275 | const char *Gx; | |
275 | char *Gx; | |
276 | 276 | |
277 | 277 | /** The y co-ordinate of the base point on the curve (hex) */ |
278 | const char *Gy; | |
278 | char *Gy; | |
279 | 279 | |
280 | 280 | /** The co-factor */ |
281 | 281 | unsigned long cofactor; |