Browse Prior Art Database

Test Cases for HMAC-RIPEMD160 and HMAC-RIPEMD128 (RFC2286)

IP.com Disclosure Number: IPCOM000002848D
Original Publication Date: 1998-Feb-01
Included in the Prior Art Database: 2000-Sep-13
Document File: 6 page(s) / 11K

Publishing Venue

Internet Society Requests For Comment (RFCs)

Related People

J. Kapp: AUTHOR

Abstract

This document provides two sets of test cases for HMAC-RIPEMD160 and HMAC-RIPEMD128, respectively. HMAC-RIPEMD160 and HMAC-RIPEMD128 are two constructs of the HMAC [HMAC] message authentication function using the RIPEMD-160 and RIPEMD-128 [RIPE] hash functions. The test cases and results provided in this document are meant to be used as a conformance test for HMAC-RIPEMD160 and HMAC-RIPEMD128 implementations.

This text was extracted from a ASCII Text document.
This is the abbreviated version, containing approximately 27% of the total text.

Network Working Group J. Kapp

Request for Comments: 2286 Reaper Technologies

Category: Informational February 1998

Test Cases for HMAC-RIPEMD160 and HMAC-RIPEMD128

Status of this Memo

This memo provides information for the Internet community. It does

not specify an Internet standard of any kind. Distribution of this

memo is unlimited.

Copyright Notice

Copyright (C) The Internet Society (1998). All Rights Reserved.

Abstract

This document provides two sets of test cases for HMAC-RIPEMD160 and

HMAC-RIPEMD128, respectively. HMAC-RIPEMD160 and HMAC-RIPEMD128 are

two constructs of the HMAC [HMAC] message authentication function

using the RIPEMD-160 and RIPEMD-128 [RIPE] hash functions. The test

cases and results provided in this document are meant to be used as a

conformance test for HMAC-RIPEMD160 and HMAC-RIPEMD128

implementations.

1. Introduction

The general method for constructing a HMAC message authentication

function using a particular hash function is described in section 2

of [HMAC].

In sections 2 and 3 test cases for HMAC-RIPEMD160 and HMAC-RIPEMD128,

respectively are provided. Each case includes the key, the data, and

the result. The values of keys and data are either hexadecimal

numbers (prefixed by "0x") or ASCII character strings in double

quotes. If a value is an ASCII character string, then the HMAC

computation for the corresponding test case DOES NOT include the

trailing null character ('\0') in the string.

The C source code of the functions used to generate HMAC-RIPEMD160

and HMAC-RIPEMD128 results is listed in the Appendix. Please Note

that the functions provided are implemented in such a way as to be

simple and easy to understand as a result they are not optimized in

any way. The C source code for computing HMAC-MD5 can be found in

[MD5].

2. Test Cases for HMAC-RIPEMD160

test_case = 1

key = 0x0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b

key_len = 20

data = "Hi There"

data_len = 8

digest = 0x24cb4bd67d20fc1a5d2ed7732dcc39377f0a5668

test_case = 2

key = "Jefe"

key_len = 4

data = "what do ya want for nothing?"

data_len = 28

digest = 0xdda6c0213a485a9e24f4742064a7f033b43c4069

test_case = 3

key = 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

key_len = 20

data = 0xdd repeated 50 times

data_len = 50

digest = 0xb0b105360de759960ab4f35298e116e295d8e7c1

test_case = 4

key = 0x0102030405060708090a0b0c0d0e0f10111213141516171819

key_len = 25

data = 0xcd repeated 50 times

data_len = 50

digest = 0xd5ca862f4d21d5e610e18b4cf1beb97a4365ecf4

test_case = 5

key = 0x0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c

key_len = 20

data = "Te...