monotone

monotone Mtn Source Tree

Root/sha1_engine.hh

1#ifndef __SHA1_ENGINE_HH__
2#define __SHA1_ENGINE_HH__
3
4// Copyright (C) 2006 Nathaniel Smith <njs@pobox.com>
5//
6// This program is made available under the GNU GPL version 2.0 or
7// greater. See the accompanying file COPYING for details.
8//
9// This program is distributed WITHOUT ANY WARRANTY; without even the
10// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11// PURPOSE.
12
13// This file defines the interface needed to implement a new SHA-1 engine,
14// which we will hook into Botan.
15
16#include <botan/base.h>
17
18typedef Botan::HashFunction * sha1_maker();
19
20// Declare one of these objects as a private global in your extension module.
21// Note that all priorities must be distinct. Higher priority means faster
22// code. Botan's built-in SHA-1 is always priority 0.
23struct sha1_registerer
24{
25 sha1_registerer(int priority, std::string const & name, sha1_maker * maker);
26};
27
28#endif // header guard
29
30
31// Local Variables:
32// mode: C++
33// fill-column: 76
34// c-file-style: "gnu"
35// indent-tabs-mode: nil
36// End:
37// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:
38

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status