File: fcrypt.h

package info (click to toggle)
libcrypt-unixcrypt-xs-perl 0.11-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 344 kB
  • sloc: ansic: 652; perl: 15; makefile: 3
file content (58 lines) | stat: -rw-r--r-- 823 bytes parent folder | download | duplicates (4)
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
#include <stddef.h>
#include <string.h>
typedef unsigned char des_cblock[8];

void
des_fcrypt(
	const char *password,
	size_t passwordlen,
	const char *salt,
	size_t saltlen,
	char *outbuf);

void
crypt_rounds(
	des_cblock key,
	unsigned long nrounds,
	unsigned long saltnum,
	des_cblock block);

void
trad_password_to_key(
	des_cblock key,
	const char *password,
	size_t passwordlen);

void
ext_password_to_key(
	des_cblock key,
	const char *password,
	size_t passwordlen);

void
base64_to_block(
	des_cblock block,
	const char *base64);

void
block_to_base64(
	des_cblock block,
	char *base64);

void
int24_to_base64(
	unsigned long val,
	char *base64);

unsigned long
base64_to_int24(
	const char *base64);

void
int12_to_base64(
	unsigned long val,
	char *base64);

unsigned long
base64_to_int12(
	const char *base64);