unifying sign/encrypt interfaces