OBJ_FIND_SIGID_ALGS(3)

πŸ“¦ version 4.1.0, in opensuse-leap 16.0

πŸ’… OBJ_FIND_SIGID_ALGS(3) πŸ’…

okay so bestie, this is the Library Functions Manual page for the signature-algorithm mapping girlies OBJ_find_sigid_algs and OBJ_find_sigid_by_algs. it’s giving β€œsmall but mighty lookup functions” and we’re obsessed. ✨


🌸 NAME 🌸

  • OBJ_find_sigid_algs, OBJ_find_sigid_by_algs β€” signature algorithm mappings πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <openssl/objects.h>

int
OBJ_find_sigid_algs(int signature, int *pdigest, int *pencryption);

int
OBJ_find_sigid_by_algs(int *psignature, int digest, int encryption);

that’s the whole vibe check: include the header, then call one of these two functions. 🫢


✨ DESCRIPTION ✨

  • OBJ_find_sigid_algs() β€” looks up the signature algorithm. if it is found, the associated digest algorithm is stored in *pdigest unless pdigest is a NULL pointer, and the associated encryption algorithm is stored in *pencryption unless pencryption is a NULL pointer. lowkey a two-for-one lookup moment πŸ’…
  • OBJ_find_sigid_by_algs() β€” looks up the pair (digest, encryption). if it is found, the associated signature algorithm is stored in *psignature unless psignature is a NULL pointer. cute, efficient, does the thing. πŸŽ€

⭐ RETURN VALUES ⭐

  • OBJ_find_sigid_algs() β€” returns 1 if a definition of the signature algorithm is found, or 0 if a definition of the signature algorithm is not built into the library. so: 1 = found it, 0 = not built in. periodt. βœ…
  • OBJ_find_sigid_by_algs() β€” returns 1 if a signature algorithm using the specified digest and encryption algorithms is defined, or 0 if the definition of such an algorithm is not built into the library. no cap, that’s the whole return tea. πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

go peek at these when you’re done slaying here. iykyk 🌈


πŸ‘‘ HISTORY πŸ‘‘

these functions first appeared in OpenSSL 1.0.0 and have been available since OpenBSD 4.9. iconic longevity, honestly. 🧚


byeee bestie β€” this page’s source/version is Debian, dated January 31, 2024. signing off with maximum signature-algorithm-mapping energy. πŸ’–πŸ’…πŸ«Ά

πŸ“¦ where this page comes from