I have two byte[]
arrays which are of unknown length and I simply want to append one to the end of the other, i.e.:
byte[] ciphertext = blah;
byte[] mac = blah;
byte[] out = ciphertext + mac;
I have tried using arraycopy()
but can't seem to get it to work.