CryptEncrypt() API [英] CryptEncrypt() API

查看:25
本文介绍了CryptEncrypt() API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个函数返回时在缓冲区末尾得到垃圾字节是否正常?

is it normal to get the junk bytes at end of buffer when this function returns?

推荐答案

如果您使用的是块密码,则输出被填充为块大小的倍数是正常的.使用流密码,结果通常与输入的长度完全相同.

If you're using a block cipher, it's normal for the output to be padded to a multiple of the block size. With a stream cipher, the result will normally be exactly the same length as the input.

这篇关于CryptEncrypt() API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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