func (k *Key) SetRawId(id []byte) error { if len(id) > DNET_ID_SIZE { return ErrInvalidDnetID } C.key_set_raw_id(k.key, unsafe.Pointer(&id[0]), C.int(len(id))) return nil }
func (k *Key) SetRawId(id []byte) { C.key_set_raw_id(k.key, unsafe.Pointer(&id[0]), C.int(len(id))) return }