⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crypto.h

📁 Intercom 是一个 Unix系统上灵活的语音传输软件。支持标准音频压缩比如GSM, G.711, and G.72x和其他音频编码。Intercom专为高速网络设计来传输高品质的语音
💻 H
字号:
/*  crypto.h -- Crypto interface for Intercom    Copyright (C) 2001-2003  Shane Wegner    This file is part of Intercom.    Intercom is free software; you can redistribute it and/or modify it    under the terms of version 2 of the GNU General Public License as    published by the Free Software Foundation.    Intercom 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.    You should have received a copy of version 2 of the GNU General Public    License along with Intercom; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA    To contact the author, please send email to shane@cm.nu.    *//* $Id: crypto.h,v 1.5 2003/02/13 20:22:49 shane Exp $ */#ifndef CRYPTO_H#define CRYPTO_H#include <sys/types.h>/* Convert a string into an encryption type suitable for a call packet *//* Returns -1 if no appropriate match was found. */int cr_type_fromstr(const char *s);/* Set a key using a null-terminated passphrase *//* The key will be store in the call structure as appropriate. */void cr_set_key(const char *passphrase);/* The following two functions use the call structure for encryption data and * * encrypts/decrypts respectively.  Arguments are obvious save outl which * * is a pointer to size_t which will be set to the len of the output * *buffer. *//* Note also that the input string size should be a multiple of 8 even * * if inl is not. */void cr_encrypt(const char *in, size_t inl, char *out, size_t *outl);void cr_decrypt(const char *in, size_t inl, char *out, size_t *outl);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -