SHA-1算法有帮助 [英] SHA-1 algorithm help

查看:67
本文介绍了SHA-1算法有帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试根据wikipedia制作sha-1算法伪代码

对于快速的棕色狐狸跳过懒狗字符串我应该得到

2fd4e1c6 7a2d28fc ed849ee1 bb76e739 1b93eb12但我得到的是

1D8B8841 A544939A 98BB54FE 4C325476 C44AE1F0

(我从dec转换为hex)

我不知道问题是什么:(

提前Thx

展开 | 选择 | Wrap | 行号

解决方案

我厌倦了使用gcc在Cygwin中编译这个,我收到ROTL语句的错误它不是一个函数...


Raghu


thx的回复

展开 | 选择 | Wrap | 行号


由于涉及到endianess,你将在Intel机器上得到一个不同的答案...

你知道这个例子使用了哪个编译器或处理器吗?


raghu


Hi, I''m trying to make the sha-1 algorithm based on the wikipedia pseudocode.
For the ''The quick brown fox jumps over the lazy dog" string I should get
2fd4e1c6 7a2d28fc ed849ee1 bb76e739 1b93eb12 but what I get is
1D8B8841 A544939A 98BB54FE 4C325476 C44AE1F0
(after I convert from dec to hex)
I have no idea what the problem is :(
Thx in advance

Expand|Select|Wrap|Line Numbers

解决方案

I tired compiling this in Cygwin using gcc and i am getting the error for ROTL sayings its not a function...

Raghu


thx for the reply

Expand|Select|Wrap|Line Numbers


Since the endianess is involved in this you will get a different answer in the Intel machine...
Do you know which compiler or processor the example has used for this?

raghu


这篇关于SHA-1算法有帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