randombit/botan — pull request #3 by fxdupont (2013-10-29 21:18:02+00:00)
Title: fix OID DER_encoding in EC groups (HEAD/1_11)

Already signalled but still without a committed fix…

This code raises an exception:

#include
#include

int main() {
const std::string name("secp256r1");
const Botan::OID oid(Botan::OIDS::lookup(name));
const Botan::EC_Group ecg(oid);

std::vector der =
ecg.DER_encode(Botan::EC_DOMPAR_ENC_OID);
}