cpx
cpx

Reputation: 17557

CryptEncrypt() API

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

Upvotes: 1

Views: 916

Answers (1)

Jerry Coffin
Jerry Coffin

Reputation: 489998

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.

Upvotes: 2

Related Questions