check
[oweals/gnunet.git] / src / include / gnunet_crypto_lib.h
index d9cc27ae0fb5beb411f6de9ba2d412b184cfeaf0..8836645344d077bb583ecfd52df8b5299603d66f 100644 (file)
@@ -689,6 +689,16 @@ GNUNET_CRYPTO_kdf (void *result, size_t out_len,
  */
 struct GNUNET_CRYPTO_RsaPrivateKey *GNUNET_CRYPTO_rsa_key_create (void);
 
+/**
+ * Decode the private key from the data-format back
+ * to the "normal", internal format.
+ *
+ * @param buf the buffer where the private key data is stored
+ * @param len the length of the data in 'buffer'
+ */
+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
  * files does not exist, create a new key and write it to the