<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/ext/openssl/ossl_bn.c, branch v3_3_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/openssl] Implement Write Barrier for all OpenSSL types</title>
<updated>2023-06-18T16:57:09+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2023-03-13T08:51:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1965c09ee50b5202d45462cd8bc6224ca6e45ae9'/>
<id>1965c09ee50b5202d45462cd8bc6224ca6e45ae9</id>
<content type='text'>
The vast majority have no reference so it's just a matter of setting the flags.

For the couple exception, they have very little references so it's
easy.

https://github.com/ruby/openssl/commit/2c7c6de69e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The vast majority have no reference so it's just a matter of setting the flags.

For the couple exception, they have very little references so it's
easy.

https://github.com/ruby/openssl/commit/2c7c6de69e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/openssl] add document-method for BN#mod_inverse</title>
<updated>2022-10-17T14:38:35+00:00</updated>
<author>
<name>Ben Toews</name>
<email>benjamin.toews@gmail.com</email>
</author>
<published>2022-10-17T13:58:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7db29de008bbf06ce1dc2a1e9fd9c9684b31e325'/>
<id>7db29de008bbf06ce1dc2a1e9fd9c9684b31e325</id>
<content type='text'>
https://github.com/ruby/openssl/commit/5befde7519
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/openssl/commit/5befde7519
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/openssl] add BN#mod_sqrt</title>
<updated>2022-10-17T14:38:34+00:00</updated>
<author>
<name>Ben Toews</name>
<email>benjamin.toews@gmail.com</email>
</author>
<published>2022-10-17T13:31:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=149cb049f1d7f5fd2edf5ab467c33037ec993a47'/>
<id>149cb049f1d7f5fd2edf5ab467c33037ec993a47</id>
<content type='text'>
https://github.com/ruby/openssl/commit/4619ab3e76
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/openssl/commit/4619ab3e76
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/openssl] define BIGNUM_2cr macro for BN function that takes context and</title>
<updated>2022-10-17T14:38:34+00:00</updated>
<author>
<name>Ben Toews</name>
<email>benjamin.toews@gmail.com</email>
</author>
<published>2022-10-17T13:30:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e037731c9f840b0c74eb68a808a109fdef3c6d5e'/>
<id>e037731c9f840b0c74eb68a808a109fdef3c6d5e</id>
<content type='text'>
returns a BN

https://github.com/ruby/openssl/commit/4d0971c51c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
returns a BN

https://github.com/ruby/openssl/commit/4d0971c51c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/openssl] bn: expand BIGNUM_RAND and BIGNUM_RAND_RANGE macros</title>
<updated>2021-10-24T15:40:48+00:00</updated>
<author>
<name>Kazuki Yamaguchi</name>
<email>k@rhe.jp</email>
</author>
<published>2021-10-23T10:24:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e10dfdf6234ec4f0a11eeee91132d39cfaf6fd24'/>
<id>e10dfdf6234ec4f0a11eeee91132d39cfaf6fd24</id>
<content type='text'>
Now that BN.pseudo_rand{,_range} are alias, those macros are only used
once. Let's expand the macros for better readability.

https://github.com/ruby/openssl/commit/7c2fc00dee
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that BN.pseudo_rand{,_range} are alias, those macros are only used
once. Let's expand the macros for better readability.

https://github.com/ruby/openssl/commit/7c2fc00dee
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/openssl] bn: make BN.pseudo_rand{,_range} an alias of BN.rand{,_range}</title>
<updated>2021-10-24T15:40:48+00:00</updated>
<author>
<name>Kazuki Yamaguchi</name>
<email>k@rhe.jp</email>
</author>
<published>2021-03-20T15:20:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e19186707a78e6e739646dac1430dc3066cf9bad'/>
<id>e19186707a78e6e739646dac1430dc3066cf9bad</id>
<content type='text'>
BN_pseudo_rand() and BN_pseudo_rand_range() are deprecated in
OpenSSL 3.0. Since they are identical to their non-'pseudo' version
anyway, let's make them alias.

https://github.com/ruby/openssl/commit/2d34e85ddf
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BN_pseudo_rand() and BN_pseudo_rand_range() are deprecated in
OpenSSL 3.0. Since they are identical to their non-'pseudo' version
anyway, let's make them alias.

