# 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: BIO_f_md.3ssl.pot (PACKAGE VERSION) #-#-#-#-# # #. #-#-#-#-# archlinux: BIO_f_md.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. Required to disable full justification in groff 1.23.0. #. ======================================================================== #. type: IX #. #-#-#-#-# debian-trixie: BIO_f_md.3ssl.pot (PACKAGE VERSION) #-#-#-#-# #. ======================================================================== #. type: IX #. #-#-#-#-# debian-unstable: BIO_f_md.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 "BIO_F_MD 3ssl" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable #, no-wrap msgid "BIO_F_MD" 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 "" "BIO_f_md, BIO_set_md, BIO_get_md, BIO_get_md_ctx - message digest BIO filter" 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/bio.hE\n" "\\& #include Eopenssl/evp.hE\n" "\\&\n" "\\& const BIO_METHOD *BIO_f_md(void);\n" "\\& int BIO_set_md(BIO *b, EVP_MD *md);\n" "\\& int BIO_get_md(BIO *b, EVP_MD **mdp);\n" "\\& int BIO_get_md_ctx(BIO *b, EVP_MD_CTX **mdcp);\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B returns the message digest BIO method. This is a filter BIO " "that digests any data passed through it. It is a BIO wrapper for the digest " "routines B, B and B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Any data written or read through a digest BIO using B and " "\\&B is digested." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, if its B parameter is large enough finishes the " "digest calculation and returns the digest value. B is not " "supported." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B reinitialises a digest BIO." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B sets the message digest of BIO B to B: this must " "be called to initialize a digest BIO before any data is passed through it. " "It is a B macro." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B places a pointer to the digest BIOs digest method in " "B. It is a B macro." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B returns the digest BIOs context into B." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The context returned by B can be used in calls to " "B and also the signature routines B and " "B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The context returned by B is an internal context " "structure. Changes made to this context will affect the digest BIO itself " "and the context pointer will become invalid when the digest BIO is freed." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "After the digest has been retrieved from a digest BIO it must be " "reinitialized by calling B, or B before any more " "data is passed through it." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "If an application needs to call B or B through a " "chain containing digest BIOs then this can be done by prepending a buffering " "BIO." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Calling B will return the context and initialize the BIO " "state. This allows applications to initialize the context externally if the " "standard calls such as B are not sufficiently flexible." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "RETURN VALUES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "\\&B returns the digest BIO method." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "\\&B, B and B return 1 for success " "and E=0 for failure." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "EXAMPLES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The following example creates a BIO chain containing an SHA1 and MD5 digest " "BIO and passes the string \"Hello World\" through it. Error checking has " "been omitted for clarity." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& BIO *bio, *mdtmp;\n" "\\& char message[] = \"Hello World\";\n" "\\&\n" "\\& bio = BIO_new(BIO_s_null());\n" "\\& mdtmp = BIO_new(BIO_f_md());\n" "\\& BIO_set_md(mdtmp, EVP_sha1());\n" "\\& /*\n" "\\& * For BIO_push() we want to append the sink BIO and keep a note of\n" "\\& * the start of the chain.\n" "\\& */\n" "\\& bio = BIO_push(mdtmp, bio);\n" "\\& mdtmp = BIO_new(BIO_f_md());\n" "\\& BIO_set_md(mdtmp, EVP_md5());\n" "\\& bio = BIO_push(mdtmp, bio);\n" "\\& /* Note: mdtmp can now be discarded */\n" "\\& BIO_write(bio, message, strlen(message));\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "The next example digests data by reading through a chain instead:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& BIO *bio, *mdtmp;\n" "\\& char buf[1024];\n" "\\& int rdlen;\n" "\\&\n" "\\& bio = BIO_new_file(file, \"rb\");\n" "\\& mdtmp = BIO_new(BIO_f_md());\n" "\\& BIO_set_md(mdtmp, EVP_sha1());\n" "\\& bio = BIO_push(mdtmp, bio);\n" "\\& mdtmp = BIO_new(BIO_f_md());\n" "\\& BIO_set_md(mdtmp, EVP_md5());\n" "\\& bio = BIO_push(mdtmp, bio);\n" "\\& do {\n" "\\& rdlen = BIO_read(bio, buf, sizeof(buf));\n" "\\& /* Might want to do something with the data here */\n" "\\& } while (rdlen E 0);\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "This next example retrieves the message digests from a BIO chain and outputs " "them. This could be used with the examples above." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable #, no-wrap msgid "" "\\& BIO *mdtmp;\n" "\\& unsigned char mdbuf[EVP_MAX_MD_SIZE];\n" "\\& int mdlen;\n" "\\& int i;\n" "\\&\n" "\\& mdtmp = bio; /* Assume bio has previously been set up */\n" "\\& do {\n" "\\& EVP_MD *md;\n" "\\&\n" "\\& mdtmp = BIO_find_type(mdtmp, BIO_TYPE_MD);\n" "\\& if (!mdtmp)\n" "\\& break;\n" "\\& BIO_get_md(mdtmp, &md);\n" "\\& printf(\"%s digest\", OBJ_nid2sn(EVP_MD_get_type(md)));\n" "\\& mdlen = BIO_gets(mdtmp, mdbuf, EVP_MAX_MD_SIZE);\n" "\\& for (i = 0; i E mdlen; i++) printf(\":%02X\", mdbuf[i]);\n" "\\& printf(\"\\en\");\n" "\\& mdtmp = BIO_next(mdtmp);\n" "\\& } while (mdtmp);\n" "\\&\n" "\\& BIO_free_all(bio);\n" msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "BUGS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "The lack of support for B and the non standard behaviour of " "\\&B could be regarded as anomalous. It could be argued that " "B and B should be passed to the next BIO in the " "chain and digest the data passed through and that digests should be " "retrieved using a separate B call." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "HISTORY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "" "Before OpenSSL 1.0.0., the call to B would only work if " "the BIO was initialized first." msgstr "" #. type: IX #: archlinux debian-trixie debian-unstable #, no-wrap msgid "COPYRIGHT" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable msgid "Copyright 2000-2021 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 "BIO_F_MD 3SSL" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "3.5.6" msgstr ""