1) I am ashamed that I failed.
= I am ashamed of having failed.
2) I was ashamed that I had failed.
=I was ashamed of having failed.
3) I was ashamed that I failed.
= I was ashamed of failing.
The examples above are right? And in #1, "I am ashamed of failing" is also possible and used for the same meaning? Also "I am ashamed that I fail" is possible in logic and meaning?
What do you think? Thank you so much as usual.