How to Port CTR for Mediatek