Complete implementation of RFC6902