<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/crypto/c_src, branch OTP_R14B04</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>Revert "Support 'md2' hash in crypto:rsa_sign/3 and crypto:rsa_verify/4"</title>
<updated>2011-09-21T14:08:04+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2011-09-20T18:40:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=8d44ffaa66bf096a6679a7720f1f85af33f82668'/>
<id>8d44ffaa66bf096a6679a7720f1f85af33f82668</id>
<content type='text'>
This reverts commit 82897cc8f399fab832148711b586215c9a3f7af1.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 82897cc8f399fab832148711b586215c9a3f7af1.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'cr/md2-With-RSA-Encryption' into dev</title>
<updated>2011-09-20T08:33:04+00:00</updated>
<author>
<name>Henrik Nord</name>
<email>henrik@erlang.org</email>
</author>
<published>2011-09-20T08:32:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=4b18ef90369c52a9344b851025519f397ccb8543'/>
<id>4b18ef90369c52a9344b851025519f397ccb8543</id>
<content type='text'>
* cr/md2-With-RSA-Encryption:
  Document crypto:sha_mac_96/2 to compute an SHA MAC, not MD5
  Support md2WithRSAEncryption certificates in public_key
  Support 'md2' hash in crypto:rsa_sign/3 and crypto:rsa_verify/4

OTP-9554
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* cr/md2-With-RSA-Encryption:
  Document crypto:sha_mac_96/2 to compute an SHA MAC, not MD5
  Support md2WithRSAEncryption certificates in public_key
  Support 'md2' hash in crypto:rsa_sign/3 and crypto:rsa_verify/4

OTP-9554
</pre>
</div>
</content>
</entry>
<entry>
<title>Support 'md2' hash in crypto:rsa_sign/3 and crypto:rsa_verify/4</title>
<updated>2011-09-06T17:45:11+00:00</updated>
<author>
<name>Christian von Roques</name>
<email>roques@mti.ag</email>
</author>
<published>2011-09-06T17:23:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=82897cc8f399fab832148711b586215c9a3f7af1'/>
<id>82897cc8f399fab832148711b586215c9a3f7af1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix win32 OpenSSL static linking broken in 20c9d6e</title>
<updated>2011-08-11T10:53:03+00:00</updated>
<author>
<name>Dave Cottlehuber</name>
<email>dave@muse.net.nz</email>
</author>
<published>2011-08-11T01:21:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=52230a417ad005711876132d144b3fe8a72d7e8e'/>
<id>52230a417ad005711876132d144b3fe8a72d7e8e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright years</title>
<updated>2011-05-20T14:11:43+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>psyeugenic@gmail.com</email>
</author>
<published>2011-05-20T14:11:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=ad5a1519e74d79218c0dd2ef79a39d75bd0155bf'/>
<id>ad5a1519e74d79218c0dd2ef79a39d75bd0155bf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'sverker/crypto-aes-ctr-stream/OTP-9275' into dev</title>
<updated>2011-05-19T16:51:24+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2011-05-19T16:51:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=69d71bef9ce00c0982fc2a92adcad40b3968e166'/>
<id>69d71bef9ce00c0982fc2a92adcad40b3968e166</id>
<content type='text'>
* sverker/crypto-aes-ctr-stream/OTP-9275:
  Stepping vsn for R14B03
  Add true streaming AES (CTR) encryption and streaming HMAC operations
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* sverker/crypto-aes-ctr-stream/OTP-9275:
  Stepping vsn for R14B03
  Add true streaming AES (CTR) encryption and streaming HMAC operations
</pre>
</div>
</content>
</entry>
<entry>
<title>Add true streaming AES (CTR) encryption and streaming HMAC operations</title>
<updated>2011-05-18T13:44:47+00:00</updated>
<author>
<name>Travis Jensen</name>
<email>Travis.Jensen@gmail.com</email>
</author>
<published>2011-05-06T18:36:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=b74ff4f6df28405222752fb2b1089f11e96e5406'/>
<id>b74ff4f6df28405222752fb2b1089f11e96e5406</id>
<content type='text'>
The current crypto module implementations require all of the data
being encrypted or authenticated to be in memory at one time. When
trying to encrypt or authenticate a large file (on order of GBs),
this is problematic.

The implementation of AES CTR uses the same underlying implementation
as aes_ctr_[en|de]crypt, but hands the state back to the client
after every operation.

The HMAC implementation differs from the previous implementations of
sha_mac and md5_mac. The old implementations did not utilize the
OpenSSL HMAC implementation. In order to ensure that I didn't
implement something incorrectly, I chose to use the OpenSSL HMAC
implementation directly, since it handles streaming as well. This
has the added side benefit of allowing other hash functions to be
used as desired (for instances, I added support for ripemd160
hashing).

