aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_identity_service.h
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2023-07-16 19:30:45 +0200
committerMartin Schanzenbach <schanzen@gnunet.org>2023-07-16 19:30:45 +0200
commit257673639daf4a9a71793588b3f65226cb718c54 (patch)
tree40eba6e4f1efa633f55e0d6a81d7e775932fb8e9 /src/include/gnunet_identity_service.h
parenta2c3a72d0157c0de4966cea417d1802727c3ed1e (diff)
downloadgnunet-257673639daf4a9a71793588b3f65226cb718c54.tar.gz
gnunet-257673639daf4a9a71793588b3f65226cb718c54.zip
NEWS: -
Rename encrypt2/decrypt2 to encrypt/decrypt
Diffstat (limited to 'src/include/gnunet_identity_service.h')
-rw-r--r--src/include/gnunet_identity_service.h24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/include/gnunet_identity_service.h b/src/include/gnunet_identity_service.h
index 15e49d781..db39a92eb 100644
--- a/src/include/gnunet_identity_service.h
+++ b/src/include/gnunet_identity_service.h
@@ -762,8 +762,7 @@ GNUNET_IDENTITY_decrypt_old (
762 * 762 *
763 * @param block the block to encrypt 763 * @param block the block to encrypt
764 * @param size the size of the @a block 764 * @param size the size of the @a block
765 * @param pub public key to use for ecdh 765 * @param pub public key to encrypt for
766 * @param ecc where to write the ecc public key
767 * @param result the output parameter in which to store the encrypted result 766 * @param result the output parameter in which to store the encrypted result
768 * can be the same or overlap with @c block 767 * can be the same or overlap with @c block
769 * @returns the size of the encrypted block, -1 for errors. 768 * @returns the size of the encrypted block, -1 for errors.
@@ -771,11 +770,11 @@ GNUNET_IDENTITY_decrypt_old (
771 * this size should be the same as @c len. 770 * this size should be the same as @c len.
772 */ 771 */
773ssize_t 772ssize_t
774GNUNET_IDENTITY_encrypt2 (const void *block, 773GNUNET_IDENTITY_encrypt (const void *block,
775 size_t size, 774 size_t size,
776 const struct GNUNET_IDENTITY_PublicKey *pub, 775 const struct GNUNET_IDENTITY_PublicKey *pub,
777 void *result, 776 void *result,
778 size_t result_size); 777 size_t result_size);
779 778
780 779
781/** 780/**
@@ -792,12 +791,11 @@ GNUNET_IDENTITY_encrypt2 (const void *block,
792 * this size should be the same as @c size. 791 * this size should be the same as @c size.
793 */ 792 */
794ssize_t 793ssize_t
795GNUNET_IDENTITY_decrypt2 ( 794GNUNET_IDENTITY_decrypt (const void *block,
796 const void *block, 795 size_t size,
797 size_t size, 796 const struct GNUNET_IDENTITY_PrivateKey *priv,
798 const struct GNUNET_IDENTITY_PrivateKey *priv, 797 void *result,
799 void *result, 798 size_t result_size);
800 size_t result_size);
801 799
802 800
803/** 801/**