<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — WolfSSL services / callbacks to decrypt received applicative message]]></title>
		<link>https://www.wolfssl.com/forums/topic2150-wolfssl-services-callbacks-to-decrypt-received-applicative-message.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2150.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in WolfSSL services / callbacks to decrypt received applicative message.]]></description>
		<lastBuildDate>Thu, 01 Aug 2024 20:05:58 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: WolfSSL services / callbacks to decrypt received applicative message]]></title>
			<link>https://www.wolfssl.com/forums/post7789.html#p7789</link>
			<description><![CDATA[<p>Hello Philippe,</p><p>It looks like you are asking for a set of zero-copy callbacks, does that sound correct?<br />If so, we don&#039;t currently support this, we would like to add support but it would take significant time.</p><p>Please contact us at support [AT] wolfssl [DOT] com to discuss this further.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Thu, 01 Aug 2024 20:05:58 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7789.html#p7789</guid>
		</item>
		<item>
			<title><![CDATA[WolfSSL services / callbacks to decrypt received applicative message]]></title>
			<link>https://www.wolfssl.com/forums/post7788.html#p7788</link>
			<description><![CDATA[<p>Hello</p><p>For now I am using wolfSSL interfaces to send (encrypt) and receive (decrypt) applicative messages in a socket like way. I mean by that :<br />- I provided callbacks to wolfSSL for those actions via the wolfSSL_CTX_SetIORecv() and wolfSSL_CTX_SetIOSend() to get/set&nbsp; data from/to communication media side <br />- And I am calling wolfSSL_read() and wolfSSL_write() from application side of wolfSSL lib</p><p>So my application calls wolfSSL_write() to encrypt data that will cause a callback call that will post the encrypted applicative message to the sending media ... <br />And my application calls wolfSSL_read() for wolfssL to check via the receiving callback if something has been received and if so, decrypts it and return it back to my application ...</p><p>But this works in a socket like way, with buffer where the sending callback posts to and the receiving callback reads from (i.e. the socket like&nbsp; mechanism)....</p><br /><p>Is there a way to invert the mechanism for the receving side ...</p><br /><p>I mean my SW receives message from the peer ... <br />Instead of putting it in a buffer .. and calling wolfSSL_read() that will call my receving callback that will return the decrypted messages ... (this means I need a buffer where I put received encrypted messages ... difficult to dimension it ...)<br />So instead of this, is there a way to configure wolfSSL the other way for reception ...<br />I mean I call a wolfSSL service to directly send recevied encrypted data to wolfSSL&nbsp; ... and once decrypted, colffSSL calls a callback to send it ot the appli ... This way, I wouldn&#039;t need an intermediary&nbsp; buffer in reception ...</p><p>I agree that 95 % of applicatiosn should work like my code is currently implemented as it is a socket like way ... but my comm media environment is not socket like at all ... I do not have socket acting as buffers for the callbacks called by wolfSSL_read() and wolfSSL_write(), so I am impelmenting myself buffers in front of the callbacks to artificially simlulate a socket like env ... </p><p>So I am wondering if the reception side could work the other way ... A service to directly send the encrypted received message to wolfSSL and wolfSSL calling a callback to provide it to my application.</p><p>Thanks in advance.</p><p>Philippe Monnie</p>]]></description>
			<author><![CDATA[null@example.com (philipm)]]></author>
			<pubDate>Thu, 01 Aug 2024 13:06:00 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7788.html#p7788</guid>
		</item>
	</channel>
</rss>
