Merge branch 't/recv_improvements'
[paraslash.git] / crypt_backend.h
1 /*
2 * Copyright (C) 2011 Andre Noll <maan@systemlinux.org>
3 *
4 * Licensed under the GPL v2. For licencing details see COPYING.
5 */
6
7 /** \file crypt_backend.h Non-public crypto interface. */
8
9 /* This should only be incuded from files which provide crypto functions. */
10
11 size_t is_ssh_rsa_key(char *data, size_t size);
12 uint32_t read_ssh_u32(const void *vp);
13 int uudecode(const char *src, unsigned char *target, size_t targsize);
14 int check_ssh_key_header(const unsigned char *blob, int blen);
15 int check_key_file(const char *file, bool private_key);
16 int base64_decode(char const *src, unsigned char *target, size_t targsize);