Add helper function to determine if a given key-agreement protocol primitive is supported.
Same comment.