[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37184 - in gnunet/src: include util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37184 - in gnunet/src: include util |
Date: |
Thu, 19 May 2016 15:08:53 +0200 |
Author: grothoff
Date: 2016-05-19 15:08:53 +0200 (Thu, 19 May 2016)
New Revision: 37184
Modified:
gnunet/src/include/gnunet_crypto_lib.h
gnunet/src/util/crypto_rsa.c
gnunet/src/util/perf_crypto_rsa.c
gnunet/src/util/test_crypto_rsa.c
Log:
rename.sh GNUNET_CRYPTO_rsa_BlindingKey to GNUNET_CRYPTO_RsaBlindingKey
following naming conventions
Modified: gnunet/src/include/gnunet_crypto_lib.h
===================================================================
--- gnunet/src/include/gnunet_crypto_lib.h 2016-05-19 11:48:46 UTC (rev
37183)
+++ gnunet/src/include/gnunet_crypto_lib.h 2016-05-19 13:08:53 UTC (rev
37184)
@@ -1789,7 +1789,7 @@
/**
* Key used to blind a message
*/
-struct GNUNET_CRYPTO_rsa_BlindingKey;
+struct GNUNET_CRYPTO_RsaBlindingKey;
/**
* @brief an RSA signature
@@ -1934,7 +1934,7 @@
* @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);
@@ -1946,8 +1946,8 @@
* @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);
/**
@@ -1991,7 +1991,7 @@
* @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);
/**
@@ -2003,7 +2003,7 @@
* @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);
@@ -2015,7 +2015,7 @@
* @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);
@@ -2031,7 +2031,7 @@
*/
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);
@@ -2118,7 +2118,7 @@
*/
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);
Modified: gnunet/src/util/crypto_rsa.c
===================================================================
--- gnunet/src/util/crypto_rsa.c 2016-05-19 11:48:46 UTC (rev 37183)
+++ gnunet/src/util/crypto_rsa.c 2016-05-19 13:08:53 UTC (rev 37184)
@@ -67,7 +67,7 @@
/**
* @brief RSA blinding key
*/
-struct GNUNET_CRYPTO_rsa_BlindingKey
+struct GNUNET_CRYPTO_RsaBlindingKey
{
/**
* Random value used for blinding.
@@ -398,12 +398,12 @@
* @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 @@
* @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 @@
* @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 @@
* @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 @@
* @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 @@
*/
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 @@
*/
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;
Modified: gnunet/src/util/perf_crypto_rsa.c
===================================================================
--- gnunet/src/util/perf_crypto_rsa.c 2016-05-19 11:48:46 UTC (rev 37183)
+++ gnunet/src/util/perf_crypto_rsa.c 2016-05-19 13:08:53 UTC (rev 37184)
@@ -41,7 +41,7 @@
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;
Modified: gnunet/src/util/test_crypto_rsa.c
===================================================================
--- gnunet/src/util/test_crypto_rsa.c 2016-05-19 11:48:46 UTC (rev 37183)
+++ gnunet/src/util/test_crypto_rsa.c 2016-05-19 13:08:53 UTC (rev 37184)
@@ -43,7 +43,7 @@
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37184 - in gnunet/src: include util,
gnunet <=