Codebase list libcryptx-perl / bbe1990
new import/export DER/PEM Karel Miko 10 years ago
2 changed file(s) with 10 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
22 TODO:
33 - ECC: export/import keys with curve params
44 - 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)
66 - croak with the "real caller" (Crypt::Mac::*, Crypt::Mode::*, ...)
77 - croak when mode does not call start_(en|de)crypt
88 - "libtom-src/bn_mp_invmod.c", line 37: warning: statement not reached
1212 - t/pk_dsa.t crashes after: ok 28 - decrypt
1313 - better primality testing: http://questhub.io/realm/perl/quest/519032ee1088c76505000035
1414 - 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
1523
1624 0.019 2013/10/20
1725 - fixed broken CAMELLIA implementation
4545
4646 data = (unsigned char *)SvPVbyte(key_data, data_len);
4747 _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);
4949 if (rv != CRYPT_OK) croak("FATAL: ecc_import_full failed: %s", error_to_string(rv));
5050 XPUSHs(ST(0)); /* return self */
5151 }