# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-06-05 06:19+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" # #-#-#-#-# archlinux: BN_generate_prime.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: BN_generate_prime.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: BN_generate_prime.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: BN_generate_prime.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Title" msgstr "" # #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #: archlinux #, no-wrap msgid "BN_GENERATE_PRIME 3ssl" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "BN_GENERATE_PRIME" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "2026-04-07" msgstr "" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "3.6.2" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "OpenSSL" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "BN_generate_prime_ex2, BN_generate_prime_ex, BN_is_prime_ex, BN_check_prime, " "BN_is_prime_fasttest_ex, BN_GENCB_call, BN_GENCB_new, BN_GENCB_free, " "BN_GENCB_set_old, BN_GENCB_set, BN_GENCB_get_arg, BN_generate_prime, " "BN_is_prime, BN_is_prime_fasttest - generate primes and test for primality" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Header" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& #include Eopenssl/bn.hE\n" "\\&\n" "\\& int BN_generate_prime_ex2(BIGNUM *ret, int bits, int safe,\n" "\\& const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb,\n" "\\& BN_CTX *ctx);\n" "\\&\n" "\\& int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add,\n" "\\& const BIGNUM *rem, BN_GENCB *cb);\n" "\\&\n" "\\& int BN_check_prime(const BIGNUM *p, BN_CTX *ctx, BN_GENCB *cb);\n" "\\&\n" "\\& int BN_GENCB_call(BN_GENCB *cb, int a, int b);\n" "\\&\n" "\\& BN_GENCB *BN_GENCB_new(void);\n" "\\&\n" "\\& void BN_GENCB_free(BN_GENCB *cb);\n" "\\&\n" "\\& void BN_GENCB_set_old(BN_GENCB *gencb,\n" "\\& void (*callback)(int, int, void *), void *cb_arg);\n" "\\&\n" "\\& void BN_GENCB_set(BN_GENCB *gencb,\n" "\\& int (*callback)(int, int, BN_GENCB *), void *cb_arg);\n" "\\&\n" "\\& void *BN_GENCB_get_arg(BN_GENCB *cb);\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The following functions have been deprecated since OpenSSL 0.9.8, and can be " "hidden entirely by defining B with a suitable version " "value, see B\\|(7):" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& BIGNUM *BN_generate_prime(BIGNUM *ret, int num, int safe, BIGNUM *add,\n" "\\& BIGNUM *rem, void (*callback)(int, int, void *),\n" "\\& void *cb_arg);\n" "\\&\n" "\\& int BN_is_prime(const BIGNUM *p, int nchecks,\n" "\\& void (*callback)(int, int, void *), BN_CTX *ctx, void *cb_arg);\n" "\\&\n" "\\& int BN_is_prime_fasttest(const BIGNUM *p, int nchecks,\n" "\\& void (*callback)(int, int, void *), BN_CTX *ctx,\n" "\\& void *cb_arg, int do_trial_division);\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The following functions have been deprecated since OpenSSL 3.0, and can be " "hidden entirely by defining B with a suitable version " "value, see B\\|(7):" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& int BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, BN_GENCB *cb);\n" "\\&\n" "\\& int BN_is_prime_fasttest_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx,\n" "\\& int do_trial_division, BN_GENCB *cb);\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B generates a pseudo-random prime number of at " "least bit length B using the BN_CTX provided in B. The value of " "\\&B must not be NULL." msgstr "" #. type: Plain text #: archlinux msgid "" "The returned number is probably prime with a negligible error. The maximum " "error rate is 2^-128. It\\*(Aqs 2^-287 for a 512 bit prime, 2^-435 for a " "1024 bit prime, 2^-648 for a 2048 bit prime, and lower than 2^-882 for " "primes larger than 2048 bit." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If B is B the returned prime number will have exact bit length " "B with the top most two bits set." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "If B is not B, it will be used to store the number." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "If B is not B, it is used as follows:" msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\\(bu" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is called after generating the i-th potential " "prime number." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "While the number is being tested for primality, \\&B is called as described below." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "When a prime has been found, B is called." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The callers of B may call B " "with other values as described in their respective man pages; see \"SEE " "ALSO\"." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The prime may have to fulfill additional requirements for use in Diffie-" "Hellman key exchange:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If B is not B, the prime will fulfill the condition p % B == " "B (p % B == 1 if B == B) in order to suit a given " "generator." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If B is true, it will be a safe prime (i.e. a prime p so that (p-1)/2 " "is also prime). If B is true, and B == B the condition will " "be p % B == 3. It is recommended that B is a multiple of 4." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The random generator must be seeded prior to calling " "B. If the automatic seeding or reseeding of the " "OpenSSL CSPRNG fails due to external circumstances (see B\\|(7)), the " "operation will fail. The random number generator configured for the " "OSSL_LIB_CTX associated with \\&B will be used." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is the same as B " "except that no \\&B parameter is passed. In this case the random " "number generator associated with the default OSSL_LIB_CTX will be used." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B, B, " "B and B test if the number B

