 const senderTransform = new SFrameTransform({ role : 'encrypt', authenticationSize: 10 });
    senderTransform.setEncryptionKey(key);

    const receiverTransform = new SFrameTransform({ role : 'decrypt', authenticationSize: 10 });
    receiverTransform.setEncryptionKey(key);

    const writer = senderTransform.writable.getWriter();
    const reader = receiverTransform.readable.getReader();

    senderTransform.readable.pipeTo(receiverTransform.writable);

    const sent = new ArrayBuffer(8);
    const vie