Lines Matching defs:decode
289 /* see if we can find the SA, and if so, decode it */
405 * decode the form: SPINUM@IP <tab> ALGONAME:0xsecret
411 char *decode, struct sa_list *sa)
419 colon = strchr(decode, ':');
421 (*ndo->ndo_warning)(ndo, "failed to decode espsecret: %s\n", decode);
426 if (strlen(decode) > strlen("-hmac96") &&
427 !strcmp(decode + strlen(decode) - strlen("-hmac96"),
429 p = strstr(decode, "-hmac96");
433 if (strlen(decode) > strlen("-cbc") &&
434 !strcmp(decode + strlen(decode) - strlen("-cbc"), "-cbc")) {
435 p = strstr(decode, "-cbc");
445 real_decode = decode;
451 if (decode != real_decode)
452 (*ndo->ndo_warning)(ndo, "failed to find cipher algo %s (%s)\n", real_decode, decode);
454 (*ndo->ndo_warning)(ndo, "failed to find cipher algo %s\n", decode);
468 /* decode some hex! */
495 char *decode, struct sa_list *sa)
499 colon = strchr(decode, ':');
501 (*ndo->ndo_warning)(ndo, "failed to decode espsecret: %s\n", decode);
506 if(ascii_strcasecmp(decode,"sha1") == 0 ||
507 ascii_strcasecmp(decode,"md5") == 0) {
584 char *decode;
592 decode = spikey;
599 decode = line;
650 (*ndo->ndo_warning)(ndo, "print_esp: failed to decode spi# %s\n", foo);
661 (*ndo->ndo_warning)(ndo, "print_esp: can not decode IP# %s\n", spikey);
666 if (decode) {
668 while (*decode == ' ' || *decode == '\t' || *decode == '\r' || *decode == '\n')
669 decode++;
671 if(!espprint_decode_encalgo(ndo, decode, &sa1)) {
789 /* see if we can find the SA, and if so, decode it */
804 /* see if we can find the SA, and if so, decode it */
912 * in the buffer because they are not part of the plaintext to decode.