How to make PKCS conformation oracle for trying Bleichenbacher’s RSA attack?
I unfortunately don't have enough reputation to comment, forgive the answer that is a link to another answer. Your question is explained well in this answer:

https://crypto.stackexchange.com/a/12706/17884