
stream_id는 symmetric secret stream의 고유 식별자로, stream_id를 사용하여 stream이 올바르게 초기화되고 push 함수가 올바르게 작동할 수 있습니다.
stream_id를 사용하는 방법은 다음과 같습니다.
1. stream_id를 저장하여, 나중에 push 함수를 호출할 때 stream_id를 전달합니다.
2. stream_id를 다른 함수에 전달하여, stream이 올바르게 초기화되고 push 함수가 올바르게 작동할 수 있습니다.
stream_id를 push 함수에 전달하는 방법은 다음과 같습니다.
#hostingforum.kr
c
int ret = sodium_crypto_secretstream_xchacha20poly1305_push(
&stream,
&tag,
&ciphertext,
&auth_tag,
&stream_id,
&message,
&message_len,
&ciphertext_len,
&auth_tag_len
);
stream_id를 push 함수에 전달할 때, stream_id는 함수의 6번째 인자로 전달됩니다.
stream_id를 올바르게 사용하여, symmetric secret stream이 올바르게 초기화되고 push 함수가 올바르게 작동할 수 있습니다.
2025-05-31 14:32