Skip to content

Commit

Permalink
tidy up PR comments ARMmbed#3
Browse files Browse the repository at this point in the history
Signed-off-by: PARKJIHOON <[email protected]>
  • Loading branch information
jh6186 authored and RyoheiHagimoto committed Mar 31, 2020
1 parent 4953591 commit f3a5399
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
4 changes: 1 addition & 3 deletions features/mbedtls/targets/TARGET_Samsung/sha/sha256_alt.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ int mbedtls_internal_sha256_process(mbedtls_sha256_context *ctx,
ctx->state[i] += A[i];
}

return( 0 );
return 0;
}


Expand Down Expand Up @@ -450,8 +450,6 @@ int mbedtls_sha256_sw_update_ret(mbedtls_sha256_context *ctx, const unsigned cha

return 0;
}



#endif /* MBEDTLS_SHA256_ALT */
#endif /* MBEDTLS_SHA256_C */
19 changes: 15 additions & 4 deletions features/mbedtls/targets/TARGET_Samsung/sha/sha512_alt.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ int mbedtls_sha512_starts_ret(mbedtls_sha512_context *ctx, int is384)
memset(ctx, 0, sizeof(mbedtls_sha512_context));
ctx->is384 = is384;

return( 0 );
return 0;
}

/*
Expand Down Expand Up @@ -241,7 +241,18 @@ int mbedtls_sha512_finish_ret(mbedtls_sha512_context *ctx, unsigned char output[
return ret;
}

<<<<<<< cd37b0cf8e0be356705b7c17c0871c8f3acc03fa
}
=======
//! step 3 : get hash result from SSS
ret = mb_hash_final(&stHASH_Input, &ctx->pstDigest);

if (ret != SSSR_SUCCESS) {
return ret;
}

}
>>>>>>> tidy up PR comments #3
return 0;
}

Expand Down Expand Up @@ -381,7 +392,7 @@ int mbedtls_internal_sha512_process(mbedtls_sha512_context *ctx,
ctx->state[i] += A[i];
}

return( 0 );
return 0;
}

int mbedtls_sha512_sw_finish_ret(mbedtls_sha512_context *ctx,
Expand Down Expand Up @@ -444,7 +455,7 @@ int mbedtls_sha512_sw_finish_ret(mbedtls_sha512_context *ctx,
sha512_put_uint64_be(ctx->state[7], output, 56);
}

return( 0 );
return 0;
}

int mbedtls_sha512_sw_update_ret(mbedtls_sha512_context *ctx, const unsigned char *input, size_t ilen)
Expand Down Expand Up @@ -494,7 +505,7 @@ int mbedtls_sha512_sw_update_ret(mbedtls_sha512_context *ctx, const unsigned cha
memcpy((void *)(ctx->buffer + left), input, ilen);
}

return( 0 );
return 0;
}


Expand Down

0 comments on commit f3a5399

Please sign in to comment.