.\" -*- coding: UTF-8 -*- .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .de IX .. .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .if n .ds AD l .\" .\" Required to disable full justification in groff 1.23.0. .\" ======================================================================== .\" .IX Title "BN_NUM_BYTES 3ssl" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH BN_NUM_BYTES 3ssl "7 أبريل 2026" 3.6.2 OpenSSL .if n .ad l .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .nh .SH الاسم BN_num_bits, BN_num_bytes, BN_num_bits_word \- الحصول على حجم BIGNUM .SH موجز .IX Header موجز .Vb 1 \& #include \& \& int BN_num_bytes(const BIGNUM *a); \& \& int BN_num_bits(const BIGNUM *a); \& \& int BN_num_bits_word(BN_ULONG w); .Ve .SH الوصف .IX Header الوصف \&\fBBN_num_bytes()\fP تُرجع حجم \fBBIGNUM\fP بالبايت. .PP \&\fBBN_num_bits_word()\fP تُرجع عدد البتات المعنوية في كلمة. إذا أخذنا 0x00000432 كمثال، تُرجع 11، وليس 16، وليس 32. بشكل أساسي، باستثناء الصفر، تُرجع \fIfloor(log2(w))+1\fP. .PP \&\fBBN_num_bits()\fP تُرجع عدد البتات المعنوية في \fBBIGNUM\fP، متبعة نفس مبدأ \fBBN_num_bits_word()\fP. .PP \&\fBBN_num_bytes()\fP هي ماكرو. .SH "القيم المُرجعة" .IX Header "القيم المُرجعة" الحجم. .SH ملاحظات .IX Header ملاحظات حاول البعض استخدام \fBBN_num_bits()\fP على أرقام فردية في مفاتيح RSA ومفاتيح DH ومفاتيح DSA، ووجدوا أنها لا تُنتج دائمًا عدد البتات المتوقع (شيء مثل 512، 1024، 2048، \&...). هذا لأن توليد رقم بعدد محدد من البتات لا يُعيّن دائمًا أعلى البتات، مما يجعل عدد البتات \fIالمعنوية\fP أقل قليلاً. إذا أردت معرفة "حجم المفتاح" لمثل هذا المفتاح، إما استخدم دوال مثل \fBRSA_size()\fP و \fBDH_size()\fP و \fBDSA_size()\fP، أو استخدم \fBBN_num_bytes()\fP واضرب في 8 (على الرغم من عدم وجود ضمان حقيقي بأن ذلك سيطابق "حجم المفتاح"، فقط احتمالية أكبر بكثير). .SH "انظر أيضًا" .IX Header "انظر أيضًا" \&\fBDH_size\fP\|(3), \fBDSA_size\fP\|(3), \&\fBRSA_size\fP\|(3) .SH "حقوق النسخ" .IX Header "حقوق النسخ" حقوق النشر 2000\-2017 لمؤلفي مشروع OpenSSL. جميع الحقوق محفوظة. .PP مرخص بموجب رخصة Apache 2.0 (المشار إليها فيما يلي بـ ”الرخصة“). لا يجوز لك استخدام هذا الملف إلا وفقًا لشروط الرخصة. يمكنك الحصول على نسخة منها في الملف LICENSE الموجود في حزمة التوزيع المصدرية أو على الرابط . .PP .SH ترجمة تُرجمت هذه الصفحة من الدليل بواسطة زايد السعيدي . .PP هذه الترجمة هي وثيقة مجانية؛ راجع .UR https://www.gnu.org/licenses/gpl-3.0.html رخصة جنو العامة الإصدار 3 .UE أو ما بعده للاطلاع على شروط حقوق النشر. لا توجد أي ضمانات. .PP إذا وجدت أي أخطاء في ترجمة صفحة الدليل هذه، يرجى إرسال بريد إلكتروني إلى قائمة بريد المترجمين: .MT kde-l10n-ar@kde.org .ME .