资源简介
TI官方C语言SHA_256源码及应用例程,亲测可用,推荐下载~
代码片段和文件信息
/* --COPYRIGHT--BSD
* Copyright (c) 2012 Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
* AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL
* EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY
* WHETHER IN CONTRACT STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* --/COPYRIGHT--*/
//***************************************************************************************
// MSP430 blink the LED Demo - Software Toggle P1.0
//
// Description; Toggle P1.0 by xor‘ing P1.0 inside of a software loop.
// ACLK = n/a MCLK = SMCLK = default DCO
//
// MSP430x5xx
// -----------------
// /|\| XIN|-
// | | |
// --|RST XOUT|-
// | |
// | P1.0|-->LED
//
// J. Stevenson
// Texas Instruments Inc
// July 2011
// Built with Code Composer Studio v5
//***************************************************************************************
//#include
//#include
#include “TI_SHA_256.h“
//#define ROTR(xn) (( x >> n ) | ( x << (32 - n )))
//volatile uint32_t q =0;
//volatile uint32_t x = 0x12345678;
//volatile unsigned int n = 4;
uint32_t M[32];
//char *String = “abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq“;
volatile uint64_t L = 0x00000000000001A0;
//unsigned int Q =0;
uint32_t Ha[8];
uint32_t *H_Array;
int main(void)
{
//WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
//P1DIR |= 0x01; // Set P1.0 to output direction
while (1)
{
/*
M[0]=0x61626364;
M[1]=0x62636465;
M[2]=0x63646566;
M[
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4979 2012-10-26 16:02 SHA_256_102612\main.c
文件 20744 2012-10-26 16:02 SHA_256_102612\SHA_256_102612_Manifest.html
文件 523115 2012-08-13 15:15 SHA_256_102612\SLAA547_8_13.pdf
文件 9722 2012-10-26 16:02 SHA_256_102612\TI_SHA_256.c
文件 2911 2012-10-26 16:02 SHA_256_102612\TI_SHA_256.h
目录 0 2012-11-09 10:05 SHA_256_102612\
- 上一篇:C++实现的学分管理系统
- 下一篇:算法子集树问题的c语言代码
相关资源
- 通过 S-Function 集成 C 代码进行仿真
- listing_4.1.cpp
- c++实现最简单的COM
- MFC美化-SkinSharp库使用方法和经典例程
- C语言实现Optimal、FIFO、LRU页面置换算
- c语言实现设置ip、网关、子网掩码
- Effective C++中文版 超清pdf
- 用VS2015+opencv3.4.2+C++编写Yolov3目标检测
- mfc ActiveX 结构体数组的传递
- GeoTiff读取程序
- C语言 3DES、AES、RC6、TEA、RSA、MD5、S
- 光流场计算 c语言 源码 optical flow
- Itti显著性模型(cpp)较原版简洁易懂
- Itti视觉注意模型Matlab
- VS2010 C++窗口应用程序窗口之间传递参
- 局部均值滤波(local statistics neibor f
- SHA-1算法实现源代码
- ATSHA204的C语言代码
- 利用MFC开发的Activex指示灯控件
- MD5-SHA1-SHA256算法C源码
- openCV中stitching_detailed.cpp
- c++之sha1类
- PID算法Matlab仿真程序和C程序
- PBKDF2_HMac_SHA1哈希算法
- GDAL进行shapefile数据栅格化
- MFC读取SHP文件
- C++实现TIN
- 自适应霍夫曼编码(C++)
- TstCon.exe
- activemq-cpp开发手册.pdf
评论
共有 条评论