У меня есть два массива byte[]
, которые имеют неизвестную длину, и я просто хочу добавить один к концу другого, т.е.
byte[] ciphertext = blah;
byte[] mac = blah;
byte[] out = ciphertext + mac;
Я попытался использовать arraycopy()
, но не могу заставить его работать.