// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

package handshake

import 

func decodeCipherSuiteIDs( []byte) ([]uint16, error) {
	if len() < 2 {
		return nil, errBufferTooSmall
	}
	 := int(binary.BigEndian.Uint16([0:])) / 2
	 := make([]uint16, )
	for  := 0;  < ; ++ {
		if len() < (*2 + 4) {
			return nil, errBufferTooSmall
		}

		[] = binary.BigEndian.Uint16([(*2)+2:])
	}
	return , nil
}

func encodeCipherSuiteIDs( []uint16) []byte {
	 := []byte{0x00, 0x00}
	binary.BigEndian.PutUint16([len()-2:], uint16(len()*2))
	for ,  := range  {
		 = append(, []byte{0x00, 0x00}...)
		binary.BigEndian.PutUint16([len()-2:], )
	}
	return 
}