<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, Apr 5, 2022, 07:38 Hans Leidekker <<a href="mailto:hans@codeweavers.com" target="_blank" rel="noreferrer">hans@codeweavers.com</a>> wrote:<br></div><div dir="ltr" class="gmail_attr">> <span style="font-family:sans-serif">We don't ERR on invalid user input.</span></div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">Sorry, I didn't know, this was based on the existing code in ncrypt.</div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr"><span style="font-family:sans-serif">> I think it would better to implement this on top of BCryptEnumAlgorithms().</span><br style="font-family:sans-serif"><span style="font-family:sans-serif">> Also note that you can't free provider here, it's > owned by the caller.</span></div><div dir="ltr" class="gmail_attr"><span style="font-family:sans-serif"><br></span></div><div dir="ltr" class="gmail_attr"><span style="font-family:sans-serif">This is actually what I had originally and I used a for loop to iterate through the list to see if the algid matches. But doing this provider was not used. I thought this would be considered incorrect. I'm not sure what to do with provider.</span></div></div></div>