BN_KRONECKER(3)
okay bestie, welcome to BN_KRONECKER(3) β a page from the Library Functions Manual for libcrypto, and itβs here to explain the Kronecker symbol. no cap, tiny page, big β¨number theoryβ¨ energy.
πΈ NAME πΈ
BN_kronecker β Kronecker symbol. thatβs the name, and honestly? iconic.
β¨ SYNOPSIS β¨
hereβs the exact summoning circle:
library βlibcryptoβ #include <openssl/bn.h>
int
BN_kronecker(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
π DESCRIPTION π
BN_kronecker() computes the Kronecker symbol (a | b). it generalizes the Legendre and Jacobi symbols for arbitrary integer numbers b β yes, b is out here being arbitrary, main character energy fr fr.
π«Ά RETURN VALUES π«Ά
BN_kronecker() returns -1, 0, or 1 in case of success, or -2 on error. so the success vibe check is -1, 0, or 1, and the error vibe is -2. periodt.
π SEE ALSO π
also the reference text is: Henri Cohen, A Course in Computational Algebraic Number Theory, Springer, Berlin, 1993, Algorithm 1.4.10.
π¦ HISTORY π¦
BN_kronecker() first appeared in OpenSSL 0.9.7 and has been available since OpenBSD 3.2. a whole little glow-up timeline, iykyk.
xoxo π
this page is from Debian, dated June 8, 2025, and itβs literally BN_KRONECKER(3). bye bestie π
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2022 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