X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt_backend.h;h=040a719bbc4c41fc92855da2b57ffcdae9712ab8;hp=b362651dec3c76e5ecf643a5aea7c6ca435c0dad;hb=36ec2a43a7d9c085f16544e282a439cdbaec1e00;hpb=6a7393e2abdcf30dd4201b84a417d08f6136e8d6 diff --git a/crypt_backend.h b/crypt_backend.h index b362651d..040a719b 100644 --- a/crypt_backend.h +++ b/crypt_backend.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Andre Noll + * Copyright (C) 2011-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -8,8 +8,12 @@ /* This should only be incuded 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);