asn1_encode_sequence(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

hey bestie, welcome to the asn1_encode_sequence(9) page from the Kernel API Manual πŸ’… this is the one that wraps a byte stream in an ASN.1 SEQUENCE.

  • asn1_encode_sequence β€” wrap a byte stream in an ASN.1 SEQUENCE

✨ SYNOPSIS ✨

unsigned char * asn1_encode_sequence (unsigned char *data , const
unsigned char *end_data , const unsigned char *seq , int len );

🌸 ARGUMENTS 🌸

okay so these are the four little besties this function takes:

  • data β€” pointer to encode at.
  • end_data β€” end of data pointer, points one beyond last usable byte in data.
  • seq β€” data to be encoded as a sequence.
  • len β€” length of the data to be encoded as a sequence.

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function fills in a sequence ✨ if you wanna encode in place, pass NULL for seq and -1 for len; then call it again once the length is known (still with NULL for seq). and to avoid having to keep both before and after pointers, the repeat call expects data pointing to where the first encode placed it. literally that's the whole vibe.

πŸŽ€ SEE ALSO πŸŽ€

mwah πŸ’– β€” from ./lib, October 2026; asn1_encode_sequence(9) out! πŸŽ€

πŸ“¦ where this page comes from