isc-hmac-fixup.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 2010, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: isc-hmac-fixup.c,v 1.4 2010/03/10 02:17:52 marka Exp $ */
#include <config.h>
#define HMAC_LEN 64
int
unsigned char key[1024];
char secret[1024];
isc_region_t r;
if (argc != 3) {
"SHA256 | SHA384 | SHA512)\n");
return (1);
}
if (result != ISC_R_SUCCESS) {
return (1);
}
isc_buffer_usedregion(&buf, &r);
}
if (r.length > ISC_SHA1_DIGESTLENGTH) {
}
if (r.length > ISC_SHA224_DIGESTLENGTH) {
}
if (r.length > ISC_SHA256_DIGESTLENGTH) {
}
if (r.length > ISC_SHA384_DIGESTLENGTH) {
}
if (r.length > ISC_SHA512_DIGESTLENGTH) {
}
} else {
return (1);
}
if (result != ISC_R_SUCCESS) {
return (1);
}
return (0);
}