George Chung wrote:
>
> Does anyone have some test vectors for the SSL MAC algorithms? Both MD5 and
> SHA?
>
> By test vectors, I mean a series of input paired with the expected MAC.
>
I don't have any as such but there are MD5 HMAC test vectors in RFC2104.
You could always roll your own. My PKCS#12 patch for SSLeay (see
http://www.drh-consultancy.demon.co.uk/pkcs12faq.html ) contains a
general HMAC function. Usage is identical to the EVP_Digest stuff:
void HMAC_Init(HMAC_CTX *hctx, unsigned char *key, int keylen, EVP_MD
*md_type);
void HMAC_Update(HMAC_CTX *hctx, unsigned char *data, unsigned int len);
void HMAC_Final(HMAC_CTX *hctx, unsigned char *md, unsigned int *len);
Steve.
--
************************************************
* Dr Stephen N. Henson. *
* Freelance Cryptographic Consultant. *
* Email: [EMAIL PROTECTED] *
************************************************
+-------------------------------------------------------------------------+
| Administrative requests should be sent to [EMAIL PROTECTED] |
| List service provided by Open Software Associates, http://www.osa.com/ |
+-------------------------------------------------------------------------+