/home/abui...cdsa_ctx.h(3)
π /home/abui...cdsa_ctx.h(3) π
okay so bestie, welcome to the Library Functions Manual entry for this header. Itβs giving cryptographic API realness, and weβre gonna walk through it together, no cap. π
πΈ NAME πΈ
/home/abuild/rpmbuild/BUILD/libzpc-legacy-1.5.0-build/libzpc-1.5.0/include/zpc/ecdsa_ctx.h β ECDSA-CTX API.
β¨ SYNOPSIS β¨
π«Ά Functions π«Ά
int zpc_ecdsa_ctx_alloc (struct zpc_ecdsa_ctx **ctx)
int zpc_ecdsa_ctx_set_key (struct zpc_ecdsa_ctx *ctx, struct zpc_ec_key *key)
int zpc_ecdsa_sign (struct zpc_ecdsa_ctx *ctx, const unsigned char *hash, unsigned int hash_len, unsigned char *signature, unsigned int *sig_len)
int zpc_ecdsa_verify (struct zpc_ecdsa_ctx *ctx, const unsigned char *hash, unsigned int hash_len, const unsigned char *signature, unsigned int sig_len)
void zpc_ecdsa_ctx_free (struct zpc_ecdsa_ctx **ctx)
π Detailed Description π
So this header is literally the ECDSA-CTX API. Itβs the sign/verify API for elliptic curve cryptography (ECDSA) algorithms. [5] sign/verify β iconic reference behavior, iykyk. β¨
Definition in file ecdsa_ctx.h.
π¦ Function Documentation π¦
π int zpc_ecdsa_ctx_alloc (struct zpc_ecdsa_ctx **ctx) π
Allocate a new context for an ECDSA sign/verify operation. This is the βget your context readyβ moment, bestie. π«Ά
Parameters
ctxβ ECDSA context
Returns
0 on success. Otherwise, a non-zero error code is returned.
π int zpc_ecdsa_ctx_set_key (struct zpc_ecdsa_ctx *ctx, struct zpc_ec_key *key) π
Set the key to be used in the context of an ECDSA sign/verify operation. Gotta give the context its key, obviously. π
Parameters
ctxβ ECDSA contextkeyβ EC key
Returns
0 on success. Otherwise, a non-zero error code is returned.
π int zpc_ecdsa_sign (struct zpc_ecdsa_ctx *ctx, const unsigned char *hash, unsigned int hash_len, unsigned char *signature, unsigned int *sig_len) π
Do an ECDSA sign operation. This is the main-character signing function, periodt. βοΈβ¨
Parameters
ctxβ ECDSA contexthashβ input message to signhash_lenβ input message length [bytes]signatureβ signature*sig_lenβ address of signature length field [bytes]. On input, the application must specify the buffer length to receive the signature [bytes]. IfsignatureisNULL, only the length of the signature is returned.
Returns
0 on success. Otherwise, a non-zero error code is returned.
π int zpc_ecdsa_verify (struct zpc_ecdsa_ctx *ctx, const unsigned char *hash, unsigned int hash_len, const unsigned char *signature, unsigned int sig_len) π
Do an ECDSA verify operation. Time for the vibe check: does this signature actually match? πβ
Parameters
ctxβ ECDSA contexthashβ input message to verifyhash_lenβ input message length [bytes]signatureβ signature to verifysig_lenβ signature length
Returns
0 on success. Otherwise, a non-zero error code is returned.
π void zpc_ecdsa_ctx_free (struct zpc_ecdsa_ctx **ctx) π
Free an ECDSA context. Cleanup era, we love to see it. π§Ήπ
Parameters
ctxβ ECDSA context
π Author π
Generated automatically by Doxygen for libzpc from the source code.
mwah π okay thatβs the whole page β source is libzpc, version 1.4, and the footer page is /home/abui...cdsa_ctx.h(3). Date? The footer didnβt give one, so bestie, thatβs a mystery π΅οΈββοΈβ¨
π¦ where this page comes from
- opensuse-leap 16.0: libzpc-legacy-devel 1.5.0-160000.2.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms