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 <string>
17#include <botan/base.h>
18
19typedef Botan::HashFunction * sha1_maker();
20
21// Declare one of these objects as a private global in your extension module.
22// Note that all priorities must be distinct. Higher priority means faster
23// code. Botan's built-in SHA-1 is always priority 0.
24struct sha1_registerer
25{
26 sha1_registerer(int priority, std::string const & name, sha1_maker * maker);
27};
28
29#endif // header guard
30
31
32// Local Variables:
33// mode: C++
34// fill-column: 76
35// c-file-style: "gnu"
36// indent-tabs-mode: nil
37// End:
38// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:
39

Archive Download this file

Branches

Tags

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