TITLE ii - Fundamental Rights and Guarantees
CHAPTER i - individual and Collective Rights and Duties
Article 5. All persons are equal before the law, without any distinction whatsoever, Brazilians and foreigners residing in the country being ensured of inviolability of the right to life, to liberty, to equality, to security and to property, on the following terms:
...
XL – penal law shall not be retroactive, except to benefit the defendant;
Non-retroactivity
Nulla poena sine lege
EDIT.