diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-19 13:08:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-19 13:08:53 +0000 |
commit | bf50f7fcd4627a8afcae5699a202a942f76b73e4 (patch) | |
tree | a953c2ed49fd5c8abd11ec9239d57e95c1599bcc /src/util/crypto_rsa.c | |
parent | faf7c575d400f0623c5244944852e256c33d0f6e (diff) | |
download | gnunet-bf50f7fcd4627a8afcae5699a202a942f76b73e4.tar.gz gnunet-bf50f7fcd4627a8afcae5699a202a942f76b73e4.zip |
rename.sh GNUNET_CRYPTO_rsa_BlindingKey to GNUNET_CRYPTO_RsaBlindingKey following naming conventions
Diffstat (limited to 'src/util/crypto_rsa.c')
-rw-r--r-- | src/util/crypto_rsa.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c index b32ccea39..3686b02db 100644 --- a/src/util/crypto_rsa.c +++ b/src/util/crypto_rsa.c | |||
@@ -67,7 +67,7 @@ struct GNUNET_CRYPTO_RsaSignature | |||
67 | /** | 67 | /** |
68 | * @brief RSA blinding key | 68 | * @brief RSA blinding key |
69 | */ | 69 | */ |
70 | struct GNUNET_CRYPTO_rsa_BlindingKey | 70 | struct GNUNET_CRYPTO_RsaBlindingKey |
71 | { | 71 | { |
72 | /** | 72 | /** |
73 | * Random value used for blinding. | 73 | * Random value used for blinding. |
@@ -398,12 +398,12 @@ GNUNET_CRYPTO_rsa_public_key_decode (const char *buf, | |||
398 | * @param len length of the key in bits (i.e. 2048) | 398 | * @param len length of the key in bits (i.e. 2048) |
399 | * @return the newly created blinding key | 399 | * @return the newly created blinding key |
400 | */ | 400 | */ |
401 | struct GNUNET_CRYPTO_rsa_BlindingKey * | 401 | struct GNUNET_CRYPTO_RsaBlindingKey * |
402 | GNUNET_CRYPTO_rsa_blinding_key_create (unsigned int len) | 402 | GNUNET_CRYPTO_rsa_blinding_key_create (unsigned int len) |
403 | { | 403 | { |
404 | struct GNUNET_CRYPTO_rsa_BlindingKey *blind; | 404 | struct GNUNET_CRYPTO_RsaBlindingKey *blind; |
405 | 405 | ||
406 | blind = GNUNET_new (struct GNUNET_CRYPTO_rsa_BlindingKey); | 406 | blind = GNUNET_new (struct GNUNET_CRYPTO_RsaBlindingKey); |
407 | blind->r = gcry_mpi_new (len); | 407 | blind->r = gcry_mpi_new (len); |
408 | gcry_mpi_randomize (blind->r, | 408 | gcry_mpi_randomize (blind->r, |
409 | len, | 409 | len, |
@@ -420,8 +420,8 @@ GNUNET_CRYPTO_rsa_blinding_key_create (unsigned int len) | |||
420 | * @return 0 if the two are equal | 420 | * @return 0 if the two are equal |
421 | */ | 421 | */ |
422 | int | 422 | int |
423 | GNUNET_CRYPTO_rsa_blinding_key_cmp (struct GNUNET_CRYPTO_rsa_BlindingKey *b1, | 423 | GNUNET_CRYPTO_rsa_blinding_key_cmp (struct GNUNET_CRYPTO_RsaBlindingKey *b1, |
424 | struct GNUNET_CRYPTO_rsa_BlindingKey *b2) | 424 | struct GNUNET_CRYPTO_RsaBlindingKey *b2) |
425 | { | 425 | { |
426 | return gcry_mpi_cmp (b1->r, | 426 | return gcry_mpi_cmp (b1->r, |
427 | b2->r); | 427 | b2->r); |
@@ -559,7 +559,7 @@ GNUNET_CRYPTO_rsa_public_key_len (const struct GNUNET_CRYPTO_RsaPublicKey *key) | |||
559 | * @param bkey the blinding key to destroy | 559 | * @param bkey the blinding key to destroy |
560 | */ | 560 | */ |
561 | void | 561 | void |
562 | GNUNET_CRYPTO_rsa_blinding_key_free (struct GNUNET_CRYPTO_rsa_BlindingKey *bkey) | 562 | GNUNET_CRYPTO_rsa_blinding_key_free (struct GNUNET_CRYPTO_RsaBlindingKey *bkey) |
563 | { | 563 | { |
564 | gcry_mpi_release (bkey->r); | 564 | gcry_mpi_release (bkey->r); |
565 | GNUNET_free (bkey); | 565 | GNUNET_free (bkey); |
@@ -607,7 +607,7 @@ numeric_mpi_alloc_n_print (gcry_mpi_t v, | |||
607 | * @return size of memory allocated in @a buffer | 607 | * @return size of memory allocated in @a buffer |
608 | */ | 608 | */ |
609 | size_t | 609 | size_t |
610 | GNUNET_CRYPTO_rsa_blinding_key_encode (const struct GNUNET_CRYPTO_rsa_BlindingKey *bkey, | 610 | GNUNET_CRYPTO_rsa_blinding_key_encode (const struct GNUNET_CRYPTO_RsaBlindingKey *bkey, |
611 | char **buffer) | 611 | char **buffer) |
612 | { | 612 | { |
613 | return numeric_mpi_alloc_n_print (bkey->r, buffer); | 613 | return numeric_mpi_alloc_n_print (bkey->r, buffer); |
@@ -622,14 +622,14 @@ GNUNET_CRYPTO_rsa_blinding_key_encode (const struct GNUNET_CRYPTO_rsa_BlindingKe | |||
622 | * @param len the length of the data in @a buf | 622 | * @param len the length of the data in @a buf |
623 | * @return NULL on error | 623 | * @return NULL on error |
624 | */ | 624 | */ |
625 | struct GNUNET_CRYPTO_rsa_BlindingKey * | 625 | struct GNUNET_CRYPTO_RsaBlindingKey * |
626 | GNUNET_CRYPTO_rsa_blinding_key_decode (const char *buf, | 626 | GNUNET_CRYPTO_rsa_blinding_key_decode (const char *buf, |
627 | size_t len) | 627 | size_t len) |
628 | { | 628 | { |
629 | struct GNUNET_CRYPTO_rsa_BlindingKey *bkey; | 629 | struct GNUNET_CRYPTO_RsaBlindingKey *bkey; |
630 | size_t rsize; | 630 | size_t rsize; |
631 | 631 | ||
632 | bkey = GNUNET_new (struct GNUNET_CRYPTO_rsa_BlindingKey); | 632 | bkey = GNUNET_new (struct GNUNET_CRYPTO_RsaBlindingKey); |
633 | if (0 != | 633 | if (0 != |
634 | gcry_mpi_scan (&bkey->r, | 634 | gcry_mpi_scan (&bkey->r, |
635 | GCRYMPI_FMT_USG, | 635 | GCRYMPI_FMT_USG, |
@@ -754,7 +754,7 @@ rsa_full_domain_hash (gcry_mpi_t *r, | |||
754 | */ | 754 | */ |
755 | size_t | 755 | size_t |
756 | GNUNET_CRYPTO_rsa_blind (const struct GNUNET_HashCode *hash, | 756 | GNUNET_CRYPTO_rsa_blind (const struct GNUNET_HashCode *hash, |
757 | struct GNUNET_CRYPTO_rsa_BlindingKey *bkey, | 757 | struct GNUNET_CRYPTO_RsaBlindingKey *bkey, |
758 | struct GNUNET_CRYPTO_RsaPublicKey *pkey, | 758 | struct GNUNET_CRYPTO_RsaPublicKey *pkey, |
759 | char **buffer) | 759 | char **buffer) |
760 | { | 760 | { |
@@ -1057,7 +1057,7 @@ GNUNET_CRYPTO_rsa_public_key_dup (const struct GNUNET_CRYPTO_RsaPublicKey *key) | |||
1057 | */ | 1057 | */ |
1058 | struct GNUNET_CRYPTO_RsaSignature * | 1058 | struct GNUNET_CRYPTO_RsaSignature * |
1059 | GNUNET_CRYPTO_rsa_unblind (struct GNUNET_CRYPTO_RsaSignature *sig, | 1059 | GNUNET_CRYPTO_rsa_unblind (struct GNUNET_CRYPTO_RsaSignature *sig, |
1060 | struct GNUNET_CRYPTO_rsa_BlindingKey *bkey, | 1060 | struct GNUNET_CRYPTO_RsaBlindingKey *bkey, |
1061 | struct GNUNET_CRYPTO_RsaPublicKey *pkey) | 1061 | struct GNUNET_CRYPTO_RsaPublicKey *pkey) |
1062 | { | 1062 | { |
1063 | gcry_mpi_t n; | 1063 | gcry_mpi_t n; |