Lines Matching refs:decode
200 /* see if we can find the SA, and if so, decode it */
351 * decode the form: SPINUM@IP <tab> ALGONAME:0xsecret
357 char *decode, struct sa_list *sa)
364 colon = strchr(decode, ':');
366 (*ndo->ndo_warning)(ndo, "failed to decode espsecret: %s\n", decode);
371 if (strlen(decode) > strlen("-hmac96") &&
372 !strcmp(decode + strlen(decode) - strlen("-hmac96"),
374 p = strstr(decode, "-hmac96");
378 if (strlen(decode) > strlen("-cbc") &&
379 !strcmp(decode + strlen(decode) - strlen("-cbc"), "-cbc")) {
380 p = strstr(decode, "-cbc");
383 evp = EVP_get_cipherbyname(decode);
386 (*ndo->ndo_warning)(ndo, "failed to find cipher algo %s\n", decode);
399 /* decode some hex! */
426 char *decode, struct sa_list *sa)
430 colon = strchr(decode, ':');
432 (*ndo->ndo_warning)(ndo, "failed to decode espsecret: %s\n", decode);
515 char *decode;
523 decode = spikey;
530 decode = line;
580 (*ndo->ndo_warning)(ndo, "print_esp: failed to decode spi# %s\n", foo);
591 (*ndo->ndo_warning)(ndo, "print_esp: can not decode IP# %s\n", spikey);
596 if (decode) {
598 while (isspace((unsigned char)*decode))
599 decode++;
601 if(!espprint_decode_encalgo(ndo, decode, &sa1)) {
737 /* see if we can find the SA, and if so, decode it */
753 /* see if we can find the SA, and if so, decode it */