1 /* Copyright (C) 2011 Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */
3 /** \file crypt_backend.h Non-public crypto interface. */
5 /* This should only be included from files which provide crypto functions. */
7 /** AES block size in bytes. */
8 #define AES_CRT128_BLOCK_SIZE 16
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,
14 /** Legacy PEM keys (openssh-7.7 and earlier, paraslash.0.6.2 and earlier) */
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);