| Current File : //usr/lib/llib-lcrypt |
/*
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
*/
/* LINTLIBRARY */
/* PROTOLIB1 */
#include <sys/types.h>
#include <des/softdes.h>
#include <des/desdata.h>
#include <sys/des.h>
/*
* usr/src/lib/libcrypt
*/
/* crypt.c */
void setkey(const char *key);
void encrypt(char *block, int edflag);
char *crypt(const char *pw, const char *salt);
/* des.c */
int cbc_crypt(char *key, char *buf, size_t len, unsigned int mode, char *ivec);
int ecb_crypt(char *key, char *buf, size_t len, unsigned int mode);
/* des_crypt.c */
void _des_setkey(const char *key);
void des_setkey(const char *key);
void _des_encrypt(char *block, int edflag);
void des_encrypt(char *block, int edflag);
char *des_crypt(const char *pw, const char *salt);
/* des_decrypt.c */
void _des_decrypt1(char *block, char *L, char *IP, char *R, char *preS,
char *E, char KS[][48], char S[][64], char *f,
char *tempL, char *P, char *FP);
/* des_encrypt.c */
void des_encrypt1(char *block, char *L, char *IP, char *R, char *preS,
char *E, char KS[][48], char S[][64], char *f,
char *tempL, char *P, char *FP);
void _des_encrypt1(char *block, char *L, char *IP, char *R, char *preS,
char *E, char KS[][48], char S[][64], char *f,
char *tempL, char *P, char *FP);
/* des_soft.c */
void des_setparity(char *p);
int __des_crypt(char *buf, unsigned len, struct desparams *desp);