tokens: ['This', 'clause', 'provides', 'the', 'details', 'for', 'AS', 'security', 'algorithms', 'negotiation', 'and', 'consideration', 'during', 'the', 'UE', 'initial', 'AS', 'security', 'context', 'establishment', 'Each', 'gNBngeNB', 'shall', 'be', 'configured', 'via', 'network', 'management', 'with', 'lists', 'of', 'algorithms', 'which', 'are', 'allowed', 'for', 'usage', 'There', 'shall', 'be', 'one', 'list', 'for', 'integrity', 'algorithms', 'and', 'one', 'for', 'ciphering', 'algorithms', 'These', 'lists', 'shall', 'be', 'ordered', 'according', 'to', 'a', 'priority', 'decided', 'by', 'the', 'operator', 'When', 'AS', 'security', 'context', 'is', 'to', 'be', 'established', 'in', 'the', 'gNBngeNB', 'the', 'AMF', 'shall', 'send', 'the', 'UE', 'G', 'security', 'capabilities', 'to', 'the', 'gNBngeNB', 'The', 'gNBngeNB', 'shall', 'choose', 'the', 'ciphering', 'algorithm', 'which', 'has', 'the', 'highest', 'priority', 'from', 'its', 'configured', 'list', 'and', 'is', 'also', 'present', 'in', 'the', 'UE', 'G', 'security', 'capabilities', 'The', 'gNBngeNB', 'shall', 'choose', 'the', 'integrity', 'algorithm', 'which', 'has', 'the', 'highest', 'priority', 'from', 'its', 'configured', 'list', 'and', 'is', 'also', 'present', 'in', 'the', 'UE', 'G', 'security', 'capabilities', 'The', 'chosen', 'algorithms', 'shall', 'be', 'indicated', 'to', 'the', 'UE', 'in', 'the', 'AS', 'SMC', 'The', 'chosen', 'ciphering', 'algorithm', 'is', 'used', 'for', 'ciphering', 'when', 'activated', 'of', 'the', 'user', 'plane', 'and', 'RRC', 'traffic', 'The', 'chosen', 'integrity', 'algorithm', 'is', 'used', 'for', 'integrity', 'protection', 'when', 'activated', 'of', 'the', 'user', 'plane', 'and', 'RRC', 'traffic', 'Activation', 'of', 'ciphering', 'and', 'integrity', 'protection', 'for', 'the', 'RRC', 'traffic', 'shall', 'be', 'done', 'as', 'defined', 'by', 'clause', '', 'Activation', 'of', 'ciphering', 'and', 'integrity', 'protection', 'for', 'the', 'user', 'plane', 'traffic', 'shall', 'be', 'done', 'based', 'on', 'the', 'UP', 'security', 'policy', 'received', 'from', 'the', 'SMF', 'as', 'defined', 'by', 'clause', '']