Browse Source

autogenerate decaf/crypto.h

master
Michael Hamburg 9 years ago
parent
commit
ca68bb3689
2 changed files with 16 additions and 21 deletions
  1. +16
    -0
      src/gen_headers/main.py
  2. +0
    -21
      src/public_include/decaf/crypto.h

+ 16
- 0
src/gen_headers/main.py View File

@@ -26,6 +26,22 @@ decaf_root_hxx = gen_file(
code = "\n"+root_hxx_code+"\n"
)

crypto_h_code = "\n".join((
"#include <%s>" % name
for name in sorted(gend_files)
if re.match("^decaf/crypto_\d+.h$",name)
))
crypto_h = gen_file(
name = "decaf/crypto.h",
doc = """@brief
@brief Example Decaf cyrpto routines, metaheader.
@warning These are merely examples, though they ought to be secure. But real
protocols will decide differently on magic numbers, formats, which items to
hash, etc.
""",
code = "\n"+crypto_h_code+"\n"
)

root_h_code = "\n".join((
"#include <%s>" % name
for name in sorted(gend_files)


+ 0
- 21
src/public_include/decaf/crypto.h View File

@@ -1,21 +0,0 @@
/**
* @file decaf/crypto.h
* @copyright
* Copyright (c) 2016 Cryptography Research, Inc. \n
* Released under the MIT License. See LICENSE.txt for license information.
* @author Mike Hamburg
* @brief Example Decaf cyrpto routines, metaheader.
* @warning These are merely examples, though they ought to be secure. But real
* protocols will decide differently on magic numbers, formats, which items to
* hash, etc.
* @todo TODO remove/autogenerate all these headers.
*/

#ifndef __DECAF_CRYPTO_H__
#define __DECAF_CRYPTO_H__ 1

#include <decaf/crypto_255.h>
#include <decaf/crypto_448.h>

#endif /* __DECAF_CRYPTO_H__ */


Loading…
Cancel
Save