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

package dtls

func findMatchingSRTPProfile(,  []SRTPProtectionProfile) (SRTPProtectionProfile, bool) {
	for ,  := range  {
		for ,  := range  {
			if  ==  {
				return , true
			}
		}
	}

	return 0, false
}

func findMatchingCipherSuite(,  []CipherSuite) (CipherSuite, bool) {
	for ,  := range  {
		for ,  := range  {
			if .ID() == .ID() {
				return , true
			}
		}
	}

	return nil, false
}

func splitBytes( []byte,  int) [][]byte {
	 := make([][]byte, 0)
	 := len()
	for  := 0;  < ;  +=  {
		 :=  + 
		if  >  {
			 = 
		}

		 = append(, [:])
	}

	return 
}