OBJ_FIND_SIGID_ALGS(3)
π 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*pdigestunlesspdigestis aNULLpointer, and the associated encryption algorithm is stored in*pencryptionunlesspencryptionis aNULLpointer. 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*psignatureunlesspsignatureis aNULLpointer. cute, efficient, does the thing. π
β RETURN VALUES β
OBJ_find_sigid_algs()β returns1if a definition of the signature algorithm is found, or0if 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()β returns1if a signature algorithm using the specified digest and encryption algorithms is defined, or0if 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
- opensuse-leap 16.0: libressl-devel-doc 4.1.0-bp160.1.1 Β· OpenSSL
- Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms