AES counter (CTR) block cipher mode implementation for nRF51x SoC