# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.2\n" "POT-Creation-Date: 2026-06-05 06:23+0200\n" "PO-Revision-Date: 2026-06-01 18:35+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" # #-#-#-#-# archlinux: EVP_PKEY_sign.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: EVP_PKEY_sign.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: EVP_PKEY_sign.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: EVP_PKEY_sign.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Title" msgstr "Title" #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #: archlinux #, no-wrap msgid "EVP_PKEY_SIGN 3ssl" msgstr "EVP_PKEY_SIGN 3ssl" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EVP_PKEY_SIGN" msgstr "EVP_PKEY_SIGN" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "2026-04-07" msgstr "7 أبريل 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "3.6.2" msgstr "3.6.2" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "OpenSSL" msgstr "OpenSSL" #. type: SH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "EVP_PKEY_sign_init, EVP_PKEY_sign_init_ex, EVP_PKEY_sign_init_ex2, " "EVP_PKEY_sign, EVP_PKEY_sign_message_init, EVP_PKEY_sign_message_update, " "EVP_PKEY_sign_message_final - sign using a public key algorithm" msgstr "" "EVP_PKEY_sign_init, EVP_PKEY_sign_init_ex, EVP_PKEY_sign_init_ex2, " "EVP_PKEY_sign, EVP_PKEY_sign_message_init, EVP_PKEY_sign_message_update, " "EVP_PKEY_sign_message_final - التوقيع باستخدام خوارزمية مفتاح عام" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "SYNOPSIS" msgstr "موجز" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Header" msgstr "Header" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& #include Eopenssl/evp.hE\n" "\\&\n" "\\& int EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx);\n" "\\& int EVP_PKEY_sign_init_ex(EVP_PKEY_CTX *ctx, const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_sign_init_ex2(EVP_PKEY_CTX *ctx, EVP_SIGNATURE *algo,\n" "\\& const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_sign_message_init(EVP_PKEY_CTX *ctx, EVP_SIGNATURE *algo,\n" "\\& const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_sign_message_update(EVP_PKEY_CTX *ctx,\n" "\\& unsigned char *in, size_t inlen);\n" "\\& int EVP_PKEY_sign_message_final(EVP_PKEY_CTX *ctx, unsigned char *sig,\n" "\\& size_t *siglen, size_t sigsize);\n" "\\& int EVP_PKEY_sign(EVP_PKEY_CTX *ctx,\n" "\\& unsigned char *sig, size_t *siglen,\n" "\\& const unsigned char *tbs, size_t tbslen);\n" msgstr "" "\\& #include Eopenssl/evp.hE\n" "\\&\n" "\\& int EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx);\n" "\\& int EVP_PKEY_sign_init_ex(EVP_PKEY_CTX *ctx, const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_sign_init_ex2(EVP_PKEY_CTX *ctx, EVP_SIGNATURE *algo,\n" "\\& const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_sign_message_init(EVP_PKEY_CTX *ctx, EVP_SIGNATURE *algo,\n" "\\& const OSSL_PARAM params[]);\n" "\\& int EVP_PKEY_sign_message_update(EVP_PKEY_CTX *ctx,\n" "\\& unsigned char *in, size_t inlen);\n" "\\& int EVP_PKEY_sign_message_final(EVP_PKEY_CTX *ctx, unsigned char *sig,\n" "\\& size_t *siglen, size_t sigsize);\n" "\\& int EVP_PKEY_sign(EVP_PKEY_CTX *ctx,\n" "\\& unsigned char *sig, size_t *siglen,\n" "\\& const unsigned char *tbs, size_t tbslen);\n" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B initializes a public key algorithm context I " "for signing using the algorithm given when the context was created using " "B\\|(3) or variants thereof. The algorithm is used to " "fetch a B method implicitly, see \"Implicit fetch\" in " "B\\|(7) for more information about implicit fetches." msgstr "" "\\&B يُهيئ سياق خوارزمية مفتاح عام I للتوقيع " "باستخدام الخوارزمية المُعطاة عند إنشاء السياق باستخدام B\\|" "(3) أو متغيراتها. تُستخدم الخوارزمية لجلب طريقة B ضمنيًا، انظر " "\"الجلب الضمني\" في B\\|(7) لمزيد من المعلومات حول الجلب الضمني." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is the same as B but " "additionally sets the passed parameters I on the context before " "returning." msgstr "" "\\&B هو نفسه B لكنه يُعين " "بالإضافة إلى ذلك المُعاملات الممررة I على السياق قبل الإرجاع." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B initializes a public key algorithm context " "I for signing a pre-computed message digest using the algorithm given " "by I and the key given through B\\|(3) or " "B\\|(3). A context I without a pre-loaded " "key cannot be used with this function. This function provides almost the " "same functionality as B, but is uniquely intended " "to be used with a pre-computed message digest, and allows pre-determining " "the exact conditions for that message digest, if a composite signature " "algorithm (such as RSA-SHA256) was fetched. Following a call to this " "function, setting parameters that modifies the digest implementation or " "padding is not normally supported." msgstr "" "\\&B يُهيئ سياق خوارزمية مفتاح عام I لتوقيع " "ملخص رسالة محسوب مسبقًا باستخدام الخوارزمية المُعطاة بواسطة I والمفتاح " "المُعطى عبر B\\|(3) أو B\\|(3). " "لا يمكن استخدام سياق I بدون مفتاح مُحمّل مسبقًا مع هذه الدالة. توفر هذه " "الدالة نفس الوظيفة تقريبًا مثل B، لكنها مخصصة بشكل " "فريد للاستخدام مع ملخص رسالة محسوب مسبقًا، وتسمح بتحديد الشروط الدقيقة لذلك " "الملخص مسبقًا، إذا جُلبت خوارزمية توقيع مركبة (مثل RSA-SHA256). بعد استدعاء " "هذه الدالة، لا يُدعم عادةً تعيين مُعاملات تُعدل تنفيذ الملخص أو الحشو." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B initializes a public key algorithm " "context I for signing an unlimited size message using the algorithm " "given by I and the key given through B\\|(3) or " "B\\|(3). Passing the message is supported both " "in a one-shot fashion using \\&B, and through the " "combination of B and " "B. This function enables using algorithms " "that can process input of arbitrary length, such as ED25519, RSA-SHA256 and " "similar." msgstr "" "\\&B يُهيئ سياق خوارزمية مفتاح عام I " "لتوقيع رسالة ذات حجم غير محدود باستخدام الخوارزمية المُعطاة بواسطة I " "والمفتاح المُعطى عبر B\\|(3) أو " "B\\|(3). يُدعم تمرير الرسالة بطريقة لمرة واحدة " "باستخدام \\&B، وعبر الجمع بين " "B و B. تُمكّن " "هذه الدالة من استخدام خوارزميات يمكنها معالجة إدخال بطول عشوائي، مثل ED25519 " "و RSA-SHA256 وما شابه." #. type: Plain text #: archlinux msgid "" "\\&B adds I bytes from I to the " "data to be processed for signature. The signature algorithm specification " "and implementation determine how the input bytes are processed and if " "there\\*(Aqs a limit on the total size of the input. See \"NOTES\" below " "for a deeper explanation." msgstr "" "\\&B يُضيف I بايت من I إلى " "البيانات المُراد معالجتها للتوقيع. يُحدد مواصفات وتنفيذ خوارزمية التوقيع كيفية " "معالجة بايتات الإدخال وما إذا كان هناك حد للحجم الكلي للإدخال. انظر " "\"ملاحظات\" أدناه لشرح أعمق." #. type: Plain text #: archlinux msgid "" "\\&B signs the processed data and places the " "data in \\&I, and the number of signature bytes in I<*siglen>, if the " "number of bytes doesn\\*(Aqt surpass the size given by I. " "\\&I may be NULL, and in that case, only I<*siglen> is updated with the " "number of signature bytes." msgstr "" "\\&B يُوقع البيانات المُعالجة ويضع البيانات في " "\\&I، وعدد بايتات التوقيع في I<*siglen>، إذا لم يتجاوز عدد البايتات " "الحجم المُعطى بواسطة I. يمكن أن يكون \\&I NULL، وفي هذه الحالة، " "يُحدث فقط I<*siglen> بعدد بايتات التوقيع." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B is a one-shot function that can be used with all the " "init functions above. When initialization was done with " "B, B or " "B, the data specified by I and I is " "signed after appropriate padding. When initialization was done with " "B, the data specified by I and I " "is digested by the implied message digest algorithm, and the result is " "signed after appropriate padding. If I is NULL then the maximum size " "of the output buffer is written to the \\&I parameter. If I is " "not NULL, then before the call the I parameter should contain the " "length of the I buffer, and if the call is successful the signature is " "written to I and the amount of data written to I." msgstr "" "\\&B هي دالة لمرة واحدة يمكن استخدامها مع جميع دوال التهيئة " "أعلاه. عندما أُجريت التهيئة باستخدام B أو " "B أو B، تُوقع البيانات " "المُحددة بواسطة I و I بعد الحشو المناسب. عندما أُجريت التهيئة " "باستخدام B، تُهضم البيانات المُحددة بواسطة " "I و I بواسطة خوارزمية ملخص الرسالة الضمنية، ويُوقع الناتج بعد " "الحشو المناسب. إذا كان I NULL، يُكتب الحجم الأقصى للمخزن الناتج إلى " "المُعامل \\&I. إذا لم يكن I NULL، فيجب أن يحتوي المُعامل " "I قبل الاستدعاء على طول مخزن I، وإذا كان الاستدعاء ناجحًا، يُكتب " "التوقيع إلى I وتُكتب كمية البيانات إلى I." #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NOTES" msgstr "ملاحظات" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "General" msgstr "عام" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Subsection" msgstr "Subsection" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Some signature implementations only accumulate the input data and do no " "further processing before signing it (they expect the input to be a digest), " "while others compress the data, typically by internally producing a digest, " "and signing the result. Some of them support both modes of operation at the " "same time. The caller is expected to know how the chosen algorithm is " "supposed to behave and under what conditions." msgstr "" "بعض تطبيقات التوقيع تُراكم بيانات الإدخال فقط ولا تُجري معالجة إضافية قبل " "توقيعها (تتوقع أن يكون الإدخال ملخصًا)، بينما تضغط أخرى البيانات، عادةً بإنتاج " "ملخص داخليًا، وتوقع الناتج. بعضها يدعم كلا وضعي التشغيل في نفس الوقت. يُتوقع " "من المستدعي معرفة كيف يجب أن تتصرف الخوارزمية المُختارة وتحت أي ظروف." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "For example, an RSA implementation can be expected to only expect a message " "digest as input, while ED25519 can be expected to process the input with a " "hash, i.e. to produce the message digest internally, and while RSA-SHA256 " "can be expected to handle either mode of operation, depending on if the " "operation was initialized with B or with " "B." msgstr "" "على سبيل المثال، يمكن توقع أن يتوقع تطبيق RSA فقط ملخص رسالة كإدخال، بينما " "يمكن توقع أن يعالج ED25519 الإدخال بتجزئة، أي إنتاج ملخص الرسالة داخليًا، " "وبينما يمكن توقع أن يتعامل RSA-SHA256 مع أي من وضعي التشغيل، اعتمادًا على ما " "إذا أُهيئت العملية باستخدام B أو باستخدام " "B." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Similarly, an RSA implementation usually expects additional details to be " "set, like the message digest algorithm that the input is supposed to be " "digested with, as well as the padding mode (see " "B\\|(3) and " "\\&B\\|(3) and similar others), while an RSA-" "SHA256 implementation usually has these details pre-set and immutable." msgstr "" "بالمثل، يتوقع تنفيذ RSA عادةً ضبط تفاصيل إضافية، مثل خوارزمية خلاصة الرسالة " "التي يُفترض معالجة الإدخال بها، بالإضافة إلى وضع الحشو (padding) (انظر " "B\\|(3) و " "\\&B\\|(3) وغيرها من الوظائف المماثلة)، بينما " "يحتوي تنفيذ RSA-SHA256 عادةً على هذه التفاصيل محددة مسبقاً وغير قابلة للتغيير." #. type: Plain text #: archlinux msgid "" "The functions described here can\\*(Aqt be used to combine separate " "algorithms. In particular, neither B\\|(3) " "nor the B parameter \"digest\" (B) " "can be used to combine a signature algorithm with a hash algorithm to " "process the input. In other words, it\\*(Aqs not possible to specify a " "I pre-loaded with an RSA pkey, or an I that fetched " "CW<\\*(C`RSA\\*(C'> and try to specify SHA256 separately to get the " "functionality of RSA-SHA256. If combining algorithms in that manner is " "desired, please use B\\|(3) and associated functions." msgstr "" "لا يمكن استخدام الدوال الموصوفة هنا لدمج خوارزميات منفصلة. على وجه الخصوص، " "لا يمكن استخدام B\\|(3) ولا مُعامل " "B \"digest\" (B) لدمج خوارزمية " "توقيع مع خوارزمية تجزئة لمعالجة الإدخال. بعبارة أخرى، ليس من الممكن تحديد " "I مُحمّل مسبقًا بمفتاح RSA، أو I جلب CW<\\*(C`RSA\\*(C'> ومحاولة " "تحديد SHA256 بشكل منفصل للحصول على وظيفة RSA-SHA256. إذا كان دمج الخوارزميات " "بهذه الطريقة مرغوبًا، يُرجى استخدام B\\|(3) والدوال " "المرتبطة." #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "Performing multiple signatures" msgstr "أداء توقيعات متعددة" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "When initialized using B or " "B, \\&B can be called more than " "once on the same context to have several one-shot operations performed using " "the same parameters." msgstr "" "عند التهيئة باستخدام B أو " "B، يمكن استدعاء \\&B أكثر من مرة " "على نفس السياق لإجراء عدة عمليات لمرة واحدة باستخدام نفس المُعاملات." #. type: Plain text #: archlinux msgid "" "When initialized using B, it\\*(Aqs not " "possible to call B multiple times." msgstr "" "عند التهيئة باستخدام B، ليس من الممكن استدعاء " "B عدة مرات." #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RETURN VALUES" msgstr "القيم المُرجعة" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "All functions return 1 for success and 0 or a negative value for failure." msgstr "جميع الدوال تُرجع 1 للنجاح و 0 أو قيمة سالبة للفشل." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "In particular, B and its other variants may return -2 " "to indicate that the operation is not supported by the public key algorithm." msgstr "" "على وجه الخصوص، قد تُرجع B ومتغيراتها الأخرى -2 للإشارة " "إلى أن العملية غير مدعومة من قبل خوارزمية المفتاح العام." #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EXAMPLES" msgstr "أمثلة" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RSA with PKCS#1 padding for SHA256" msgstr "RSA مع حشوة PKCS#1 لـ SHA256" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Sign data using RSA with PKCS#1 padding and a SHA256 digest as input:" msgstr "توقيع البيانات باستخدام RSA مع حشو PKCS#1 وملخص SHA256 كإدخال:" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& #include Eopenssl/evp.hE\n" "\\& #include Eopenssl/rsa.hE\n" "\\&\n" "\\& EVP_PKEY_CTX *ctx;\n" "\\& /* md is a SHA-256 digest in this example. */\n" "\\& unsigned char *md, *sig;\n" "\\& size_t mdlen = 32, siglen;\n" "\\& EVP_PKEY *signing_key;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes signing_key and md are set up before the next\n" "\\& * step. signing_key must be an RSA private key and md must\n" "\\& * point to the SHA-256 digest to be signed.\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n" "\\& if (ctx == NULL)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_sign_init(ctx) E= 0)\n" "\\& /* Error */\n" "\\& if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_PADDING) E= 0)\n" "\\& /* Error */\n" "\\& if (EVP_PKEY_CTX_set_signature_md(ctx, EVP_sha256()) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Determine buffer length */\n" "\\& if (EVP_PKEY_sign(ctx, NULL, &siglen, md, mdlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& sig = OPENSSL_malloc(siglen);\n" "\\&\n" "\\& if (sig == NULL)\n" "\\& /* malloc failure */\n" "\\&\n" "\\& if (EVP_PKEY_sign(ctx, sig, &siglen, md, mdlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Signature is siglen bytes written to buffer sig */\n" msgstr "" "\\& #include Eopenssl/evp.hE\n" "\\& #include Eopenssl/rsa.hE\n" "\\&\n" "\\& EVP_PKEY_CTX *ctx;\n" "\\& /* md is a SHA-256 digest in this example. */\n" "\\& unsigned char *md, *sig;\n" "\\& size_t mdlen = 32, siglen;\n" "\\& EVP_PKEY *signing_key;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes signing_key and md are set up before the next\n" "\\& * step. signing_key must be an RSA private key and md must\n" "\\& * point to the SHA-256 digest to be signed.\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n" "\\& if (ctx == NULL)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_sign_init(ctx) E= 0)\n" "\\& /* Error */\n" "\\& if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_PADDING) E= 0)\n" "\\& /* Error */\n" "\\& if (EVP_PKEY_CTX_set_signature_md(ctx, EVP_sha256()) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Determine buffer length */\n" "\\& if (EVP_PKEY_sign(ctx, NULL, &siglen, md, mdlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& sig = OPENSSL_malloc(siglen);\n" "\\&\n" "\\& if (sig == NULL)\n" "\\& /* malloc failure */\n" "\\&\n" "\\& if (EVP_PKEY_sign(ctx, sig, &siglen, md, mdlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Signature is siglen bytes written to buffer sig */\n" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RSA-SHA256 with a pre-computed digest" msgstr "RSA-SHA256 مع ملخص محسوب مسبقًا" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sign a digest with RSA-SHA256 using one-shot functions. To be noted is that " "RSA-SHA256 is assumed to be an implementation of " "CW<\\*(C`sha256WithRSAEncryption\\*(C'>, for which the padding is pre-" "determined to be B, and the input digest is assumed to " "have been computed using SHA256." msgstr "" "وقع ملخصًا باستخدام RSA-SHA256 باستخدام دوال اللقطة الواحدة. يُلاحظ أن RSA-" "SHA256 يُفترض أن يكون تطبيقًا لـ CW<\\*(C`sha256WithRSAEncryption\\*(C'>، حيث " "يكون الحشو محددًا مسبقًا ليكون B، ويُفترض أن الملخص المُدخل " "قد حُسب باستخدام SHA256." #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& #include Eopenssl/evp.hE\n" "\\& #include Eopenssl/rsa.hE\n" "\\&\n" "\\& EVP_PKEY_CTX *ctx;\n" "\\& /* md is a SHA-256 digest in this example. */\n" "\\& unsigned char *md, *sig;\n" "\\& size_t mdlen = 32, siglen;\n" "\\& EVP_PKEY *signing_key;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes signing_key and md are set up before the next\n" "\\& * step. signing_key must be an RSA private key and md must\n" "\\& * point to the SHA-256 digest to be signed.\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n" "\\& alg = EVP_SIGNATURE_fetch(NULL, \"RSA-SHA256\", NULL);\n" "\\&\n" "\\& if (ctx == NULL)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_sign_init_ex2(ctx, alg, NULL) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Determine buffer length */\n" "\\& if (EVP_PKEY_sign(ctx, NULL, &siglen, md, mdlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& sig = OPENSSL_malloc(siglen);\n" "\\&\n" "\\& if (sig == NULL)\n" "\\& /* malloc failure */\n" "\\&\n" "\\& if (EVP_PKEY_sign(ctx, sig, &siglen, md, mdlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Signature is siglen bytes written to buffer sig */\n" msgstr "" "\\& #include Eopenssl/evp.hE\n" "\\& #include Eopenssl/rsa.hE\n" "\\&\n" "\\& EVP_PKEY_CTX *ctx;\n" "\\& /* md is a SHA-256 digest in this example. */\n" "\\& unsigned char *md, *sig;\n" "\\& size_t mdlen = 32, siglen;\n" "\\& EVP_PKEY *signing_key;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes signing_key and md are set up before the next\n" "\\& * step. signing_key must be an RSA private key and md must\n" "\\& * point to the SHA-256 digest to be signed.\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n" "\\& alg = EVP_SIGNATURE_fetch(NULL, \"RSA-SHA256\", NULL);\n" "\\&\n" "\\& if (ctx == NULL)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_sign_init_ex2(ctx, alg, NULL) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Determine buffer length */\n" "\\& if (EVP_PKEY_sign(ctx, NULL, &siglen, md, mdlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& sig = OPENSSL_malloc(siglen);\n" "\\&\n" "\\& if (sig == NULL)\n" "\\& /* malloc failure */\n" "\\&\n" "\\& if (EVP_PKEY_sign(ctx, sig, &siglen, md, mdlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Signature is siglen bytes written to buffer sig */\n" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RSA-SHA256, one-shot" msgstr "RSA-SHA256، طلقة واحدة" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Sign a document with RSA-SHA256 using one-shot functions. To be noted is " "that RSA-SHA256 is assumed to be an implementation of " "\\&CW<\\*(C`sha256WithRSAEncryption\\*(C'>, for which the padding is pre-" "determined to be \\&B." msgstr "" "وقع مستندًا باستخدام RSA-SHA256 باستخدام دوال اللقطة الواحدة. يُلاحظ أن RSA-" "SHA256 يُفترض أن يكون تطبيقًا لـ \\&CW<\\*(C`sha256WithRSAEncryption\\*(C'>، " "حيث يكون الحشو محددًا مسبقًا ليكون \\&B." #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& #include Eopenssl/evp.hE\n" "\\& #include Eopenssl/rsa.hE\n" "\\&\n" "\\& EVP_PKEY_CTX *ctx;\n" "\\& /* in is the input in this example. */\n" "\\& unsigned char *in, *sig;\n" "\\& /* inlen is the length of the input in this example. */\n" "\\& size_t inlen, siglen;\n" "\\& EVP_PKEY *signing_key;\n" "\\& EVP_SIGNATURE *alg;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes signing_key, in and inlen are set up before\n" "\\& * the next step. signing_key must be an RSA private key,\n" "\\& * in must point to data to be digested and signed, and\n" "\\& * inlen must be the size of the data in bytes.\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n" "\\& alg = EVP_SIGNATURE_fetch(NULL, \"RSA-SHA256\", NULL);\n" "\\&\n" "\\& if (ctx == NULL || alg == NULL)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_sign_message_init(ctx, alg, NULL) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Determine sig buffer length */\n" "\\& if (EVP_PKEY_sign(ctx, NULL, &siglen, in, inlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& sig = OPENSSL_malloc(siglen);\n" "\\&\n" "\\& if (sig == NULL)\n" "\\& /* malloc failure */\n" "\\&\n" "\\& if (EVP_PKEY_sign(ctx, sig, &siglen, in, inlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Signature is siglen bytes written to buffer sig */\n" msgstr "" "\\& #include Eopenssl/evp.hE\n" "\\& #include Eopenssl/rsa.hE\n" "\\&\n" "\\& EVP_PKEY_CTX *ctx;\n" "\\& /* in is the input in this example. */\n" "\\& unsigned char *in, *sig;\n" "\\& /* inlen is the length of the input in this example. */\n" "\\& size_t inlen, siglen;\n" "\\& EVP_PKEY *signing_key;\n" "\\& EVP_SIGNATURE *alg;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes signing_key, in and inlen are set up before\n" "\\& * the next step. signing_key must be an RSA private key,\n" "\\& * in must point to data to be digested and signed, and\n" "\\& * inlen must be the size of the data in bytes.\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n" "\\& alg = EVP_SIGNATURE_fetch(NULL, \"RSA-SHA256\", NULL);\n" "\\&\n" "\\& if (ctx == NULL || alg == NULL)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_sign_message_init(ctx, alg, NULL) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Determine sig buffer length */\n" "\\& if (EVP_PKEY_sign(ctx, NULL, &siglen, in, inlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& sig = OPENSSL_malloc(siglen);\n" "\\&\n" "\\& if (sig == NULL)\n" "\\& /* malloc failure */\n" "\\&\n" "\\& if (EVP_PKEY_sign(ctx, sig, &siglen, in, inlen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Signature is siglen bytes written to buffer sig */\n" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RSA-SHA256, using update and final" msgstr "RSA-SHA256، باستخدام التحديث والنهاية" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This is the same as the previous example, but allowing stream-like " "functionality." msgstr "هذا مماثل للمثال السابق، لكن مع السماح بوظيفية شبيهة بالدفق." #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& #include Eopenssl/evp.hE\n" "\\& #include Eopenssl/rsa.hE\n" "\\&\n" "\\& EVP_PKEY_CTX *ctx;\n" "\\& /* in is the input in this example. */\n" "\\& unsigned char *in, *sig;\n" "\\& /* inlen is the length of the input in this example. */\n" "\\& size_t inlen, siglen;\n" "\\& EVP_PKEY *signing_key;\n" "\\& EVP_SIGNATURE *alg;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes signing_key, in and inlen are set up before\n" "\\& * the next step. signing_key must be an RSA private key,\n" "\\& * in must point to data to be digested and signed, and\n" "\\& * inlen must be the size of the data in bytes.\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n" "\\& alg = EVP_SIGNATURE_fetch(NULL, \"RSA-SHA256\", NULL);\n" "\\&\n" "\\& if (ctx == NULL || alg == NULL)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_sign_message_init(ctx, alg, NULL) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& while (inlen E 0) {\n" "\\& if (EVP_PKEY_sign_message_update(ctx, in, inlen)) E= 0)\n" "\\& /* Error */\n" "\\& if (inlen E 256) {\n" "\\& inlen -= 256;\n" "\\& in += 256;\n" "\\& } else {\n" "\\& inlen = 0;\n" "\\& }\n" "\\& }\n" "\\&\n" "\\& /* Determine sig buffer length */\n" "\\& if (EVP_PKEY_sign_message_final(ctx, NULL, &siglen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& sig = OPENSSL_malloc(siglen);\n" "\\&\n" "\\& if (sig == NULL)\n" "\\& /* malloc failure */\n" "\\&\n" "\\& if (EVP_PKEY_sign_message_final(ctx, sig, &siglen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Signature is siglen bytes written to buffer sig */\n" msgstr "" "\\& #include Eopenssl/evp.hE\n" "\\& #include Eopenssl/rsa.hE\n" "\\&\n" "\\& EVP_PKEY_CTX *ctx;\n" "\\& /* in is the input in this example. */\n" "\\& unsigned char *in, *sig;\n" "\\& /* inlen is the length of the input in this example. */\n" "\\& size_t inlen, siglen;\n" "\\& EVP_PKEY *signing_key;\n" "\\& EVP_SIGNATURE *alg;\n" "\\&\n" "\\& /*\n" "\\& * NB: assumes signing_key, in and inlen are set up before\n" "\\& * the next step. signing_key must be an RSA private key,\n" "\\& * in must point to data to be digested and signed, and\n" "\\& * inlen must be the size of the data in bytes.\n" "\\& */\n" "\\& ctx = EVP_PKEY_CTX_new(signing_key, NULL /* no engine */);\n" "\\& alg = EVP_SIGNATURE_fetch(NULL, \"RSA-SHA256\", NULL);\n" "\\&\n" "\\& if (ctx == NULL || alg == NULL)\n" "\\& /* Error occurred */\n" "\\& if (EVP_PKEY_sign_message_init(ctx, alg, NULL) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& while (inlen E 0) {\n" "\\& if (EVP_PKEY_sign_message_update(ctx, in, inlen)) E= 0)\n" "\\& /* Error */\n" "\\& if (inlen E 256) {\n" "\\& inlen -= 256;\n" "\\& in += 256;\n" "\\& } else {\n" "\\& inlen = 0;\n" "\\& }\n" "\\& }\n" "\\&\n" "\\& /* Determine sig buffer length */\n" "\\& if (EVP_PKEY_sign_message_final(ctx, NULL, &siglen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& sig = OPENSSL_malloc(siglen);\n" "\\&\n" "\\& if (sig == NULL)\n" "\\& /* malloc failure */\n" "\\&\n" "\\& if (EVP_PKEY_sign_message_final(ctx, sig, &siglen) E= 0)\n" "\\& /* Error */\n" "\\&\n" "\\& /* Signature is siglen bytes written to buffer sig */\n" #. 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\\|(3), " "\\&B\\|(3)" msgstr "" "\\&B\\|(3), \\&B\\|(3), " "\\&B\\|(3), \\&B\\|(3), " "\\&B\\|(3), \\&B\\|(3), " "\\&B\\|(3)" #. 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 added in " "OpenSSL 1.0.0." msgstr "" "أُضيفت الدالتان B و B في OpenSSL 1.0.0." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The B function was added in OpenSSL 3.0." msgstr "الدالة B أُضيفت في OpenSSL 3.0." #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The B, B, " "\\&B and B " "functions where added in OpenSSL 3.4." msgstr "" "أُضيفت الدوال B و B و " "B و \\&B في " "OpenSSL 3.4." #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "COPYRIGHT" msgstr "حقوق النسخ" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Copyright 2006-2025 The OpenSSL Project Authors. All Rights Reserved." msgstr "حقوق النشر 2006-2025 لمؤلفي مشروع OpenSSL. جميع الحقوق محفوظة." #. 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 "" "مرخص بموجب رخصة Apache 2.0 (المشار إليها فيما يلي بـ ”الرخصة“). لا يجوز لك " "استخدام هذا الملف إلا وفقًا لشروط الرخصة. يمكنك الحصول على نسخة منها في " "الملف LICENSE الموجود في حزمة التوزيع المصدرية أو على الرابط Ehttps://" "www.openssl.org/source/license.htmlE." #. ======================================================================== #. type: IX #: debian-trixie debian-unstable #, no-wrap msgid "EVP_PKEY_SIGN 3SSL" msgstr "EVP_PKEY_SIGN 3ssl" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr "3.5.6" #. type: Plain text #: debian-trixie debian-unstable msgid "" "\\&B adds I bytes from I to the " "data to be processed for signature. The signature algorithm specification " "and implementation determine how the input bytes are processed and if " "there's a limit on the total size of the input. See \"NOTES\" below for a " "deeper explanation." msgstr "" "\\&B يُضيف I بايت من I إلى " "البيانات المُراد معالجتها للتوقيع. يُحدد مواصفات وتنفيذ خوارزمية التوقيع كيفية " "معالجة بايتات الإدخال وما إذا كان هناك حد للحجم الكلي للإدخال. انظر " "\"ملاحظات\" أدناه لشرح أعمق." #. type: Plain text #: debian-trixie debian-unstable msgid "" "\\&B signs the processed data and places the " "data in \\&I, and the number of signature bytes in I<*siglen>, if the " "number of bytes doesn't surpass the size given by I. \\&I may " "be NULL, and in that case, only I<*siglen> is updated with the number of " "signature bytes." msgstr "" "\\&B يُوقع البيانات المُعالجة ويضع البيانات في " "\\&I، وعدد بايتات التوقيع في I<*siglen>، إذا لم يتجاوز عدد البايتات " "الحجم المُعطى بواسطة I. يمكن أن يكون \\&I NULL، وفي هذه الحالة، " "يُحدث فقط I<*siglen> بعدد بايتات التوقيع." #. type: Plain text #: debian-trixie debian-unstable msgid "" "The functions described here can't be used to combine separate algorithms. " "In particular, neither B\\|(3) nor the " "B parameter \"digest\" (B) can be " "used to combine a signature algorithm with a hash algorithm to process the " "input. In other words, it's not possible to specify a I pre-loaded " "with an RSA pkey, or an I that fetched CW<\\*(C`RSA\\*(C'> and try to " "specify SHA256 separately to get the functionality of RSA-SHA256. If " "combining algorithms in that manner is desired, please use " "B\\|(3) and associated functions." msgstr "" "لا يمكن استخدام الدوال الموصوفة هنا لدمج خوارزميات منفصلة. على وجه الخصوص، " "لا يمكن استخدام B\\|(3) ولا مُعامل " "B \"digest\" (B) لدمج خوارزمية " "توقيع مع خوارزمية تجزئة لمعالجة الإدخال. بعبارة أخرى، ليس من الممكن تحديد " "I مُحمّل مسبقًا بمفتاح RSA، أو I جلب CW<\\*(C`RSA\\*(C'> ومحاولة " "تحديد SHA256 بشكل منفصل للحصول على وظيفة RSA-SHA256. إذا كان دمج الخوارزميات " "بهذه الطريقة مرغوبًا، يُرجى استخدام B\\|(3) والدوال " "المرتبطة." #. type: Plain text #: debian-trixie debian-unstable msgid "" "When initialized using B, it's not possible to " "call B multiple times." msgstr "" "عند التهيئة باستخدام B، ليس من الممكن استدعاء " "B عدة مرات."