~ubuntu-branches/ubuntu/precise/gnupg2/precise-proposed

« back to all changes in this revision

Viewing changes to cipher/gost.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2006-01-24 04:31:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060124043142-pbg192or6qxv3yk2
Tags: 1.9.20-1
* New Upstream version. Closes:#306890,#344530
  * Closes:#320490: gpg-protect-tool fails to decrypt PKCS-12 files 
* Depend on libopensc2-dev, not -1-. Closes:#348106

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* gost.c  -  GOST encryption
 
2
 *      Copyright (C) 1998 Free Software Foundation, Inc.
 
3
 *
 
4
 * The description of GOST (and the used S-boxes) are taken from:
 
5
 *   Bruce Schneier: Applied Cryptography. John Wiley & Sons, 1996.
 
6
 *   ISBN 0-471-11709-9. .
 
7
 *
 
8
 * This file is part of GnuPG.
 
9
 *
 
10
 * GnuPG is free software; you can redistribute it and/or modify
 
11
 * it under the terms of the GNU General Public License as published by
 
12
 * the Free Software Foundation; either version 2 of the License, or
 
13
 * (at your option) any later version.
 
14
 *
 
15
 * GnuPG is distributed in the hope that it will be useful,
 
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
 * GNU General Public License for more details.
 
19
 *
 
20
 * You should have received a copy of the GNU General Public License
 
21
 * along with this program; if not, write to the Free Software
 
22
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 
23
 */
 
24
 
 
25
#include <config.h>
 
26
#include <stdio.h>
 
27
#include <stdlib.h>
 
28
#include <string.h>
 
29
#include "util.h"
 
30
#include "types.h"
 
31
#include "gost.h"
 
32
 
 
33
#error don't use this
 
34
 
 
35
 
 
36
void
 
37
gost_setkey( GOST_context *c, byte *key )
 
38
{
 
39
}
 
40
 
 
41
void
 
42
gost_setiv( GOST_context *c, byte *iv )
 
43
{
 
44
}
 
45
 
 
46
 
 
47
void
 
48
gost_encode( GOST_context *c, byte *outbuf, byte *inbuf, unsigned nblocks )
 
49
{
 
50
}
 
51
 
 
52
 
 
53
void
 
54
gost_decode( GOST_context *c, byte *outbuf, byte *inbuf, unsigned nblocks )
 
55
{
 
56
}
 
57
 
 
58
 
 
59
static void
 
60
cfbshift( byte *iv, byte *buf, unsigned count)
 
61
{
 
62
}
 
63
 
 
64
 
 
65
 
 
66
void
 
67
gost_encode_cfb( GOST_context *c, byte *outbuf, byte *inbuf, unsigned nbytes)
 
68
{
 
69
}
 
70
 
 
71
 
 
72
void
 
73
gost_decode_cfb( GOST_context *c, byte *outbuf, byte *inbuf, unsigned nbytes)
 
74
{
 
75
}
 
76