RFC 2286 (rfc2286) - Page 1 of 7


Test Cases for HMAC-RIPEMD160 and HMAC-RIPEMD128



Alternative Format: Original Text Document



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].




Kapp                         Informational