The principle of legality holds that there can be no crime or punishment without a prior law authorizing such action.