diff --git a/ctaocrypt/src/rsa.c b/ctaocrypt/src/rsa.c index a0ff196aa..d11b030a0 100644 --- a/ctaocrypt/src/rsa.c +++ b/ctaocrypt/src/rsa.c @@ -174,9 +174,14 @@ static int RsaUnPad(const byte *pkcsBlock, unsigned int pkcsBlockLen, /* Require block type padValue */ invalid = (pkcsBlock[0] != padValue) || invalid; - /* skip past the padding until we find the separator */ - while (i