RSA/DSA key export nox with PK_PUBLIC|PK_STD
Karel Miko
8 years ago
174 | 174 |
}
|
175 | 175 |
else if (strnEQ(type, "public", 6)) {
|
176 | 176 |
rv = dsa_export(out, &out_len, PK_PUBLIC, &self->key);
|
177 | |
if (rv != CRYPT_OK) croak("FATAL: dsa_export(PK_PUBLIC) failed: %s", error_to_string(rv));
|
|
177 |
if (rv != CRYPT_OK) croak("FATAL: dsa_export(PK_PUBLIC|PK_STD) failed: %s", error_to_string(rv));
|
178 | 178 |
RETVAL = newSVpvn((char*)out, out_len);
|
179 | 179 |
}
|
180 | 180 |
else {
|
218 | 218 |
}
|
219 | 219 |
else if (strnEQ(type, "public", 6)) {
|
220 | 220 |
rv = rsa_export(out, &out_len, PK_PUBLIC, &self->key);
|
221 | |
if (rv != CRYPT_OK) croak("FATAL: rsa_export(PK_PUBLIC) failed: %s", error_to_string(rv));
|
|
221 |
if (rv != CRYPT_OK) croak("FATAL: rsa_export(PK_PUBLIC|PK_STD) failed: %s", error_to_string(rv));
|
222 | 222 |
RETVAL = newSVpvn((char*)out, out_len);
|
223 | 223 |
}
|
224 | 224 |
else {
|