command.c: Also invalidate play time if no audio file is open.
[paraslash.git] / crypt_backend.h
1 /* Copyright (C) 2011 Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */
2
3 /** \file crypt_backend.h Non-public crypto interface. */
4
5 /* This should only be included from files which provide crypto functions. */
6
7 /** AES block size in bytes. */
8 #define AES_CRT128_BLOCK_SIZE 16
9
10 int decode_public_key(const char *filename, unsigned char **blob,
11                 size_t *decoded_size);
12 int decode_private_key(const char *key_file, unsigned char **result,
13                 size_t *blob_size);
14 /** Legacy PEM keys (openssh-7.7 and earlier, paraslash.0.6.2 and earlier) */
15 #define PKT_PEM (0)
16 /** OPENSSH keys (since openssh-7.8, paraslash.0.6.3) */
17 #define PKT_OPENSSH (1)
18 int check_private_key_file(const char *file);
19 int find_openssh_bignum_offset(const unsigned char *data, int len);