check
[oweals/gnunet.git] / src / include / gnunet_crypto_lib.h
index 922dda43b81a51488be971a91524072ca00a6aeb..8836645344d077bb583ecfd52df8b5299603d66f 100644 (file)
@@ -689,14 +689,15 @@ GNUNET_CRYPTO_kdf (void *result, size_t out_len,
  */
 struct GNUNET_CRYPTO_RsaPrivateKey *GNUNET_CRYPTO_rsa_key_create (void);
 
-
 /**
- * Get the size of a key file.
+ * Decode the private key from the data-format back
+ * to the "normal", internal format.
  *
- * @return size of a gnunet private key
+ * @param buf the buffer where the private key data is stored
+ * @param len the length of the data in 'buffer'
  */
-uint32_t
-GNUNET_CRYPTO_rsa_key_size ();
+struct GNUNET_CRYPTO_RsaPrivateKey *
+GNUNET_CRYPTO_rsa_decode_key (const char *buf, uint16_t len);
 
 /**
  * Create a new private key by reading it from a file.  If the