在rijndael算法中自定义IV和Key值 [英] customizing the IV and Key values in rijndael algorithm

查看:345
本文介绍了在rijndael算法中自定义IV和Key值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有36个字节的键值和IV值。但是rijndael算法中的两个默认值都是256位。我不能拒绝任何来自36个字节的键和IV值的字节。现在我无法使用rijndael算法加密数据。因为Key和IV的值都超过了32个字节..



是否有任何替代方法可以选择其他算法来调整超过36个字节的IV和Key值。



任何帮助将不胜感激..

感谢

关于

mani.a

I have 36 bytes of key value and IV value .But the default values of both in rijndael algorithm is 256 bits.. More over I can not reject any of the byte from the 36 bytes of key and IV value.. Now Iam not able to encrypt the data using the rijndael algorithm. Because the value of both Key and IV exceeds 32 bytes..

Is there any alternate to choose other algorithm which adapts the IV and Key values more than 36 bytes..

any help would be appreciated..
thanks
with regards
mani.a

推荐答案

不,如果你的长度不对,你可能会错误地生成你的Key和IV。

试试这个: http://stackoverflow.com/questions/6482883/how- to-generate-rijndael-key-and-iv-using-a-passphrase [ ^ ]
No, you are presumably generating your Key and IV incorrectly if your length is wrong.
Try this: http://stackoverflow.com/questions/6482883/how-to-generate-rijndael-key-and-iv-using-a-passphrase[^]


这篇关于在rijndael算法中自定义IV和Key值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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