X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt_backend.h;h=b0998d8513f35303243ccd632abc3c0aa46f6377;hp=6f8008759d0412e095aa46f14473a98201fa960e;hb=3685a9093ae12ff9ce02fc58e607eb9b63894443;hpb=3e0533843c8d4add881a6c2d383bd2c80129e27b diff --git a/crypt_backend.h b/crypt_backend.h index 6f800875..b0998d85 100644 --- a/crypt_backend.h +++ b/crypt_backend.h @@ -9,4 +9,11 @@ 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); +/** Legacy PEM keys (openssh-7.7 and earlier, paraslash.0.6.2 and earlier) */ +#define PKT_PEM (0) +/** OPENSSH keys (since openssh-7.8, paraslash.0.6.3) */ +#define PKT_OPENSSH (1) int check_private_key_file(const char *file); +int find_openssh_bignum_offset(const unsigned char *data, int len);