X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt_backend.h;h=ff956ce315428d55e0e358622840f751f80f8dcf;hp=a33d17dc692a5e13614cff776140469b602d3c4e;hb=e0545fd978a9583f9583b9bb35e5c25cb78c78f4;hpb=9de1287d67c9562e9140c6dc7deb0c01c4e10cc0 diff --git a/crypt_backend.h b/crypt_backend.h index a33d17dc..ff956ce3 100644 --- a/crypt_backend.h +++ b/crypt_backend.h @@ -1,16 +1,12 @@ -/* - * Copyright (C) 2011-2012 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. */ -/* This should only be incuded from files which provide crypto functions. */ +/* This should only be included from files which provide crypto functions. */ + +/** AES block size in bytes. */ +#define AES_CRT128_BLOCK_SIZE 16 size_t is_ssh_rsa_key(char *data, size_t size); -uint32_t read_ssh_u32(const void *vp); -int uudecode(const char *src, unsigned char *target, size_t targsize); int check_ssh_key_header(const unsigned char *blob, int blen); -int check_key_file(const char *file, bool private_key); -int base64_decode(char const *src, unsigned char *target, size_t targsize); +int check_private_key_file(const char *file);