OpenBSD manual page server

Manual Page Search Parameters

BN_KRONECKER(3) Library Functions Manual BN_KRONECKER(3)

BN_kroneckerKronecker symbol

#include <openssl/bn.h>

BN_kronecker(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);

() computes the Kronecker symbol (a | b), which generalizes the Legendre and Jacobi symbols for arbitrary integer numbers b.

BN_kronecker() returns -1, 0, or 1 in case of success or -2 on error.

BN_CTX_new(3), BN_gcd(3), BN_mod_sqrt(3), BN_new(3)

Henri Cohen, A Course in Computational Algebraic Number Theory, Springer, Berlin, 1993, Algorithm 1.4.10.

BN_kronecker() first appeared in OpenSSL 0.9.7 and has been available since OpenBSD 3.2.

November 15, 2022 OpenBSD-current