Lines Matching defs:hmac
1209 parse_hmac(const char *hmac) {
1213 REQUIRE(hmac != NULL);
1215 len = strlen(hmac);
1217 fatal("unknown key type '%.*s'", (int)len, hmac);
1218 strlcpy(buf, hmac, sizeof(buf));
1223 if (strcasecmp(buf, "hmac-md5") == 0) {
1225 } else if (strncasecmp(buf, "hmac-md5-", 9) == 0) {
1230 if (strcasecmp(buf, "hmac-sha1") == 0) {
1233 } else if (strncasecmp(buf, "hmac-sha1-", 10) == 0) {
1236 } else if (strcasecmp(buf, "hmac-sha224") == 0) {
1238 } else if (strncasecmp(buf, "hmac-sha224-", 12) == 0) {
1241 } else if (strcasecmp(buf, "hmac-sha256") == 0) {
1243 } else if (strncasecmp(buf, "hmac-sha256-", 12) == 0) {
1246 } else if (strcasecmp(buf, "hmac-sha384") == 0) {
1248 } else if (strncasecmp(buf, "hmac-sha384-", 12) == 0) {
1251 } else if (strcasecmp(buf, "hmac-sha512") == 0) {
1253 } else if (strncasecmp(buf, "hmac-sha512-", 12) == 0) {