diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-16 21:36:22 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-16 21:36:38 +0200 |
commit | da393a04d06d488bc3b424a8baa24676b53e6352 (patch) | |
tree | 1791dfd7a18919c065f0b945c65dd62d1a7727bf /src/include | |
parent | 215e607f63847c77bd26d4c97eae8c7d6ca7f4a0 (diff) | |
download | gnunet-da393a04d06d488bc3b424a8baa24676b53e6352.tar.gz gnunet-da393a04d06d488bc3b424a8baa24676b53e6352.zip |
log key material hashes
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_common.h | 70 |
1 files changed, 67 insertions, 3 deletions
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 0fb39575c..0c527e774 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h | |||
@@ -592,7 +592,7 @@ GNUNET_sh2s (const struct GNUNET_ShortHashCode *shc); | |||
592 | * @return string | 592 | * @return string |
593 | */ | 593 | */ |
594 | const char * | 594 | const char * |
595 | GNUNET_h2s (const struct GNUNET_HashCode * hc); | 595 | GNUNET_h2s (const struct GNUNET_HashCode *hc); |
596 | 596 | ||
597 | 597 | ||
598 | /** | 598 | /** |
@@ -607,7 +607,7 @@ GNUNET_h2s (const struct GNUNET_HashCode * hc); | |||
607 | * @return string | 607 | * @return string |
608 | */ | 608 | */ |
609 | const char * | 609 | const char * |
610 | GNUNET_h2s2 (const struct GNUNET_HashCode * hc); | 610 | GNUNET_h2s2 (const struct GNUNET_HashCode *hc); |
611 | 611 | ||
612 | 612 | ||
613 | /** | 613 | /** |
@@ -621,7 +621,71 @@ GNUNET_h2s2 (const struct GNUNET_HashCode * hc); | |||
621 | * @return string | 621 | * @return string |
622 | */ | 622 | */ |
623 | const char * | 623 | const char * |
624 | GNUNET_h2s_full (const struct GNUNET_HashCode * hc); | 624 | GNUNET_h2s_full (const struct GNUNET_HashCode *hc); |
625 | |||
626 | |||
627 | /** | ||
628 | * Public key. Details in gnunet_util_crypto.h. | ||
629 | */ | ||
630 | struct GNUNET_CRYPTO_EddsaPublicKey; | ||
631 | |||
632 | |||
633 | /** | ||
634 | * Public key. Details in gnunet_util_crypto.h. | ||
635 | */ | ||
636 | struct GNUNET_CRYPTO_EcdhePublicKey; | ||
637 | |||
638 | |||
639 | /** | ||
640 | * @ingroup logging | ||
641 | * Convert a public key value to a string (for printing debug messages). | ||
642 | * This is one of the very few calls in the entire API that is | ||
643 | * NOT reentrant! | ||
644 | * | ||
645 | * @param hc the hash code | ||
646 | * @return string | ||
647 | */ | ||
648 | const char * | ||
649 | GNUNET_p2s (const struct GNUNET_CRYPTO_EddsaPublicKey *p); | ||
650 | |||
651 | |||
652 | /** | ||
653 | * @ingroup logging | ||
654 | * Convert a public key value to a string (for printing debug messages). | ||
655 | * This is one of the very few calls in the entire API that is | ||
656 | * NOT reentrant! | ||
657 | * | ||
658 | * @param hc the hash code | ||
659 | * @return string | ||
660 | */ | ||
661 | const char * | ||
662 | GNUNET_p2s2 (const struct GNUNET_CRYPTO_EddsaPublicKey *p); | ||
663 | |||
664 | |||
665 | /** | ||
666 | * @ingroup logging | ||
667 | * Convert a public key value to a string (for printing debug messages). | ||
668 | * This is one of the very few calls in the entire API that is | ||
669 | * NOT reentrant! | ||
670 | * | ||
671 | * @param hc the hash code | ||
672 | * @return string | ||
673 | */ | ||
674 | const char * | ||
675 | GNUNET_e2s (const struct GNUNET_CRYPTO_EcdhePublicKey *p); | ||
676 | |||
677 | |||
678 | /** | ||
679 | * @ingroup logging | ||
680 | * Convert a public key value to a string (for printing debug messages). | ||
681 | * This is one of the very few calls in the entire API that is | ||
682 | * NOT reentrant! | ||
683 | * | ||
684 | * @param hc the hash code | ||
685 | * @return string | ||
686 | */ | ||
687 | const char * | ||
688 | GNUNET_e2s2 (const struct GNUNET_CRYPTO_EcdhePublicKey *p); | ||
625 | 689 | ||
626 | 690 | ||
627 | /** | 691 | /** |