Fix RSA encryption padding terminator in gmp plugin, broken with 5025135f

This commit is contained in:
Martin Willi 2012-10-24 20:15:50 +02:00
parent e34573dd48
commit 828cefc313
1 changed files with 2 additions and 0 deletions

View File

@ -361,6 +361,8 @@ METHOD(public_key_t, encrypt_, bool,
}
rng->destroy(rng);
pos += padding;
/* append the padding terminator */
*pos++ = 0x00;