Trf_MDUpdate(3)

πŸ’– Trf_MDUpdate(3) πŸ’–

okay so bestie, we're in the Library Functions Manual today and the star of the show is Trf_MDUpdate β€” it's the little interface to the procedures that update a MD context. yes, that's a lot of acronyms, stay with me, we got this 🫢


✨ NAME ✨

Trf_MDUpdate β€” the interface to procedures for update of a MD context. that's the whole vibe. no cap.


🌸 SYNOPSIS 🌸

#include <transform.h>

void Trf_MDUpdate
(
     void *context,
     unsigned int character
);

like, that's it. two args. we love a low-maintenance icon πŸ‘‘


πŸŽ€ PARAMETERS πŸŽ€

  • void *context β€” the state you're updating. it's the little container holding all the hash-y business, and you're handing it over so it can get updated. it's giving main character state πŸ’…
  • unsigned int character β€” the character you're hashing into the state. one character. singular. iconic behaviour honestly.

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, fr fr: a procedure of this type gets called for every single character that you want to hash into the final digest. every one. no skipping, no shortcuts, no "eh, close enough" β€” one character in, state gets updated, repeat until the digest is done. that's the whole entire job description and honestly? respect. 🌈

it's a function-pointer-shaped bestie. you don't call it yourself so much as you provide something shaped like it, and the library calls it once per character as it walks through your data. think of it as the group chat where every single message matters, not just the last one. πŸ’œ


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, in order, no one left out:

Trf_Init(3), Trf_SafeInit(3), Trf_IsInitialized(3), Trf_CreateOptions(3), Trf_DeleteOptions(3), Trf_CheckOptions(3), Trf_SetOption(3), Trf_SetObjOption(3), Trf_QueryOptions(3), Trf_SeekQueryOptions(3), Trf_WriteProc(3), Trf_CreateCtrlBlock(3), Trf_DeleteCtrlBlock(3), Trf_TransformCharacter(3), Trf_TransformBuffer(3), Trf_FlushTransformation(3), Trf_ClearCtrlBlock(3), Trf_QueryMaxRead(3), Trf_Register(3), Trf_ConverterOptions(3), Trf_MDStart(3), Trf_MDUpdateBuf(3), Trf_MDFinal(3), Trf_MDCheck(3), Trf_RegisterMessageDigest(3), Trf_LoadLibrary(3), Trf_XorBuffer(3), Trf_ShiftRegister(3), Trf_FlipRegisterShort(3), Trf_FlipRegisterLong(3), Trf_InitStubs(3)


and that's the page!! this lil manpage was brought to you by c2man transform.h, dated 27 August 2002, so yeah she's vintage and she's still slaying. mwah πŸ’‹βœ¨