Lines Matching refs:decode
294 /* see if we can find the SA, and if so, decode it */
410 * decode the form: SPINUM@IP <tab> ALGONAME:0xsecret
416 char *decode, struct sa_list *sa)
424 colon = strchr(decode, ':');
426 (*ndo->ndo_warning)(ndo, "failed to decode espsecret: %s\n", decode);
431 if (strlen(decode) > strlen("-hmac96") &&
432 !strcmp(decode + strlen(decode) - strlen("-hmac96"),
434 p = strstr(decode, "-hmac96");
438 if (strlen(decode) > strlen("-cbc") &&
439 !strcmp(decode + strlen(decode) - strlen("-cbc"), "-cbc")) {
440 p = strstr(decode, "-cbc");
450 real_decode = decode;
456 if (decode != real_decode)
457 (*ndo->ndo_warning)(ndo, "failed to find cipher algo %s (%s)\n", real_decode, decode);
459 (*ndo->ndo_warning)(ndo, "failed to find cipher algo %s\n", decode);
473 /* decode some hex! */
500 char *decode, struct sa_list *sa)
504 colon = strchr(decode, ':');
506 (*ndo->ndo_warning)(ndo, "failed to decode espsecret: %s\n", decode);
511 if(ascii_strcasecmp(decode,"sha1") == 0 ||
512 ascii_strcasecmp(decode,"md5") == 0) {
589 char *decode;
597 decode = spikey;
604 decode = line;
655 (*ndo->ndo_warning)(ndo, "print_esp: failed to decode spi# %s\n", foo);
666 (*ndo->ndo_warning)(ndo, "print_esp: can not decode IP# %s\n", spikey);
671 if (decode) {
673 while (*decode == ' ' || *decode == '\t' || *decode == '\r' || *decode == '\n')
674 decode++;
676 if(!espprint_decode_encalgo(ndo, decode, &sa1)) {
794 /* see if we can find the SA, and if so, decode it */
809 /* see if we can find the SA, and if so, decode it */
917 * in the buffer because they are not part of the plaintext to decode.