Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2007 Pekka Riikonen
+ Copyright (C) 2007 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
*/
-#include "silc.h"
+#include "silccrypto.h"
#include "rsa.h"
#include "dsa.h"
#include "silcssh_pkcs.h"
}
/* Decode the private key */
- ret = silc_pkcs_ssh_import_private_key(pkcs, alg, filedata, filedata_len,
- (void *)&privkey, ret_alg);
+ ret = silc_pkcs_ssh_import_private_key(pkcs, alg, NULL, 0, filedata,
+ filedata_len, (void *)&privkey,
+ ret_alg);
silc_free(data);
if (ret) {
/* Verify */
op = pubkey->pkcs->verify(pubkey->pkcs, pubkey->public_key,
signature, signature_len,
- data, data_len, hash, rng,
+ data, data_len, compute_hash, hash, rng,
verify_cb, context);
silc_free(signame);