summaryrefslogtreecommitdiff
path: root/crypt_backend.h
blob: d8e0086ebe28ef5ee289e43a7c7f0c07b691a22b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: GPL-2.0 */

/** \file crypt_backend.h Non-public crypto interface. */

/* This should only be included from files which provide crypto functions. */

/** AES block size in bytes. */
#define AES_CRT128_BLOCK_SIZE 16

int decode_public_key(const char *filename, unsigned char **blob,
		size_t *decoded_size);
int decode_private_key(const char *key_file, unsigned char **result,
		size_t *blob_size);
int check_private_key_file(const char *file);
int find_openssh_bignum_offset(const unsigned char *data, int len);