View | Details | Raw Unified | Return to bug 1462 | Differences between
and this patch

Collapse All | Expand All

(-)umac.c.orig (-2 / +4 lines)
Lines 1043-1049 Link Here
1043
 */
1043
 */
1044
{
1044
{
1045
    UWORD bytes_hashed, bytes_remaining;
1045
    UWORD bytes_hashed, bytes_remaining;
1046
    UINT8 nh_result[STREAMS*sizeof(UINT64)];
1046
    UINT64 result_buf[STREAMS];
1047
    UINT8 *nh_result = (UINT8 *)&result_buf;
1047
    
1048
    
1048
    if (ctx->msg_len + len <= L1_KEY_LEN) {
1049
    if (ctx->msg_len + len <= L1_KEY_LEN) {
1049
        nh_update(&ctx->hash, (UINT8 *)input, len);
1050
        nh_update(&ctx->hash, (UINT8 *)input, len);
Lines 1095-1101 Link Here
1095
static int uhash_final(uhash_ctx_t ctx, u_char *res)
1096
static int uhash_final(uhash_ctx_t ctx, u_char *res)
1096
/* Incorporate any pending data, pad, and generate tag */
1097
/* Incorporate any pending data, pad, and generate tag */
1097
{
1098
{
1098
    UINT8 nh_result[STREAMS*sizeof(UINT64)];
1099
    UINT64 result_buf[STREAMS];
1100
    UINT8 *nh_result = (UINT8 *)&result_buf;
1099
1101
1100
    if (ctx->msg_len > L1_KEY_LEN) {
1102
    if (ctx->msg_len > L1_KEY_LEN) {
1101
        if (ctx->msg_len % L1_KEY_LEN) {
1103
        if (ctx->msg_len % L1_KEY_LEN) {

Return to bug 1462