Add solution to 2.18 and add CTR mode to AES lib functions.