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

📄 udsha.h

📁 WinCE5.0部分核心源码
💻 H
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// This source code is licensed under Microsoft Shared Source License
// Version 1.0 for Windows CE.
// For a copy of the license visit http://go.microsoft.com/fwlink/?LinkId=3223.
//
#pragma once

#ifndef __UDSHA_H__
#define __UDSHA_H__

//------------------------------------------------------------------------------
//
//  Microsoft Unified DRM
//
//  Microsoft Confidential
//  Copyright, 1999 Microsoft Corporation.  All Rights Reserved.
//
//  file:   udsha.h
//
//  Contents: Black Box for Purpose Built device
//
//  Revision History:
//      10/10/99  jmanfer - created 
// -@- 11/08/00 (mikemarr)  - moved magic #define constants to source file
//                          - renamed class from Sha to UDSha1
//                          - member data and Transform changed to private
//
//------------------------------------------------------------------------------

class CUDSha1{
public:
    enum {DIGESTSIZE= 20, BLOCKSIZE= 64};
    bool Init();
    bool Update(BYTE*, int);
    bool Final(BYTE[DIGESTSIZE]);

private:
    bool Transform(BYTE*);

private:
    unsigned m_rgDigest[DIGESTSIZE / sizeof(DWORD)]; // ABCDE
    unsigned m_uCount[2];                           // bit Length
    int      m_iBufLen;
    BYTE     m_rgBuffer[BLOCKSIZE];
};

#endif // #ifndef __UDSHA_H__

⌨️ 快捷键说明

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