shishi_der2asn1_encasreppart(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– shishi_der2asn1_encasreppart πŸ’–

okay bestie, so this is a page from the shishi manual, section 3 (that's the library-functions girlies), and it's all about one little function that turns bytes into vibes. no wait, into ASN.1. same energy tho. ✨


🌸 NAME 🌸

shishi_der2asn1_encasreppart β€” it's an API function, and yes that name is a whole mouthful, we love her anyway πŸ’…


✨ SYNOPSIS ✨

#include <shishi.h>

Shishi_asn1 shishi_der2asn1_encasreppart(Shishi * handle, const char *
der, size_t derlen);

like, copy that exactly, don't freestyle it 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the shishi handle, and you gotta have it allocated by shishi_init() first, no skipping that step bestie πŸ™ˆ
  • const char * der β€” the input character array that's holding your DER encoding. that's the raw stuff you're feeding in.
  • size_t derlen β€” the length of that input character array with the DER encoding. yes, you have to tell it how long your bytes are. she doesn't guess. πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she actually do? she decodes the DER encoding of EncASRepPart and creates an ASN.1 structure out of it. that's it, that's the whole plot. bytes go in, structure comes out, main character energy fr fr πŸ’œ


⭐ RETURN VALUE ⭐

Returns the ASN.1 structure corresponding to your DER data. iconic. she delivers. πŸŽ€


😭 REPORTING BUGS 😭

found a bug? not the vibe, but okay, tell the people:

they're genuinely nice, i promise, go message them 🌈


Copyright Β© 2002-2022 Simon Josefsson.

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

(translation: keep the receipts, that's all she asks 🫢)


πŸ’€ SEE ALSO πŸ’€

The full documentation for shishi is maintained as a Texinfo manual. If the info and shishi programs are properly installed at your site, the command

info shishi

should give you access to the complete manual. like, the whole thing. the director's cut. 🌟


and that's the page!! written by the shishi girlies, version 1.0.3, and yeah the manual name up top is literally just shishi and the function is shishi_der2asn1_encasreppart(3) β€” go decode something, bestie, you got this πŸ’–βœ¨πŸ¦‹