在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 6880|回复: 9

[转贴] ncsim rc5 decrypt

[复制链接]
发表于 2016-4-12 17:30:52 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
[code] One of IS at The Encryption shemes in ncsim Utilizing
RC5 to the encrypt at The keyblock. at The IS ENCRYPTED Part
Marked the with
// pragma Protect key_keyname = CDS_KEY
// pragma Protect key_method = RC5
style directives.
at The key_block sectionTop that the this scheme command RC5 encrypts
IS text snippet that in Term A the includes at The Encryption Method
of at The data_block, IT IS Normally the AES and the AES at The Key.
An Example of sectionTop at The key_block: --------- --------- the before the decrypt - // pragma Protect key_block CPuqmTjFp2LUUeeTQCmjXOtQIYdyxp0M4cUOb1KoZjg + IZHFIf / lII1Gcm36dPgT dOL8xO0E1LGVCab1wSMzG9r5keP4bLvlYgPV / xfFb + kJ3xprGZJwz2L9HjIX4NhC afDnbYui0WnFdgCie / wO3qZOwTPUnTzSsQ / mohys88s5 + 6CDx9iJ0w == // pragma Protect end_key_block ------------------- ---------------- --------- ----------- the After the decrypt @fbaWIKWEo [the NCP: ENG_VER = 1.100000] // pragma data_method = the AES Protect // pragma Protect data_decrypt_key xSzOPdVsfyMAAAAAAAAA == ----------------------------------- Here at The IS Keys / Method to the decrypt IT: ncsim the uses RC5_CBC This IS Similar to AES_CBS in. that IT the runs A the decrypt Round and A Final XOR a using A Runtime the Vector at The RC5_CBC the Parameters are:. RC5 Key: 96e8dfd8354fb228 RC5_CBC IV: 636164656e636500 RC5 Rounds: 0x14 the For at The the AES Key that IS Inside at The key_block sectionTop at The the Initialization the Vector Used by aes_cbc IS: the AES IV: 636164656e63652064657369676e2073 at The RC5 keyschedule IS Standard RC5 the In the OpenSSL Terminology:. RC5_32_set_key (& Key,. 8, D, 20); (Note that the OpenSSL does only Implement RC5 up to RC5_16_ROUNDS, you have have to Patch the OpenSSL to increse at The Supported RC5 Rounds and unroll By RC5_32_decrypt to Support IT. Note Also that you need to use Linux-x32 SO that "Long int" IS 32 'bit) at The the decrypt IS Again Standard RC5, Openssl Terminology in: RC5_32_decrypt (P, & Key); the WHERE 2 INTS are DECRYPTED ON the each Call. at The Complete RC5_CBC Algo Used by ncsim:   unsigned int * P = ..; int len = ..;   char Key [] = {0x96, 0xE8, 0xDF, 0xD8, 0x35, 0x4f, 0xb2, 0x28};   unsigned Long iv0 = 0x65646163; / * Cade * /   unsigned Long IV1 = 0x65636e; / * NCE \ 0 * /   RC5_32_set_key (& Key,. 8, D, 20);   for (i = 0; i <len; i + = 2) {     unsigned int O0, O1;     O0 = P [i + 0];     O1 = P [i + 1];     RC5_32_decrypt (P + i, & Key);     P [ 0 + i] ^ = iv0;     P [i + 1] = ^ IV1;     iv0 = O0;     IV1 = O1;   } [/ code]
发表于 2016-5-25 06:25:47 | 显示全部楼层
how to get warning message in ncsim
发表于 2017-8-21 15:14:05 | 显示全部楼层
你这里例子可以解出AES key,但是找了其他几个加密文件就解不出来,看起来一开始的key block里面隐含了一些版本信息,不同的版本对应不同的rc5 key和IV?
发表于 2018-5-18 10:58:04 | 显示全部楼层
回复 3# churchmice


后来搞定没有?  我试了一下也是这样,例子可以,新的文件解不出来
发表于 2022-12-4 22:00:44 | 显示全部楼层


qiufeng 发表于 2018-5-18 10:58
回复 3# churchmice


我试了一下,情况也是一样的
发表于 2022-12-4 23:39:37 | 显示全部楼层


caicaixuehua 发表于 2022-12-4 22:00
我试了一下,情况也是一样的


我也搞不定,脑壳疼
发表于 2022-12-6 12:16:45 | 显示全部楼层


churchmice 发表于 2022-12-4 23:39
我也搞不定,脑壳疼


哈哈,可能key换了
发表于 2023-1-3 23:56:50 | 显示全部楼层
有没哪位搞出来了?
发表于 2024-9-16 15:41:12 | 显示全部楼层
蹲一个后续
发表于 4 天前 | 显示全部楼层
本帖最后由 llcc01 于 2024-12-21 14:58 编辑

貌似iv没变,key换了
azVoaXloOTZUbHM9
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条


小黑屋| 手机版| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-12-25 16:08 , Processed in 0.023566 second(s), 9 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表