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

Function sphinx_prefill_stream_xor

common/sphinx.c:471–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471static void sphinx_prefill_stream_xor(u8 *dst, size_t dstlen,
472 const struct secret *shared_secret)
473{
474 struct secret padkey;
475 subkey_from_hmac("prefill", shared_secret, &padkey);
476 xor_cipher_stream(dst, &padkey, dstlen);
477}
478
479static void sphinx_prefill(u8 *routinginfo, const struct sphinx_path *sp,
480 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