Add homepage link.
[paraslash.git] / crypt_backend.h
index 06c86d74b8c452bc761dafe75ad6ee792a1f15d9..175a6881c3d6567137513043055f548700c6ab65 100644 (file)
@@ -1,8 +1,4 @@
-/*
- * Copyright (C) 2011 Andre Noll <maan@tuebingen.mpg.de>
- *
- * Licensed under the GPL v2. For licencing details see COPYING.
- */
+/* Copyright (C) 2011 Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */
 
 /** \file crypt_backend.h Non-public crypto interface. */
 
@@ -11,9 +7,6 @@
 /** AES block size in bytes. */
 #define AES_CRT128_BLOCK_SIZE 16
 
-size_t is_ssh_rsa_key(char *data, size_t size);
-uint32_t read_ssh_u32(const void *vp);
-int uudecode(const char *src, unsigned char *target, size_t targsize);
-int check_ssh_key_header(const unsigned char *blob, int blen);
-int check_key_file(const char *file, bool private_key);
-int base64_decode(char const *src, unsigned char *target, size_t targsize);
+int decode_ssh_key(const char *filename, unsigned char **blob,
+               size_t *decoded_size);
+int check_private_key_file(const char *file);