diff options
Diffstat (limited to 'src/include/gnunet_crypto_lib.h')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index eda23077b..c9cae17a2 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -202,7 +202,7 @@ struct GNUNET_PeerIdentity | |||
202 | * Public ECC key (always for NIST P-521) encoded in a format suitable | 202 | * Public ECC key (always for NIST P-521) encoded in a format suitable |
203 | * for network transmission and encryption (ECDH). | 203 | * for network transmission and encryption (ECDH). |
204 | */ | 204 | */ |
205 | struct GNUNET_CRYPTO_EccPublicEncryptKey | 205 | struct GNUNET_CRYPTO_EccPublicEncryptKey |
206 | { | 206 | { |
207 | /** | 207 | /** |
208 | * Q consists of an x- and a y-value, each mod p (256 bits), | 208 | * Q consists of an x- and a y-value, each mod p (256 bits), |
@@ -397,7 +397,7 @@ GNUNET_CRYPTO_symmetric_create_session_key (struct GNUNET_CRYPTO_SymmetricSessio | |||
397 | ssize_t | 397 | ssize_t |
398 | GNUNET_CRYPTO_symmetric_encrypt (const void *block, size_t len, | 398 | GNUNET_CRYPTO_symmetric_encrypt (const void *block, size_t len, |
399 | const struct GNUNET_CRYPTO_SymmetricSessionKey *sessionkey, | 399 | const struct GNUNET_CRYPTO_SymmetricSessionKey *sessionkey, |
400 | const struct GNUNET_CRYPTO_SymmetricInitializationVector *iv, | 400 | const struct GNUNET_CRYPTO_SymmetricInitializationVector *iv, |
401 | void *result); | 401 | void *result); |
402 | 402 | ||
403 | 403 | ||
@@ -415,7 +415,7 @@ GNUNET_CRYPTO_symmetric_encrypt (const void *block, size_t len, | |||
415 | ssize_t | 415 | ssize_t |
416 | GNUNET_CRYPTO_symmetric_decrypt (const void *block, size_t size, | 416 | GNUNET_CRYPTO_symmetric_decrypt (const void *block, size_t size, |
417 | const struct GNUNET_CRYPTO_SymmetricSessionKey *sessionkey, | 417 | const struct GNUNET_CRYPTO_SymmetricSessionKey *sessionkey, |
418 | const struct GNUNET_CRYPTO_SymmetricInitializationVector *iv, | 418 | const struct GNUNET_CRYPTO_SymmetricInitializationVector *iv, |
419 | void *result); | 419 | void *result); |
420 | 420 | ||
421 | 421 | ||
@@ -446,8 +446,8 @@ GNUNET_CRYPTO_symmetric_derive_iv (struct GNUNET_CRYPTO_SymmetricInitializationV | |||
446 | void | 446 | void |
447 | GNUNET_CRYPTO_symmetric_derive_iv_v (struct GNUNET_CRYPTO_SymmetricInitializationVector *iv, | 447 | GNUNET_CRYPTO_symmetric_derive_iv_v (struct GNUNET_CRYPTO_SymmetricInitializationVector *iv, |
448 | const struct GNUNET_CRYPTO_SymmetricSessionKey *skey, | 448 | const struct GNUNET_CRYPTO_SymmetricSessionKey *skey, |
449 | const void *salt, | 449 | const void *salt, |
450 | size_t salt_len, | 450 | size_t salt_len, |
451 | va_list argp); | 451 | va_list argp); |
452 | 452 | ||
453 | 453 | ||
@@ -653,7 +653,7 @@ GNUNET_CRYPTO_hash_to_aes_key (const struct GNUNET_HashCode * hc, | |||
653 | * @return Bit \a bit from hashcode \a code, -1 for invalid index | 653 | * @return Bit \a bit from hashcode \a code, -1 for invalid index |
654 | */ | 654 | */ |
655 | int | 655 | int |
656 | GNUNET_CRYPTO_hash_get_bit (const struct GNUNET_HashCode *code, | 656 | GNUNET_CRYPTO_hash_get_bit (const struct GNUNET_HashCode *code, |
657 | unsigned int bit); | 657 | unsigned int bit); |
658 | 658 | ||
659 | 659 | ||
@@ -865,7 +865,7 @@ GNUNET_CRYPTO_ecc_public_sign_key_to_string (const struct GNUNET_CRYPTO_EccPubli | |||
865 | * @return #GNUNET_OK on success | 865 | * @return #GNUNET_OK on success |
866 | */ | 866 | */ |
867 | int | 867 | int |
868 | GNUNET_CRYPTO_ecc_public_sign_key_from_string (const char *enc, | 868 | GNUNET_CRYPTO_ecc_public_sign_key_from_string (const char *enc, |
869 | size_t enclen, | 869 | size_t enclen, |
870 | struct GNUNET_CRYPTO_EccPublicSignKey *pub); | 870 | struct GNUNET_CRYPTO_EccPublicSignKey *pub); |
871 | 871 | ||
@@ -890,7 +890,7 @@ GNUNET_CRYPTO_ecc_public_encrypt_key_to_string (const struct GNUNET_CRYPTO_EccPu | |||
890 | * @return #GNUNET_OK on success | 890 | * @return #GNUNET_OK on success |
891 | */ | 891 | */ |
892 | int | 892 | int |
893 | GNUNET_CRYPTO_ecc_public_encrypt_key_from_string (const char *enc, | 893 | GNUNET_CRYPTO_ecc_public_encrypt_key_from_string (const char *enc, |
894 | size_t enclen, | 894 | size_t enclen, |
895 | struct GNUNET_CRYPTO_EccPublicEncryptKey *pub); | 895 | struct GNUNET_CRYPTO_EccPublicEncryptKey *pub); |
896 | 896 | ||
@@ -939,7 +939,7 @@ GNUNET_CRYPTO_ecc_key_create (void); | |||
939 | 939 | ||
940 | /** | 940 | /** |
941 | * @ingroup crypto | 941 | * @ingroup crypto |
942 | * Clear memory that was used to store a private key. | 942 | * Clear memory that was used to store a private key. |
943 | * | 943 | * |
944 | * @param pk location of the key | 944 | * @param pk location of the key |
945 | */ | 945 | */ |