X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt_backend.h;h=ae01fc14733a1068b0513afbd8f9e5b9bc791827;hp=85008979d4b56a38c26c520bb8868da5cacc48ef;hb=74f74cde7afdba9cfe316998aba9286764bb5d34;hpb=177ea8ea46918a925c0d2d8a07e7fbe9f478a40c diff --git a/crypt_backend.h b/crypt_backend.h index 85008979..ae01fc14 100644 --- a/crypt_backend.h +++ b/crypt_backend.h @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2011 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2011 Andre Noll , see file COPYING. */ /** \file crypt_backend.h Non-public crypto interface. */ @@ -11,6 +7,7 @@ /** AES block size in bytes. */ #define AES_CRT128_BLOCK_SIZE 16 -size_t is_ssh_rsa_key(char *data, size_t size); -int check_ssh_key_header(const unsigned char *blob, int blen); +int decode_public_key(const char *filename, unsigned char **blob, + size_t *decoded_size); int check_private_key_file(const char *file); +int find_openssh_bignum_offset(const unsigned char *data, int len);