Fix RSA encryption padding terminator in gmp plugin, broken with 5025135f
This commit is contained in:
@@ -361,6 +361,8 @@ METHOD(public_key_t, encrypt_, bool,
|
||||
}
|
||||
rng->destroy(rng);
|
||||
|
||||
pos += padding;
|
||||
|
||||
/* append the padding terminator */
|
||||
*pos++ = 0x00;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user