~ubuntu-branches/debian/sid/botan/sid

« back to all changes in this revision

Viewing changes to src/fuzzer/ecc_bp256.cpp

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2018-03-01 22:23:25 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20180301222325-7p7vc45gu3hta34d
Tags: 2.4.0-2
* Don't remove .doctrees from the manual if it doesn't exist.
* Don't specify parallel to debhelper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
* (C) 2015,2016 Jack Lloyd
 
3
*
 
4
* Botan is released under the Simplified BSD License (see license.txt)
 
5
*/
 
6
#include "fuzzers.h"
 
7
#include "ecc_helper.h"
 
8
 
 
9
void fuzz(const uint8_t in[], size_t len)
 
10
   {
 
11
   if(len > 2*256/8)
 
12
      return;
 
13
 
 
14
   static Botan::EC_Group bp256("brainpool256r1");
 
15
   return check_ecc_math(bp256, in, len);
 
16
   }