Working on AVR encryption code