资源简介
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语言代码
相关资源
- C语言嵌入式Modbus协议栈,支持主站和
- TIM呼吸灯
- libevent(timeout.cpp)
- C++ SHA256加密计算
- Effective Modern C++ 中文
- Beginning C++17 5th Edition.pdf56911
- Effective C++(中文版).azw3
- Effective Morden C++
- vtigercrm7.2中文语言包
- TI毫米波雷达程序
- 使用 IBM Rational Systems Developer 和 Rati
- 水晶报表Crystal Reports运行环境CRRunti
- Effective C++ More effective C++ 中文版 .ch
- ResHacker 3.5 汉化 绝对可用
- Effective Morden C++ 高清文字版
- effective modern c++网友自译版.
- [免费高清PDF版]Effective Modern C++(201
- OpenCV Computer Vision Application Programming
- tiny+编译器C++实现
- Effective C++(第三版中文版) - Scott
- Effective C++中文版第三版 高清PDF
- Effective C++改善程序与设计的55个具体
- Effective C++中文版(第三版)
- lbm模拟液滴从壁面滑落
- 设计并实现TINYC语言的扫描程序TINYC
- VC++开发IE ActiveX控件
- 各种加密算法C语言版
- High-speed Charting ControlMFC绘图控件
-
Unreal Engine 4 sc
ripting with C++ Cookbook - Data Structures and Algorithm Analysis in C++
评论
共有 条评论