public void setUp() { recipient256 = new Recipient(); recipient256.AddAttribute(HeaderKeys.Algorithm, AlgorithmValues.Direct, Attributes.UNPROTECTED); CBORObject key256 = CBORObject.NewMap(); key256.Add(CoseKeyKeys.KeyType, GeneralValues.KeyType_Octet); key256.Add(CoseKeyParameterKeys.Octet_k, CBORObject.FromObject(rgbKey256)); cnKey256 = new OneKey(key256); recipient256.SetKey(cnKey256); }