func (ocb *ocb2Mode) SetKey(key []byte) {
	if len(key) != ocb.KeySize() {
		panic("cryptstate: invalid key length")
	}

	cipher, err := aes.NewCipher(key)
	if err != nil {
		panic("cryptstate: NewCipher returned unexpected " + err.Error())
	}
	ocb.cipher = cipher
}
// SetKey sets a new key. The key must have a length equal to KeySize().
SetKey sets a new key. The key must have a length equal to KeySize().
// SetKey sets a new key . The key must have a length equal to KeySize () .
func (ocb *ocb2Mode) SetKey(key []byte) {
	if len(key) != ocb.KeySize() {
		panic("cryptstate: invalid key length")
	}
	cipher, err := aes.NewCipher(key)
	if err != nil {
		panic("cryptstate: NewCipher returned unexpected " + err.Error())
	}
	ocb.cipher = cipher
}
func ( ocb * ocb2Mode ) SetKey ( key [ ] byte ) { if len ( key ) != ocb . KeySize ( ) { panic ( " " ) } cipher , err := aes . NewCipher ( key ) if err != nil { panic ( " " + err . Error ( ) ) } ocb . cipher = cipher }
SetKey sets a new key.
SetKey sets a new key .