summaryrefslogtreecommitdiff
path: root/scripts/sapphire.cpp
blob: 7010bc75aa7964d84523a56a05552ae7f4a500af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/******************************************************************************
 *
 * Placeholder for the REAL SAPPHIRE II Stream Cipher Files
 *
 * The SAPPHIRE II package may be obtained from within the United States or
 * Canada from:
 *
 *   http://cryptography.org/cgi-bin/crypto.cgi/libraries/sapphire.zip
 *
 *
 * These files must be placed accordingly:
 *
 *   .../sword/include/sapphire.h
 *   .../sword/src/modules/common/sapphire.cpp
 *
 * If you are outside of these countries, you will have to obtain this package
 * elsewhere.
 *
 */


unsigned char sapphire::keyrand(int limit,
                                unsigned char *user_key,
                                unsigned char keysize,
                                unsigned char *rsum,
                                unsigned *keypos)
    {
    return keysize;
    }

void sapphire::initialize(unsigned char *key, unsigned char keysize)
    {
    }

void sapphire::hash_init(void)
    {
    }

sapphire::sapphire(unsigned char *key, unsigned char keysize)
    {
    }

void sapphire::burn(void)
    {
    }

sapphire::~sapphire()
    {
    }

unsigned char sapphire::encrypt(unsigned char b)
    {
    return b;
    }

unsigned char sapphire::decrypt(unsigned char b)
    {
    return b;
    }

void sapphire::hash_final(unsigned char *hash,      // Destination
                          unsigned char hashlength) // Size of hash.
    {
    }