29 lines
1.0 KiB
C
29 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* This file is part of mars_nwe.
|
|
*
|
|
* Copyright (C) 1993-2000 Martin Stover, Marburg, Germany
|
|
* Copyright (C) 2026 Mario Fetka
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; version 2 only.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
/* nwcrypt.h 22-Jun-96 */
|
|
extern void shuffle(unsigned char *lon,
|
|
const unsigned char *buf, int buflen,
|
|
unsigned char *target);
|
|
|
|
extern void nw_encrypt(unsigned char *fra,
|
|
unsigned char *buf,unsigned char *til);
|
|
|
|
|
|
extern void nw_decrypt_newpass(char *oldpwd, char *newpwd, char *undecr);
|
|
extern void newpassencrypt(char *old, char *new, char *out);
|
|
|