I have a problem I need to solve with the following scenario and I hope someone can help me find an approach or direction to start tackling it.
Consider Alice as a sender who has $n$ strings which she encrypts with her private key $k$ and some encryption algorithm $E$. Bob has access only to the encrypted strings and wants to inspect them to see if they contain any one of possible blacklisted words, which if detected should obligate Alice to reveal the matching string to Bob in clear-text. Otherwise, Alice is entitled to her privacy and Bob should not be aware of the clear-text content of her data.
How would you suggest the parties to communicate in order to achieve such a common goal ? What cryptographic primitives would you suggest me to use? I thought of using oblivious transfer in some way, but I find it a little hard to form a clear idea how.