aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-19 13:08:53 +0000
committerChristian Grothoff <christian@grothoff.org>2016-05-19 13:08:53 +0000
commitbf50f7fcd4627a8afcae5699a202a942f76b73e4 (patch)
treea953c2ed49fd5c8abd11ec9239d57e95c1599bcc /src/util
parentfaf7c575d400f0623c5244944852e256c33d0f6e (diff)
rename.sh GNUNET_CRYPTO_rsa_BlindingKey to GNUNET_CRYPTO_RsaBlindingKey following naming conventions
Diffstat (limited to 'src/util')
-rw-r--r--src/util/crypto_rsa.c26
-rw-r--r--src/util/perf_crypto_rsa.c2
-rw-r--r--src/util/test_crypto_rsa.c2
3 files changed, 15 insertions, 15 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c
index b32ccea395..3686b02db2 100644
--- a/src/util/crypto_rsa.c
+++ b/src/util/crypto_rsa.c
@@ -67,7 +67,7 @@ struct GNUNET_CRYPTO_RsaSignature
/**
* @brief RSA blinding key
*/
-struct GNUNET_CRYPTO_rsa_BlindingKey
+struct GNUNET_CRYPTO_RsaBlindingKey
{
/**
* Random value used for blinding.
@@ -398,12 +398,12 @@ GNUNET_CRYPTO_rsa_public_key_decode (const char *buf,
* @param len length of the key in bits (i.e. 2048)
* @return the newly created blinding key
*/
-struct GNUNET_CRYPTO_rsa_BlindingKey *
+struct GNUNET_CRYPTO_RsaBlindingKey *
GNUNET_CRYPTO_rsa_blinding_key_create (unsigned int len)
{
- struct GNUNET_CRYPTO_rsa_BlindingKey *blind;
+ struct GNUNET_CRYPTO_RsaBlindingKey *blind;
- blind = GNUNET_new (struct GNUNET_CRYPTO_rsa_BlindingKey);
+ blind = GNUNET_new (struct GNUNET_CRYPTO_RsaBlindingKey);
blind->r = gcry_mpi_new (len);
gcry_mpi_randomize (blind->r,
len,
@@ -420,8 +420,8 @@ GNUNET_CRYPTO_rsa_blinding_key_create (unsigned int len)
* @return 0 if the two are equal
*/
int
-GNUNET_CRYPTO_rsa_blinding_key_cmp (struct GNUNET_CRYPTO_rsa_BlindingKey *b1,
- struct GNUNET_CRYPTO_rsa_BlindingKey *b2)
+GNUNET_CRYPTO_rsa_blinding_key_cmp (struct GNUNET_CRYPTO_RsaBlindingKey *b1,
+ struct GNUNET_CRYPTO_RsaBlindingKey *b2)
{
return gcry_mpi_cmp (b1->r,
b2->r);
@@ -559,7 +559,7 @@ GNUNET_CRYPTO_rsa_public_key_len (const struct GNUNET_CRYPTO_RsaPublicKey *key)
* @param bkey the blinding key to destroy
*/
void
-GNUNET_CRYPTO_rsa_blinding_key_free (struct GNUNET_CRYPTO_rsa_BlindingKey *bkey)
+GNUNET_CRYPTO_rsa_blinding_key_free (struct GNUNET_CRYPTO_RsaBlindingKey *bkey)
{
gcry_mpi_release (bkey->r);
GNUNET_free (bkey);
@@ -607,7 +607,7 @@ numeric_mpi_alloc_n_print (gcry_mpi_t v,
* @return size of memory allocated in @a buffer
*/
size_t
-GNUNET_CRYPTO_rsa_blinding_key_encode (const struct GNUNET_CRYPTO_rsa_BlindingKey *bkey,
+GNUNET_CRYPTO_rsa_blinding_key_encode (const struct GNUNET_CRYPTO_RsaBlindingKey *bkey,
char **buffer)
{
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
* @param len the length of the data in @a buf
* @return NULL on error
*/
-struct GNUNET_CRYPTO_rsa_BlindingKey *
+struct GNUNET_CRYPTO_RsaBlindingKey *
GNUNET_CRYPTO_rsa_blinding_key_decode (const char *buf,
size_t len)
{
- struct GNUNET_CRYPTO_rsa_BlindingKey *bkey;
+ struct GNUNET_CRYPTO_RsaBlindingKey *bkey;
size_t rsize;
- bkey = GNUNET_new (struct GNUNET_CRYPTO_rsa_BlindingKey);
+ bkey = GNUNET_new (struct GNUNET_CRYPTO_RsaBlindingKey);
if (0 !=
gcry_mpi_scan (&bkey->r,
GCRYMPI_FMT_USG,
@@ -754,7 +754,7 @@ rsa_full_domain_hash (gcry_mpi_t *r,
*/
size_t
GNUNET_CRYPTO_rsa_blind (const struct GNUNET_HashCode *hash,
- struct GNUNET_CRYPTO_rsa_BlindingKey *bkey,
+ struct GNUNET_CRYPTO_RsaBlindingKey *bkey,
struct GNUNET_CRYPTO_RsaPublicKey *pkey,
char **buffer)
{
@@ -1057,7 +1057,7 @@ GNUNET_CRYPTO_rsa_public_key_dup (const struct GNUNET_CRYPTO_RsaPublicKey *key)
*/
struct GNUNET_CRYPTO_RsaSignature *
GNUNET_CRYPTO_rsa_unblind (struct GNUNET_CRYPTO_RsaSignature *sig,
- struct GNUNET_CRYPTO_rsa_BlindingKey *bkey,
+ struct GNUNET_CRYPTO_RsaBlindingKey *bkey,
struct GNUNET_CRYPTO_RsaPublicKey *pkey)
{
gcry_mpi_t n;
diff --git a/src/util/perf_crypto_rsa.c b/src/util/perf_crypto_rsa.c
index 02a9ae6c32..2be766b4a3 100644
--- a/src/util/perf_crypto_rsa.c
+++ b/src/util/perf_crypto_rsa.c
@@ -41,7 +41,7 @@ eval (unsigned int len)
struct GNUNET_CRYPTO_RsaSignature *rsig;
struct GNUNET_CRYPTO_RsaPublicKey *public_key;
struct GNUNET_CRYPTO_RsaPrivateKey *private_key;
- struct GNUNET_CRYPTO_rsa_BlindingKey *bkey;
+ struct GNUNET_CRYPTO_RsaBlindingKey *bkey;
unsigned int i;
char sbuf[128];
char *bbuf;
diff --git a/src/util/test_crypto_rsa.c b/src/util/test_crypto_rsa.c
index 04134ea2a4..6f953386f5 100644
--- a/src/util/test_crypto_rsa.c
+++ b/src/util/test_crypto_rsa.c
@@ -43,7 +43,7 @@ main (int argc,
struct GNUNET_CRYPTO_RsaPrivateKey *priv_copy;
struct GNUNET_CRYPTO_RsaPublicKey *pub;
struct GNUNET_CRYPTO_RsaPublicKey *pub_copy;
- struct GNUNET_CRYPTO_rsa_BlindingKey *bkey;
+ struct GNUNET_CRYPTO_RsaBlindingKey *bkey;
struct GNUNET_CRYPTO_RsaSignature *sig;
struct GNUNET_CRYPTO_RsaSignature *sig_copy;
struct GNUNET_CRYPTO_RsaSignature *bsig;