While I haven't done this, it seems like the existing md5_mac and
sha_mac functions could either be depricated or redefined in terms
of the new hmac_ functions.

Update AES CTR and HMAC streaming with code review input

Ensure that memcpy operations in hmac operations are being size
checked properly. Rename aes_ctr_XXX_with_state to
aes_ctr_stream_XXX. Remove redundant hmac_init_[sha|md5|ripemd160]
functions. Fix documentation for hmac_final_n.

Fix possible error using negative value as a marker on an unsigned int

Now, use a separate marker and add a unit test to test specifically for
a case where HashLen is larger than the underlying resultant hash.

Revert "Fix possible error using negative value as a marker on an unsigned int"

This reverts commit 59cb177aa96444c0fd3ace6d01f7b8a70dd69cc9.

Resolve buffer overflow posibility on an unsigned int.

Change handling the marker for HashLen to use the fact that a second
parameter that has to be the the HashLen was passed. Also, ensure
that HashLen parameter is positive.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The current crypto module implementations require all of the data
being encrypted or authenticated to be in memory at one time. When
trying to encrypt or authenticate a large file (on order of GBs),
this is problematic.

The implementation of AES CTR uses the same underlying implementation
as aes_ctr_[en|de]crypt, but hands the state back to the client
after every operation.

The HMAC implementation differs from the previous implementations of
sha_mac and md5_mac. The old implementations did not utilize the
OpenSSL HMAC implementation. In order to ensure that I didn't
implement something incorrectly, I chose to use the OpenSSL HMAC
implementation directly, since it handles streaming as well. This
has the added side benefit of allowing other hash functions to be
used as desired (for instances, I added support for ripemd160
hashing).

While I haven't done this, it seems like the existing md5_mac and
sha_mac functions could either be depricated or redefined in terms
of the new hmac_ functions.

Update AES CTR and HMAC streaming with code review input

Ensure that memcpy operations in hmac operations are being size
checked properly. Rename aes_ctr_XXX_with_state to
aes_ctr_stream_XXX. Remove redundant hmac_init_[sha|md5|ripemd160]
functions. Fix documentation for hmac_final_n.

Fix possible error using negative value as a marker on an unsigned int

Now, use a separate marker and add a unit test to test specifically for
a case where HashLen is larger than the underlying resultant hash.

Revert "Fix possible error using negative value as a marker on an unsigned int"

This reverts commit 59cb177aa96444c0fd3ace6d01f7b8a70dd69cc9.

Resolve buffer overflow posibility on an unsigned int.

Change handling the marker for HashLen to use the fact that a second
parameter that has to be the the HashLen was passed. Also, ensure
that HashLen parameter is positive.
</pre>
</div>
</content>
</entry>
<entry>
<title>Link OpenSSL libraries static on Windows</title>
<updated>2011-05-10T12:52:20+00:00</updated>
<author>
<name>Patrik Nyblom</name>
<email>pan@erlang.org</email>
</author>
<published>2011-05-10T10:30:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=20c9d6e23f3572873c32daf7053819a844427a4b'/>
<id>20c9d6e23f3572873c32daf7053819a844427a4b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Renamed the function strong_rand_uniform to strong_rand_mpint.</title>
<updated>2011-04-19T11:35:29+00:00</updated>
<author>
<name>Niclas Eklund</name>
<email>nick@erlang.org</email>
</author>
<published>2011-04-19T11:35:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=afe36b58bb77012f94b19213ed9602c2eb9fd420'/>
<id>afe36b58bb77012f94b19213ed9602c2eb9fd420</id>
<content type='text'>
Added some checks in crypto.erl and crypto.c.
Changed ssh_bits to use strong_rand_mpint.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added some checks in crypto.erl and crypto.c.
Changed ssh_bits to use strong_rand_mpint.
</pre>
</div>
</content>
</entry>
<entry>
<title>Adds NIFs for cryptographically strong random number generation.</title>
<updated>2011-04-15T13:49:42+00:00</updated>
<author>
<name>Niclas Eklund</name>
<email>nick@erlang.org</email>
</author>
<published>2011-04-15T13:49:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=f505644be64cd4844742b361a8ff411d70f4aa88'/>
<id>f505644be64cd4844742b361a8ff411d70f4aa88</id>
<content type='text'>
Also adds documentation and unit tests.

Thanks to Geoff Cant.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also adds documentation and unit tests.

Thanks to Geoff Cant.
</pre>
</div>
</content>
</entry>
</feed>