https://github.com/ruby/openssl/commit/2d34e85ddf
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/openssl] bn: use BN_check_prime() in OpenSSL::BN#prime{,_fasttest}?</title>
<updated>2021-10-24T15:40:45+00:00</updated>
<author>
<name>Kazuki Yamaguchi</name>
<email>k@rhe.jp</email>
</author>
<published>2020-02-21T21:37:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cfa4fa636efefddd70df82f1b0bf0d1c96bf1cf7'/>
<id>cfa4fa636efefddd70df82f1b0bf0d1c96bf1cf7</id>
<content type='text'>
In OpenSSL 3.0, BN_is_prime_ex() and BN_is_prime_fasttest_ex() are
deprecated in favor of BN_check_prime().

https://github.com/ruby/openssl/commit/90d51ef510
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In OpenSSL 3.0, BN_is_prime_ex() and BN_is_prime_fasttest_ex() are
deprecated in favor of BN_check_prime().

https://github.com/ruby/openssl/commit/90d51ef510
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/openssl] Add OpenSSL::BN#set_flags and #get_flags</title>
<updated>2021-07-18T08:45:02+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-02-16T09:21:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3d37e5d11cdf02ed433493126e195e194d4000dc'/>
<id>3d37e5d11cdf02ed433493126e195e194d4000dc</id>
<content type='text'>
Also, OpenSSL::BN::CONSTTIME is added.

OpenSSL itself had a feature that was vulnerable against a side-channel
attack. The OpenSSL authors determined that it was not a security issue,
and they have already fixed the issue by using BN_set_flags.

https://github.com/openssl/openssl/pull/13888

If a Ruby OpenSSL user was faced with a similar issue, they couldn't
prevent the issue because Ruby OpenSSL lacks a wrapper to BN_set_flags.
For the case, this change introduces the wrapper.

https://github.com/ruby/openssl/commit/1e565eba89
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also, OpenSSL::BN::CONSTTIME is added.

OpenSSL itself had a feature that was vulnerable against a side-channel
attack. The OpenSSL authors determined that it was not a security issue,
and they have already fixed the issue by using BN_set_flags.

https://github.com/openssl/openssl/pull/13888

If a Ruby OpenSSL user was faced with a similar issue, they couldn't
prevent the issue because Ruby OpenSSL lacks a wrapper to BN_set_flags.
For the case, this change introduces the wrapper.

https://github.com/ruby/openssl/commit/1e565eba89
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/openssl] bn: update documentation of OpenSSL::BN#initialize and #to_s</title>
<updated>2021-07-18T08:44:40+00:00</updated>
<author>
<name>Kazuki Yamaguchi</name>
<email>k@rhe.jp</email>
</author>
<published>2021-04-02T13:08:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=decce40da7ee5180a4093f794eacc1dc5fe8e814'/>
<id>decce40da7ee5180a4093f794eacc1dc5fe8e814</id>
<content type='text'>
Clarify that BN.new(str, 2) and bn.to_s(2) handles binary string in
big-endian, and the sign of the bignum is ignored.

Reference: https://github.com/ruby/openssl/issues/431

https://github.com/ruby/openssl/commit/6fae2bd612
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clarify that BN.new(str, 2) and bn.to_s(2) handles binary string in
big-endian, and the sign of the bignum is ignored.

Reference: https://github.com/ruby/openssl/issues/431

https://github.com/ruby/openssl/commit/6fae2bd612
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/openssl] BN.abs and BN uplus</title>
<updated>2021-07-18T08:44:39+00:00</updated>
<author>
<name>Rick Mark</name>
<email>rick.mark@coinbase.com</email>
</author>
<published>2021-04-01T19:29:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=01fcb8f45b28d9b33e04c9b9873e47276faf5581'/>
<id>01fcb8f45b28d9b33e04c9b9873e47276faf5581</id>
<content type='text'>
Adds standard math abs fuction and revises uplus to return a duplicated object due to BN mutability

https://github.com/ruby/openssl/commit/0321b1e945
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds standard math abs fuction and revises uplus to return a duplicated object due to BN mutability

https://github.com/ruby/openssl/commit/0321b1e945
</pre>
</div>
</content>
</entry>
</feed>
