MCPcopy Create free account
hub / github.com/ElementsProject/lightning / sphinx_prefill_stream_xor

Function sphinx_prefill_stream_xor

common/sphinx.c:493–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493static void sphinx_prefill_stream_xor(u8 *dst, size_t dstlen,
494 const struct secret *shared_secret)
495{
496 struct secret padkey;
497 subkey_from_hmac("prefill", shared_secret, &padkey);
498 xor_cipher_stream(dst, &padkey, dstlen);
499}
500
501static void sphinx_prefill(u8 *routinginfo, const struct sphinx_path *sp,
502 size_t prefill_size, struct hop_params *params,

Callers 2

sphinx_prefillFunction · 0.85
sphinx_decompressFunction · 0.85

Calls 2

xor_cipher_streamFunction · 0.85
subkey_from_hmacFunction · 0.70

Tested by

no test coverage detected