亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? des.h

?? The C++ code for data encryption system of NIST.
?? H
字號:
#ifndef AUTH_DES_H#define AUTH_DES_H/* ========================================================================== ** * *                                    DES.h * * Copyright: *  Copyright (C) 2003, 2004 by Christopher R. Hertel * * Email: crh@ubiqx.mn.org * * $Id: DES.h,v 0.5 2004/05/30 02:31:47 crh Exp $ * * -------------------------------------------------------------------------- ** * * Description: * *  Implements DES encryption, but not decryption. *  DES is used to create LM password hashes and both LM and NTLM Responses. * * -------------------------------------------------------------------------- ** * * License: * *  This library is free software; you can redistribute it and/or *  modify it under the terms of the GNU Lesser General Public *  License as published by the Free Software Foundation; either *  version 2.1 of the License, or (at your option) any later version. * *  This library 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 *  Lesser General Public License for more details. * *  You should have received a copy of the GNU Lesser General Public *  License along with this library; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * * -------------------------------------------------------------------------- ** * * Notes: * *  This implementation was created by studying many existing examples *  found in Open Source, in the public domain, and in various documentation. *  The SMB protocol makes minimal use of the DES function, so this is a *  minimal implementation.  That which is not required has been removed. * *  The SMB protocol uses the DES algorithm as a hash function, not an *  encryption function.  The auth_DEShash() implemented here is a one-way *  function.  The reverse is not implemented in this module.  Also, there *  is no attempt at making this either fast or efficient.  There is no *  need, as the auth)DEShash() function is used for generating the LM *  Response from a 7-byte key and an 8-byte challenge.  It is not intended *  for use in encrypting large blocks of data or data streams. * *  As stated above, this implementation is based on studying existing work *  in the public domain or under Open Source (specifically LGPL) license. *  The code, however, is written from scratch.  Obviously, I make no claim *  with regard to those earlier works (except to claim that I am grateful *  to the previous implementors whose work I studied).  See the list of *  references below for resources I used. * *  References: *    I read through the libmcrypt code to see how they put the pieces *    together.  See: http://mcrypt.hellug.gr/ *    Libmcrypt is available under the terms of the LGPL. * *    The libmcrypt implementation includes the following credits: *      written 12 Dec 1986 by Phil Karn, KA9Q; large sections adapted *      from the 1977 public-domain program by Jim Gillogly *      Modified for additional speed - 6 December 1988 Phil Karn *      Modified for parameterized key schedules - Jan 1991 Phil Karn *      modified in order to use the libmcrypt API by Nikos Mavroyanopoulos *      All modifications are placed under the license of libmcrypt. * *    See also Phil Karn's privacy and security page: *      http://www.ka9q.net/privacy.html * *    I relied heavily upon: *      Applied Cryptography, Second Edition: *        Protocols, Algorithms, and Source Code in C *      by Bruce Schneier. ISBN 0-471-11709-9, John Wiley & Sons, Inc., 1996 *    Particularly Chapter 12. * *    Here's one more DES resource, which I found quite helpful (aside from *    the Clinton jokes): *      http://www.aci.net/kalliste/des.htm * *    Finally, the use of DES in SMB is covered in: *      Implementing CIFS - the Common Internet File System *      by your truly.  ISBN 0-13-047116-X, Prentice Hall PTR., August 2003 *    Section 15.3, in particular. *    (Online at: http://ubiqx.org/cifs/SMB.html#SMB.8.3) * * ========================================================================== ** */#include "auth_common.h"/* -------------------------------------------------------------------------- ** * Functions: */uchar *auth_DESkey8to7( uchar *dst, const uchar *key );  /* ------------------------------------------------------------------------ **   * Compress an 8-byte DES key to its 7-byte form.   *   *  Input:  dst - Pointer to a memory location (minimum 7 bytes) to accept   *                the compressed key.   *          key - Pointer to an 8-byte DES key.  See the notes below.   *   *  Output: A pointer to the compressed key (same as <dst>) or NULL if   *          either <src> or <dst> were NULL.   *   *  Notes:  There are no checks done to ensure that <dst> and <key> point   *          to sufficient space.  Please be carefull.   *   *          The two pointers, <dst> and <key> may point to the same   *          memory location.  Internally, a temporary buffer is used and   *          the results are copied back to <dst>.   *   *          The DES algorithm uses 8 byte keys by definition.  The first   *          step in the algorithm, however, involves removing every eigth   *          bit to produce a 56-bit key (seven bytes).  SMB authentication   *          skips this step and uses 7-byte keys.  The <auth_DEShash()>   *          algorithm in this module expects 7-byte keys.  This function   *          is used to convert an 8-byte DES key into a 7-byte SMB DES key.   *   * ------------------------------------------------------------------------ **   */uchar *auth_DEShash( uchar *dst, const uchar *key, const uchar *src );  /* ------------------------------------------------------------------------ **   * DES encryption of the input data using the input key.   *   *  Input:  dst - Destination buffer.  It *must* be at least eight bytes   *                in length, to receive the encrypted result.   *          key - Encryption key.  Exactly seven bytes will be used.   *                If your key is shorter, ensure that you pad it to seven   *                bytes.   *          src - Source data to be encrypted.  Exactly eight bytes will   *                be used.  If your source data is shorter, ensure that   *                you pad it to eight bytes.   *   *  Output: A pointer to the encrpyted data (same as <dst>).   *   *  Notes:  In SMB, the DES function is used as a hashing function rather   *          than an encryption/decryption tool.  When used for generating   *          the LM hash the <src> input is the known value "KGS!@#$%" and   *          the key is derived from the password entered by the user.   *          When used to generate the LM or NTLM response, the <key> is   *          derived from the LM or NTLM hash, and the challenge is used   *          as the <src> input.   *          See: http://ubiqx.org/cifs/SMB.html#SMB.8.3   *   *        - This function is called "DEShash" rather than just "DES"   *          because it is only used for creating LM hashes and the   *          LM/NTLM responses.  For all practical purposes, however, it   *          is a full DES encryption implementation.   *   *        - This DES implementation does not need to be fast, nor is a   *          DES decryption function needed.  The goal is to keep the   *          code small, simple, and well documented.   *   *        - The input values are copied and refiddled within the module   *          and the result is not written to <dst> until the very last   *          step, so it's okay if <dst> points to the same memory as   *          <key> or <src>.   *   * ------------------------------------------------------------------------ **   *//* ========================================================================== */#endif /* AUTH_DES_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲情趣在线观看| 午夜天堂影视香蕉久久| 久久99热国产| 欧美电视剧在线看免费| 免费亚洲电影在线| 精品日韩99亚洲| 国产精品一二三四| 国产精品看片你懂得| 99精品欧美一区二区蜜桃免费| 国产精品久久久久9999吃药| av电影在线不卡| 亚洲国产美女搞黄色| 91超碰这里只有精品国产| 麻豆一区二区三区| 日本一二三不卡| 在线一区二区三区四区| 亚洲一区免费在线观看| 欧美一卡2卡三卡4卡5免费| 另类小说综合欧美亚洲| 国产精品久久久久久亚洲毛片 | 精品一区二区精品| 欧美激情一区在线观看| 一本色道**综合亚洲精品蜜桃冫| 一区二区三区四区在线免费观看| 欧美日韩亚洲高清一区二区| 久久不见久久见免费视频1| 国产午夜亚洲精品不卡| 欧美性受极品xxxx喷水| 九色综合狠狠综合久久| 亚洲欧美国产三级| 欧美第一区第二区| 99国产精品久久久久久久久久| 亚洲国产欧美日韩另类综合| 国产精品久久久久三级| 欧美日韩大陆在线| 福利一区福利二区| 亚洲超丰满肉感bbw| 国产人久久人人人人爽| 欧美性一二三区| 国产suv精品一区二区883| 午夜视频在线观看一区二区| 国产亚洲欧洲一区高清在线观看| 欧美专区日韩专区| 懂色av噜噜一区二区三区av| 亚洲成人黄色影院| 亚洲激情网站免费观看| 国产日韩亚洲欧美综合| 欧美一区二区在线免费观看| 在线免费观看日本欧美| 成人性生交大片免费看在线播放| 舔着乳尖日韩一区| 亚洲主播在线观看| 国产精品久久久久久亚洲伦| 精品对白一区国产伦| 欧美日韩和欧美的一区二区| 99国产精品久| 成人美女在线观看| 国产999精品久久久久久| 日韩成人av影视| 亚洲一级不卡视频| 日韩一区中文字幕| 亚洲欧洲精品一区二区精品久久久| 欧美精品一区二区在线观看| 91精品国产手机| 欧美精品电影在线播放| 欧美色图在线观看| 色88888久久久久久影院野外| 91网站最新网址| 91视视频在线直接观看在线看网页在线看 | 一本色道a无线码一区v| 99久久er热在这里只有精品15| 粉嫩aⅴ一区二区三区四区| 国产精一区二区三区| 国产一区二区三区观看| 蜜桃久久久久久| 成人免费在线视频观看| 一区在线播放视频| 国产精品国产自产拍高清av王其| 国产欧美日韩精品一区| 欧美精品一区二区久久婷婷| 日韩精品一区二区三区中文不卡| 成人免费毛片嘿嘿连载视频| 成人免费视频免费观看| 99精品视频在线观看| 国产在线视频精品一区| 天天综合天天综合色| 日韩国产欧美在线视频| 日本vs亚洲vs韩国一区三区二区| 日韩av成人高清| 韩国三级中文字幕hd久久精品| 国产成人精品在线看| 91网页版在线| 欧美剧在线免费观看网站| 日韩欧美色综合| 国产女主播一区| 一区二区三区免费看视频| 日韩国产欧美在线观看| 狠狠色综合日日| 91原创在线视频| 欧美一区二区三区成人| 国产亚洲美州欧州综合国| 国产精品久久久久7777按摩| 亚洲一区二区三区小说| 久久精品免费观看| 成人一区在线观看| 欧美军同video69gay| 国产调教视频一区| 亚洲国产精品尤物yw在线观看| 韩国v欧美v亚洲v日本v| 91国产丝袜在线播放| 久久综合色鬼综合色| 亚洲精品高清在线观看| 极品尤物av久久免费看| 一本到不卡精品视频在线观看| 欧美一区国产二区| 亚洲日本成人在线观看| 另类小说欧美激情| 欧美制服丝袜第一页| 久久夜色精品一区| 午夜亚洲国产au精品一区二区| 国产**成人网毛片九色| 欧美一级在线视频| 亚洲精品国产第一综合99久久| 激情六月婷婷久久| 欧美一二区视频| 亚洲综合区在线| 成人ar影院免费观看视频| 欧美va亚洲va在线观看蝴蝶网| 一级日本不卡的影视| 懂色av噜噜一区二区三区av| 精品欧美乱码久久久久久1区2区| 亚洲高清一区二区三区| 色综合久久综合网欧美综合网| 久久久影视传媒| 精品无码三级在线观看视频| 欧美二区三区的天堂| 一区二区欧美精品| 色综合久久久网| 日韩一区在线看| 色综合久久综合中文综合网| 国产精品福利一区二区三区| 丰满白嫩尤物一区二区| 久久久久久久久久久久电影| 蜜臀av性久久久久av蜜臀妖精| 制服视频三区第一页精品| 亚洲一区二区视频| 欧美日韩国产高清一区二区三区 | 国产精品二区一区二区aⅴ污介绍| 国产一区二三区好的| 精品久久国产老人久久综合| 日本在线不卡视频| 欧美成人aa大片| 精品在线亚洲视频| 国产人成一区二区三区影院| 高清shemale亚洲人妖| 国产女主播在线一区二区| 成人涩涩免费视频| 亚洲免费观看在线观看| 欧美在线视频你懂得| 三级影片在线观看欧美日韩一区二区 | 久久一二三国产| 丰满白嫩尤物一区二区| 亚洲日本va午夜在线电影| 欧美午夜一区二区三区| 青青草精品视频| 成人福利视频在线看| 91精品国产一区二区| 亚洲午夜在线视频| 欧美日本在线观看| 日本不卡视频一二三区| 日韩一区二区三区精品视频| 亚洲免费av高清| 欧美综合色免费| 亚洲第一福利视频在线| 国产欧美综合在线观看第十页| 丝袜脚交一区二区| 午夜亚洲国产au精品一区二区| 亚洲欧美综合另类在线卡通| 国产精品亚洲第一| 久久理论电影网| www.成人网.com| 亚洲免费观看高清完整| 成人免费黄色大片| 国产精品免费久久| 欧美剧在线免费观看网站| 黄色精品一二区| 国产精品九色蝌蚪自拍| 欧美羞羞免费网站| 国产最新精品精品你懂的| 亚洲女子a中天字幕| 在线精品视频一区二区三四 | 欧美一区二区三区四区五区| 国产一级精品在线| 亚洲午夜私人影院| 国产日韩欧美在线一区| 欧美中文字幕一区| 国产mv日韩mv欧美| 韩国三级电影一区二区| 一区二区三区四区乱视频| 日韩欧美成人一区二区|