<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/pem/pvkfmt.c, branch libressl-v3.4.1</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.4.1</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.4.1'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2019-07-08T11:56:18+00:00</updated>
<entry>
<title>Clean up pvkfmt.c</title>
<updated>2019-07-08T11:56:18+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2019-07-08T11:56:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=38918e2b1105203e3a43e4c44a53bf432952771c'/>
<id>urn:sha1:38918e2b1105203e3a43e4c44a53bf432952771c</id>
<content type='text'>
- Replace EVP_CIPHER_CTX_init with EVP_CIPHER_CTX_new and handle return value
- Replace EVP_CIPHER_CTX_cleanup with EVP_CIPHER_CTX_free
- Change two 'return -1;' to 'goto err;' for avoiding leak
- Remove the case if enclevel == 0
- Change enclevel checking to make more consistent
- Change all goto label to 'err' and insert space before goto label

ok and advise from tb@
</content>
</entry>
<entry>
<title>Fix pvk format processing in libcrypto</title>
<updated>2019-07-07T10:52:56+00:00</updated>
<author>
<name>inoguchi</name>
<email></email>
</author>
<published>2019-07-07T10:52:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b7ed3b2ab5936f64572047d1bcd708bbdeeb5a59'/>
<id>urn:sha1:b7ed3b2ab5936f64572047d1bcd708bbdeeb5a59</id>
<content type='text'>
- Return the valid pointer in i2b_PVK()
- Use EVP_Decrypt* instead of EVP_Encrypt*
- Fix error handling after BIO_write() in i2b_PVK_bio()

ok tb@
</content>
</entry>
<entry>
<title>Fix memory leak in i2b_PVK in error handling.</title>
<updated>2018-08-05T11:19:25+00:00</updated>
<author>
<name>bcook</name>
<email></email>
</author>
<published>2018-08-05T11:19:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2e290efb0ac101817d9da88a5b417f1b48cbe3fa'/>
<id>urn:sha1:2e290efb0ac101817d9da88a5b417f1b48cbe3fa</id>
<content type='text'>
Simplify parameter checks since this is only called from one place.
Found by Coverity, CID 183502.

ok beck@
</content>
</entry>
<entry>
<title>use freezero() instead of memset/explicit_bzero + free.  Substantially</title>
<updated>2017-05-02T03:59:45+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2017-05-02T03:59:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5904cc0e04409fde39a97e6580535da34eeb4291'/>
<id>urn:sha1:5904cc0e04409fde39a97e6580535da34eeb4291</id>
<content type='text'>
reduces conditional logic (-218, +82).

MOD_EXP_CTIME_MIN_CACHE_LINE_WIDTH cache alignment calculation bn/bn_exp.c
wasn'tt quite right.  Two other tricky bits with ASN1_STRING_FLAG_NDEF and
BN_FLG_STATIC_DATA where the condition cannot be collapsed completely.

Passes regress.  ok beck
</content>
</entry>
<entry>
<title>Send the function codes from the error functions to the bit bucket,</title>
<updated>2017-01-29T17:49:23+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2017-01-29T17:49:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d1f47bd292f36094480caa49ada36b99a69c59b0'/>
<id>urn:sha1:d1f47bd292f36094480caa49ada36b99a69c59b0</id>
<content type='text'>
as was done earlier in libssl. Thanks inoguchi@ for noticing
libssl had more reacharounds into this.
ok jsing@ inoguchi@
</content>
</entry>
<entry>
<title>Make explicit _ct and _nonct versions of bn_mod_exp funcitons that</title>
<updated>2017-01-21T09:38:59+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2017-01-21T09:38:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a0a595cda97de2b217b0582cfa601ee4c746bfce'/>
<id>urn:sha1:a0a595cda97de2b217b0582cfa601ee4c746bfce</id>
<content type='text'>
matter for constant time, and make the public interface only used
external to the library.

This moves us to a model where the important things are constant time
versions unless you ask for them not to be, rather than the opposite.
I'll continue with this method by method.

Add regress tests for same.
ok jsing@
</content>
</entry>
<entry>
<title>fix the rest of the read_ledword() calls used as lengths to be bounded.</title>
<updated>2016-03-02T14:28:14+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2016-03-02T14:28:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=98006793401fc106134ad5c3f3f490bcc7671b13'/>
<id>urn:sha1:98006793401fc106134ad5c3f3f490bcc7671b13</id>
<content type='text'>
inspired by guido vranken https://guidovranken.wordpress.com/2016/03/01/public-disclosure-malformed-private-keys-lead-to-heap-corruption-in-b2i_pvk_bio/
ok doug@
</content>
</entry>
<entry>
<title>bound lengths coming out of a pem file to something like reality</title>
<updated>2016-03-02T05:02:35+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2016-03-02T05:02:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4b2ecbbafcc28f5338cb1c6af81eedcaccedc4f4'/>
<id>urn:sha1:4b2ecbbafcc28f5338cb1c6af81eedcaccedc4f4</id>
<content type='text'>
ok deraadt@
</content>
</entry>
<entry>
<title>Correct spelling of OPENSSL_cleanse.</title>
<updated>2015-09-10T15:56:26+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2015-09-10T15:56:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=647569a51c1530d10e75e272f0982682f696caa7'/>
<id>urn:sha1:647569a51c1530d10e75e272f0982682f696caa7</id>
<content type='text'>
ok miod@
</content>
</entry>
<entry>
<title>Fix return paths with missing EVP_CIPHER_CTX_cleanup() calls.</title>
<updated>2015-05-15T11:00:14+00:00</updated>
<author>
<name>jsg</name>
<email></email>
</author>
<published>2015-05-15T11:00:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f8e03ddcf892381c04c6d2274d698a4db936d93b'/>
<id>urn:sha1:f8e03ddcf892381c04c6d2274d698a4db936d93b</id>
<content type='text'>
ok doug@
</content>
</entry>
</feed>
