<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/buffer/buffer.c, branch OPENBSD_6_8_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2017-05-02T03:59:45+00:00</updated>
<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>Simplify/clean up BUF_MEM_grow_clean().</title>
<updated>2017-04-09T15:06:20+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2017-04-09T15:06:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=61a0ac2c484da4166c337dbca9320e02b154e878'/>
<id>urn:sha1:61a0ac2c484da4166c337dbca9320e02b154e878</id>
<content type='text'>
ok beck@
</content>
</entry>
<entry>
<title>With recallocarray() BUF_MEM_grow() is essentially the same as</title>
<updated>2017-04-09T15:03:54+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2017-04-09T15:03:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c18a3c3d8006e8fe739bdbf116e38519ac9c22fe'/>
<id>urn:sha1:c18a3c3d8006e8fe739bdbf116e38519ac9c22fe</id>
<content type='text'>
BUF_MEM_grow_clean() (the only difference is clearing on internal down
sizing), so make it a wrapper.

ok beck@ deraadt@
</content>
</entry>
<entry>
<title>Convert BUF_MEM_grow() and BUF_MEM_grow_clean() to recallocarray(),</title>
<updated>2017-03-16T13:29:56+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2017-03-16T13:29:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=66f094ce01d467fcd73cec6745bae67a846e549a'/>
<id>urn:sha1:66f094ce01d467fcd73cec6745bae67a846e549a</id>
<content type='text'>
ensuring that the buffer contents are zeroed on allocation and not leaked
when resizing.

It is worth noting that BUF_MEM_grow_clean() already did this manually by
avoiding realloc().

ok beck@ inoguchi@
</content>
</entry>
<entry>
<title>Use calloc() instead of malloc() followed by manually zeroing fields.</title>
<updated>2017-03-16T13:15:06+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2017-03-16T13:15:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b4dddea8c97475f1939497c762f59188eef7c9c3'/>
<id>urn:sha1:b4dddea8c97475f1939497c762f59188eef7c9c3</id>
<content type='text'>
ok beck@ inoguchi@
</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>Only import cryptlib.h in the four source files that actually need it.</title>
<updated>2014-07-11T08:44:49+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2014-07-11T08:44:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=74e2c009c83ad374bd6acdcfc376a384e25ab007'/>
<id>urn:sha1:74e2c009c83ad374bd6acdcfc376a384e25ab007</id>
<content type='text'>
Remove the openssl public includes from cryptlib.h and add a small number
of includes into the source files that actually need them. While here,
also sort/group/tidy the includes.

ok beck@ miod@
</content>
</entry>
<entry>
<title>Stop including standard headers via cryptlib.h - pull in the headers that</title>
<updated>2014-07-10T13:58:23+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2014-07-10T13:58:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c917c683bc93c68fbf4310ac181f7906e76b3c94'/>
<id>urn:sha1:c917c683bc93c68fbf4310ac181f7906e76b3c94</id>
<content type='text'>
are needed in the source files that actually require them.

ok beck@ miod@
</content>
</entry>
<entry>
<title>Replace memset(a, 0, ...); free(a); by explicit_bzero(a, ...); free(a); in</title>
<updated>2014-07-09T16:51:09+00:00</updated>
<author>
<name>miod</name>
<email></email>
</author>
<published>2014-07-09T16:51:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a2694938f51e09289418ebb0c543b181fd4d929b'/>
<id>urn:sha1:a2694938f51e09289418ebb0c543b181fd4d929b</id>
<content type='text'>
fear a smartass-optimizing compiler decides memset is useless immediately
before free().

ok jsing@ deraadt@ tedu@
</content>
</entry>
<entry>
<title>tags as requested by miod and tedu</title>
<updated>2014-06-12T15:49:31+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2014-06-12T15:49:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=59f4f2c61d71e266d37dd2fc97615b3fd35b4721'/>
<id>urn:sha1:59f4f2c61d71e266d37dd2fc97615b3fd35b4721</id>
<content type='text'>
</content>
</entry>
</feed>
