Lines Matching refs:correct
257 * @return Either 0, if the encoding is correct, or -1, if it is incorrect.
261 int correct = 0;
265 correct |= (encoded[0] ^ 2);
281 correct |= (tmp & 1) - 1;
287 correct |= encoded[encoded.length - (pLen + 1)];
292 correct |= correct >> 1;
293 correct |= correct >> 2;
294 correct |= correct >> 4;
295 return ~((correct & 1) - 1);
300 * Decode PKCS#1.5 encoding, and return a random value if the padding is not correct.
334 int correct = PKCS1Encoding.checkPkcs1Encoding(data, this.pLen);
343 result[i] = (byte)((data[i + (data.length - pLen)] & (~correct)) | (random[i] & correct));