<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:08:53 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[MONGOCRYPT-530] Implement parsing and decryption of v2 indexed equality values</title>
                <link>https://jira.mongodb.org/browse/MONGOCRYPT-530</link>
                <project id="17481" key="MONGOCRYPT">Libmongocrypt</project>
                    <description>&lt;p&gt;Implement the parsing and decryption of the new &lt;tt&gt;FLE2EqualityIndexedValueV2&lt;/tt&gt; payload format in libmongocrypt. This is similar to the server-side work done in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72908&quot; title=&quot;Create FLE2IndexedEqualityEncryptedValueV2 class and implement parse &amp;amp; serialization&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72908&quot;&gt;&lt;del&gt;SERVER-72908&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;libmongocrypt handles the parsing and decryption of indexed encrypted values (IEVs) in the &lt;tt&gt;_replace_FLE2IndexedEncryptedValue_with_plaintext()&lt;/tt&gt; function.&#160; This, in turn, calls the following functions that parse &amp;amp; decrypt the payload: &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;tt&gt;mc_FLE2IndexedEncryptedValue_parse()&lt;/tt&gt; - deserializes the payload&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;mc_FLE2IndexedEncryptedValue_add_S_Key()&lt;/tt&gt; - decrypts the server-encrypted ciphertext&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;mc_FLE2IndexedEqualityEncryptedValue_add_K_Key()&lt;/tt&gt; - decrypts the client-encrypted ciphertext&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;To handle the V2 payload formats, the above functions will have to be changed to handle the new wire format. Specifically:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;for v2 equality payloads, &lt;tt&gt;mc_FLE2IndexedEncryptedValue_parse()&lt;/tt&gt; will read the S_Key, original BSON type, and the InnerEncrypted blob; however, it must fail if the remainder of the buffer is shorter than one serialized FLE2TagAndEncryptedMetadataBlock.&lt;/li&gt;
	&lt;li&gt;for v2 ranged payloads, &lt;tt&gt;mc_FLE2IndexedEncryptedValue_parse()&lt;/tt&gt; will read the S_Key, original BSON type, edge count, and the InnerEncrypted blob; it must also fail if the remainder of the buffer is shorter than the size of a serialized FLE2TagAndEncryptedMetadataBlock times the edge count.&lt;/li&gt;
	&lt;li&gt;In &lt;tt&gt;mc_FLE2IndexedEncryptedValue_add_S_Key()&lt;/tt&gt;, the logic that parses the counter and the esc/ecc/ecocTokens from the decrypted blob should be removed (the specific function is &lt;tt&gt;mc_FLE2IndexedEncryptedValue_decrypt()&lt;/tt&gt;).&lt;/li&gt;
	&lt;li&gt;In &lt;tt&gt;mc_FLE2IndexedEqualityEncryptedValue_add_K_Key()&lt;/tt&gt;, the decryption of the client-encrypted data will have to use CBC, instead of CTR.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="2252136">MONGOCRYPT-530</key>
            <summary>Implement parsing and decryption of v2 indexed equality values</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="sara.golemon@mongodb.com">Sara Golemon</assignee>
                                    <reporter username="erwin.pe@mongodb.com">Erwin Pe</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 Feb 2023 15:10:36 +0000</created>
                <updated>Sat, 28 Oct 2023 10:25:56 +0000</updated>
                            <resolved>Fri, 17 Mar 2023 00:12:53 +0000</resolved>
                                                    <fixVersion>1.8.0</fixVersion>
                    <fixVersion>1.8.0-alpha0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="5286645" author="xgen-internal-githook" created="Mon, 20 Mar 2023 22:36:08 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Sara Golemon&apos;, &apos;email&apos;: &apos;sara.golemon@mongodb.com&apos;, &apos;username&apos;: &apos;sgolemon&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/MONGOCRYPT-530&quot; title=&quot;Implement parsing and decryption of v2 indexed equality values&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-530&quot;&gt;&lt;del&gt;MONGOCRYPT-530&lt;/del&gt;&lt;/a&gt; Implement FLE2IndexedEqualityEncryptedValueV2&lt;br/&gt;
Branch: shreyaskalyan/&lt;a href=&quot;https://jira.mongodb.org/browse/MONGOCRYPT-539&quot; title=&quot;Add unit test for the PayloadV2 parse &amp;amp; serialization interface&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-539&quot;&gt;&lt;del&gt;MONGOCRYPT-539&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/528102f74f9673fee5e3a5a74761ce9e62c3773f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/528102f74f9673fee5e3a5a74761ce9e62c3773f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5279513" author="xgen-internal-githook" created="Fri, 17 Mar 2023 00:10:12 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Sara Golemon&apos;, &apos;email&apos;: &apos;sara.golemon@mongodb.com&apos;, &apos;username&apos;: &apos;sgolemon&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/MONGOCRYPT-530&quot; title=&quot;Implement parsing and decryption of v2 indexed equality values&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-530&quot;&gt;&lt;del&gt;MONGOCRYPT-530&lt;/del&gt;&lt;/a&gt; Implement FLE2IndexedEqualityEncryptedValueV2&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/528102f74f9673fee5e3a5a74761ce9e62c3773f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/528102f74f9673fee5e3a5a74761ce9e62c3773f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5269079" author="sara.golemon" created="Mon, 13 Mar 2023 20:35:49 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/pull/594&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/pull/594&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="2270585">MONGOCRYPT-541</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2259401">SERVER-73851</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_21957" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Binding Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="22966"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2972</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1gbza:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="6920">Security 2023-03-06</customfieldvalue>
    <customfieldvalue id="6921">Security 2023-03-20</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>