modules/tests/test_botan_ecc.cpp
raw| 1 | #include <botan/ec_group.h> |
| 2 | #include <botan/oids.h> |
| 3 | int main() |
| 4 | { |
| 5 | try { |
| 6 | const std::string name("secp256r1"); |
| 7 | const Botan::OID oid(Botan::OIDS::lookup(name)); |
| 8 | const Botan::EC_Group ecg(oid); |
| 9 | const std::vector<Botan::byte> der = |
| 10 | ecg.DER_encode(Botan::EC_DOMPAR_ENC_OID); |
| 11 | } catch(...) { |
| 12 | return 1; |
| 13 | } |
| 14 | return 0; |
| 15 | } |