server: Fix --autoplay-delay.
[paraslash.git] / crypt_backend.h
1 /*
2 * Copyright (C) 2011 Andre Noll <maan@tuebingen.mpg.de>
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 included from files which provide crypto functions. */
10
11 /** AES block size in bytes. */
12 #define AES_CRT128_BLOCK_SIZE 16
13
14 size_t is_ssh_rsa_key(char *data, size_t size);
15 uint32_t read_ssh_u32(const void *vp);
16 int uudecode(const char *src, unsigned char *target, size_t targsize);
17 int check_ssh_key_header(const unsigned char *blob, int blen);
18 int check_key_file(const char *file, bool private_key);
19 int base64_decode(char const *src, unsigned char *target, size_t targsize);