convenience crypto implementation added
counter value management added
mac verification functions added