Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
openCryptoki.1904
ocki-3.1_10_0001-ica-sha-update-empty-msg.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ocki-3.1_10_0001-ica-sha-update-empty-msg.patch of Package openCryptoki.1904
commit 2094b476ab7c14caecc37add2da43bba11b71bf5 Author: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com> Date: Fri Aug 15 12:48:46 2014 +0200 Fixed ica token's SHA update function when passing zero message size Signed-off-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com> --- opencryptoki.orig/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c 2014-01-27 15:01:58.000000000 -0700 +++ opencryptoki/usr/lib/pkcs11/ica_s390_stdll/ica_specific.c 2014-09-05 09:19:55.009080000 -0600 @@ -859,7 +859,7 @@ token_specific_sha_update( DIGEST_CONTEX * we're not stuck with 0 bytes when the MSG_PART_FINAL * comes in. - KEY */ - if (!(in_data_len % 64)) { + if (!(in_data_len % 64) && (in_data_len != 0)) { oc_sha_ctx->tail_len = 64; memcpy(oc_sha_ctx->tail, in_data + in_data_len - 64, 64); in_data_len -= 64;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor