<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://hg.omfa.de/prosody-hg/</link>
    <language>en-us</language>

    <title>prosody-hg: util-src/crypto.c history</title>
    <description>util-src/crypto.c revision history</description>
    <item>
    <title>Merge 13.0-&gt;trunk</title>
    <link>http://hg.omfa.de/prosody-hg/log/d975d280baec/util-src/crypto.c</link>
    <description><![CDATA[Merge 13.0-&gt;trunk]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Mon, 25 May 2026 19:01:23 +0100</pubDate>
</item>
<item>
    <title>util.crypto: Use post-Lua 5.1 buffer API</title>
    <link>http://hg.omfa.de/prosody-hg/log/25beb66fab38/util-src/crypto.c</link>
    <description><![CDATA[util.crypto: Use post-Lua 5.1 buffer API<br/>
<br/>
Tha Lua 5.1 buffer API was frustrating to work with. luaL_prepbuffer() only<br/>
allocates LUAL_BUFFERSIZE - there is no way to request a specific size.<br/>
LUAL_BUFFERSIZE is set to BUFSIZ by default, which is generally 8192 bytes on<br/>
Linux, however it may vary between platforms.<br/>
<br/>
The variation means this buffer could potentially overflow (small BUFSIZ with<br/>
large signature).<br/>
<br/>
The Lua 5.2+ buffer API enables requesting a specific buffer size, so that's<br/>
what we do now.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Mon, 25 May 2026 15:11:47 +0100</pubDate>
</item>
<item>
    <title>util.crypto: Ensure signing parameter is a string</title>
    <link>http://hg.omfa.de/prosody-hg/log/af87d31dcae4/util-src/crypto.c</link>
    <description><![CDATA[util.crypto: Ensure signing parameter is a string<br/>
<br/>
lua_tostring() returns NULL if the specified value is missing or can't become<br/>
a string. luaL_checkstring() will raise an error.<br/>
<br/>
We prefer the latter behaviour, otherwise we end up passing NULL to OpenSSL.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Mon, 25 May 2026 14:51:15 +0100</pubDate>
</item>
<item>
    <title>util.crypto: Add missing include for openssl/rsa.h</title>
    <link>http://hg.omfa.de/prosody-hg/log/fbfc06c5f3a8/util-src/crypto.c</link>
    <description><![CDATA[util.crypto: Add missing include for openssl/rsa.h<br/>
<br/>
Apparently this used to compile, but when disabling deprecated APIs in openssl<br/>
it requires an explicit include (which makes sense, per the docs).]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Mon, 15 Dec 2025 12:14:27 +0000</pubDate>
</item>
<item>
    <title>util.crypto: Add more ECC methods</title>
    <link>http://hg.omfa.de/prosody-hg/log/fb970df95374/util-src/crypto.c</link>
    <description><![CDATA[util.crypto: Add more ECC methods<br/>
<br/>
pkey_meth_derive: to derive a shared symmetric key from two ECC keys<br/>
pkey_meth_public_raw: to get the raw form of the public key<br/>
import_public_ec_raw: to import the raw form of the public key<br/>
generate_p256_keypair: key generation for the P-256 curve]]></description>
    <author>&#83;&#116;&#101;&#112;&#104;&#101;&#110;&#32;&#80;&#97;&#117;&#108;&#32;&#87;&#101;&#98;&#101;&#114;&#32;&#60;&#115;&#105;&#110;&#103;&#112;&#111;&#108;&#121;&#109;&#97;&#64;&#115;&#105;&#110;&#103;&#112;&#111;&#108;&#121;&#109;&#97;&#46;&#110;&#101;&#116;&#62;</author>
    <pubDate>Tue, 29 Oct 2024 09:15:50 -0500</pubDate>
</item>
<item>
    <title>util: Add compat for prosody module name change to C sources</title>
    <link>http://hg.omfa.de/prosody-hg/log/a187600ec7d6/util-src/crypto.c</link>
    <description><![CDATA[util: Add compat for prosody module name change to C sources]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 17 Mar 2023 18:03:07 +0100</pubDate>
</item>
<item>
    <title>util.crypto: Preemptively silence 'strict-prototypes' warning</title>
    <link>http://hg.omfa.de/prosody-hg/log/0ed24f48b6a6/util-src/crypto.c</link>
    <description><![CDATA[util.crypto: Preemptively silence 'strict-prototypes' warning<br/>
<br/>
With `gcc-12 -Wstrict-prototypes` the following warning is shown:<br/>
<br/>
crypto.c:43:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]<br/>
   43 | static BIO* new_memory_BIO() {<br/>
      |             ^~~~~~~~~~~~~~]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 31 Jan 2023 16:27:55 +0100</pubDate>
</item>
<item>
    <title>util.crypto: Add support for AES-256-CTR</title>
    <link>http://hg.omfa.de/prosody-hg/log/d3ae47d8a7a7/util-src/crypto.c</link>
    <description><![CDATA[util.crypto: Add support for AES-256-CTR<br/>
<br/>
This is required by PASETO v3.local]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 13 Jan 2023 14:34:10 +0000</pubDate>
</item>
<item>
    <title>util.crypto, util.jwt: Generate consistent signature sizes (via padding)</title>
    <link>http://hg.omfa.de/prosody-hg/log/445f7bd6ffc4/util-src/crypto.c</link>
    <description><![CDATA[util.crypto, util.jwt: Generate consistent signature sizes (via padding)<br/>
<br/>
This fixes the signature parsing and building to work correctly. Sometimes<br/>
a signature was one or two bytes too short, and needed to be padded. OpenSSL<br/>
can do this for us.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 29 Sep 2022 23:15:39 +0100</pubDate>
</item>
<item>
    <title>util.crypto: Use Lua 5.2 API for predictable buffer size</title>
    <link>http://hg.omfa.de/prosody-hg/log/5dd00f806e32/util-src/crypto.c</link>
    <description><![CDATA[util.crypto: Use Lua 5.2 API for predictable buffer size<br/>
<br/>
In Lua 5.3 LUAL_BUFFERSIZE is a macro computed from sizeof and is thus<br/>
not known at pre-processing time, so this does not work.<br/>
<br/>
Since Lua 5.1 is no longer supported, we can use luaL_prepbuffsize()<br/>
which is available from Lua 5.2]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 11 Jul 2022 17:11:38 +0200</pubDate>
</item>
<item>
    <title>util.crypto: Use stack space buffers</title>
    <link>http://hg.omfa.de/prosody-hg/log/82bca7191f13/util-src/crypto.c</link>
    <description><![CDATA[util.crypto: Use stack space buffers<br/>
<br/>
Removes assumption that LUAL_BUFFERSIZE is known at pre-processing time,<br/>
which it is not in Lua 5.3 and 5.4, where it is a computed macro based<br/>
on sizeof.<br/>
<br/>
Allocation of stack space is safer and faster, no need to worry about<br/>
luaL_prepbuffer failing to allocate memory and skipping free()]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 11 Jul 2022 17:01:55 +0200</pubDate>
</item>
<item>
    <title>util.crypto: More digests for sign/verify, use macros for clarity/consistency</title>
    <link>http://hg.omfa.de/prosody-hg/log/f63176781940/util-src/crypto.c</link>
    <description><![CDATA[util.crypto: More digests for sign/verify, use macros for clarity/consistency]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sat, 02 Jul 2022 14:59:52 +0100</pubDate>
</item>
<item>
    <title>util.crypto: Friendlier error message on incorrect key types</title>
    <link>http://hg.omfa.de/prosody-hg/log/999663b4e39d/util-src/crypto.c</link>
    <description><![CDATA[util.crypto: Friendlier error message on incorrect key types]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sat, 02 Jul 2022 11:51:24 +0100</pubDate>
</item>
<item>
    <title>util.crypto: Add support for RSA signatures (PKCS1-v1.5 + PSS)</title>
    <link>http://hg.omfa.de/prosody-hg/log/916871447b2f/util-src/crypto.c</link>
    <description><![CDATA[util.crypto: Add support for RSA signatures (PKCS1-v1.5 + PSS)<br/>
<br/>
These are used by the RS*** and PS*** family of JOSE algorithms (e.g. in JWTs)]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sat, 02 Jul 2022 11:50:56 +0100</pubDate>
</item>
<item>
    <title>util.crypto: New wrapper for some operations in OpenSSL's libcrypto</title>
    <link>http://hg.omfa.de/prosody-hg/log/7c5afbdcbc77/util-src/crypto.c</link>
    <description><![CDATA[util.crypto: New wrapper for some operations in OpenSSL's libcrypto<br/>
<br/>
Specifically, ED25519 key generation/import/export, sign/verify operations,<br/>
and AES encrypt/decrypt.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 24 Jun 2022 16:56:16 +0100</pubDate>
</item>

  </channel>
</rss>
