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