aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_common.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-16 21:36:22 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-16 21:36:38 +0200
commitda393a04d06d488bc3b424a8baa24676b53e6352 (patch)
tree1791dfd7a18919c065f0b945c65dd62d1a7727bf /src/include/gnunet_common.h
parent215e607f63847c77bd26d4c97eae8c7d6ca7f4a0 (diff)
downloadgnunet-da393a04d06d488bc3b424a8baa24676b53e6352.tar.gz
gnunet-da393a04d06d488bc3b424a8baa24676b53e6352.zip
log key material hashes
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r--src/include/gnunet_common.h70
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 */
594const char * 594const char *
595GNUNET_h2s (const struct GNUNET_HashCode * hc); 595GNUNET_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 */
609const char * 609const char *
610GNUNET_h2s2 (const struct GNUNET_HashCode * hc); 610GNUNET_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 */
623const char * 623const char *
624GNUNET_h2s_full (const struct GNUNET_HashCode * hc); 624GNUNET_h2s_full (const struct GNUNET_HashCode *hc);
625
626
627/**
628 * Public key. Details in gnunet_util_crypto.h.
629 */
630struct GNUNET_CRYPTO_EddsaPublicKey;
631
632
633/**
634 * Public key. Details in gnunet_util_crypto.h.
635 */
636struct 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 */
648const char *
649GNUNET_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 */
661const char *
662GNUNET_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 */
674const char *
675GNUNET_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 */
687const char *
688GNUNET_e2s2 (const struct GNUNET_CRYPTO_EcdhePublicKey *p);
625 689
626 690
627/** 691/**