is " "prime. The functions tests until one of the tests shows that B

is " "composite, or all the tests passed. If B

passes all these tests, it is " "considered a probable prime." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The test performed on B

are trial division by a number of small primes " "and rounds of the Miller-Rabin probabilistic primality test." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The functions do at least 64 rounds of the Miller-Rabin test giving a " "maximum false positive rate of 2^-128. If the size of B

is more than " "2048 bits, they do at least 128 rounds giving a maximum false positive rate " "of 2^-256." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If B is larger than the minimum above (64 or 128), B " "rounds of the Miller-Rabin test will be done." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If B set to B<0>, the trial division will be skipped. " "\\&B and B always skip the trial division." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B, B and " "B are deprecated." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B and B behave just like " "\\&B and B respectively, but " "with the old style callback." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is a preallocated B (to save the overhead of allocating " "and freeing the structure in a loop), or B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If the trial division is done, and no divisors are found and B is not " "B, B is called." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "After each round of the Miller-Rabin probabilistic primality test, if B " "is not B, B is called with B the iteration " "(j = 0, 1, ...)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B calls the callback function held in the B " "structure and passes the ints B and B as arguments. There are two " "types of \\&B structure that are supported: \"new\" style and " "\"old\" style. New programs should prefer the \"new\" style, whilst the " "\"old\" style is provided for backwards compatibility purposes." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "A B structure should be created through a call to " "B, and freed through a call to B. If the " "argument is NULL, nothing is done." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For \"new\" style callbacks a BN_GENCB structure should be initialised with " "a call to B, where B is a B, B " "is of type B and B is a " "B. \"Old\" style callbacks are the same except they are initialised " "with a call to B and B is of type \\&B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "A callback is invoked through a call to B. This will check " "the type of the callback and will invoke B for new " "style callbacks or B for old style." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "It is possible to obtain the argument associated with a BN_GENCB structure " "(set via a call to BN_GENCB_set or BN_GENCB_set_old) using BN_GENCB_get_arg." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B (deprecated) works in the same way as " "\\&B but expects an old-style callback function " "directly in the B parameter, and an argument to pass to it in the " "B. B and B can similarly be " "compared to B and \\&B, " "respectively." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RETURN VALUES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B return 1 on success or 0 on error." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B, B, " "\\&B and BN_check_prime return 0 if the number is " "composite, 1 if it is prime with an error probability of less than " "0.25^B, and \\&-1 on error." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns the prime number on success, B " "otherwise." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "BN_GENCB_new returns a pointer to a BN_GENCB structure on success, or " "B otherwise." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "BN_GENCB_get_arg returns the argument previously associated with a BN_GENCB " "structure." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Callback functions should return 1 on success or 0 on error." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The error codes can be obtained by B\\|(3)." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "REMOVED FUNCTIONALITY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "As of OpenSSL 1.1.0 it is no longer possible to create a BN_GENCB structure " "directly, as in:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "\\& BN_GENCB callback;\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Instead applications should create a BN_GENCB structure using BN_GENCB_new:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& BN_GENCB *callback;\n" "\\& callback = BN_GENCB_new();\n" "\\& if (!callback)\n" "\\& /* error */\n" "\\& ...\n" "\\& BN_GENCB_free(callback);\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B\\|(3), B\\|(3), " "\\&B\\|(3), B\\|(3), B\\|(3), " "\\&B\\|(7)" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "HISTORY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B and B functions were " "deprecated in OpenSSL 3.0." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B, B, and B " "functions were added in OpenSSL 1.1.0." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B was added in OpenSSL 3.0." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "COPYRIGHT" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Copyright 2000-2025 The OpenSSL Project Authors. All Rights Reserved." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Licensed under the Apache License 2.0 (the \"License\"). You may not use " "this file except in compliance with the License. You can obtain a copy in " "the file LICENSE in the source distribution or at Ehttps://" "www.openssl.org/source/license.htmlE." msgstr "" #. ======================================================================== #. type: IX #: debian-trixie debian-unstable #, no-wrap msgid "BN_GENERATE_PRIME 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr "" #. type: Plain text #: debian-trixie debian-unstable msgid "" "The returned number is probably prime with a negligible error. The maximum " "error rate is 2^-128. It's 2^-287 for a 512 bit prime, 2^-435 for a 1024 " "bit prime, 2^-648 for a 2048 bit prime, and lower than 2^-882 for primes " "larger than 2048 bit." msgstr ""