*/
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