new import/export DER/PEM
Karel Miko
10 years ago
2 | 2 |
TODO:
|
3 | 3 |
- ECC: export/import keys with curve params
|
4 | 4 |
- more investigation crash/memleak/or_what_it_is related to rsa_free/dsa_free
|
5 | |
- RSA->check_key (basic check + extented primality test)
|
|
5 |
- RSA->verify_key (basic check + extented primality test)
|
6 | 6 |
- croak with the "real caller" (Crypt::Mac::*, Crypt::Mode::*, ...)
|
7 | 7 |
- croak when mode does not call start_(en|de)crypt
|
8 | 8 |
- "libtom-src/bn_mp_invmod.c", line 37: warning: statement not reached
|
|
12 | 12 |
- t/pk_dsa.t crashes after: ok 28 - decrypt
|
13 | 13 |
- better primality testing: http://questhub.io/realm/perl/quest/519032ee1088c76505000035
|
14 | 14 |
- libtomcrypt patch: https://secure.ucc.asn.au/hg/dropbear/rev/9a789fc03f40?revcount=240 (free rsa key)
|
|
15 |
- DSA: generate_key($p, $q, $g), generate_key(\$dsa_params_der), generate_key($dsa_params_file)
|
|
16 |
DSA-Params ::= SEQUENCE {
|
|
17 |
p INTEGER,
|
|
18 |
q INTEGER,
|
|
19 |
g INTEGER
|
|
20 |
}
|
|
21 |
- DH: generate_key($p, $q), generate_key(\$dh_params_der), generate_key($dh_params_file)
|
|
22 |
- DH: key2hash should dump p, q
|
15 | 23 |
|
16 | 24 |
0.019 2013/10/20
|
17 | 25 |
- fixed broken CAMELLIA implementation
|
45 | 45 |
|
46 | 46 |
data = (unsigned char *)SvPVbyte(key_data, data_len);
|
47 | 47 |
_ecc_free_key(&self->key, &self->dp);
|
48 | |
rv = ecc_import_full(data, (unsigned long)data_len, &self->key);
|
|
48 |
rv = ecc_import_full(data, (unsigned long)data_len, &self->key, &self->dp);
|
49 | 49 |
if (rv != CRYPT_OK) croak("FATAL: ecc_import_full failed: %s", error_to_string(rv));
|
50 | 50 |
XPUSHs(ST(0)); /* return self */
|
51 | 51 |
}
|