X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccrypt%2Fsilcpk.c;h=7e7c234e72681cd6355c0e6b69aec9e51cf37215;hb=35cdce343e56b7bae588a4fe7ba0bf8615a48170;hp=b0fd72835fcab0a660545a286e0b0117e8193d2e;hpb=609978b52bc2d6a26ef98cacd35bed5cde0714e7;p=silc.git diff --git a/lib/silccrypt/silcpk.c b/lib/silccrypt/silcpk.c index b0fd7283..7e7c234e 100644 --- a/lib/silccrypt/silcpk.c +++ b/lib/silccrypt/silcpk.c @@ -863,7 +863,7 @@ SilcBool silc_pkcs_silc_import_private_key_file(unsigned char *filedata, silc_hash_final(sha1, keymat + 16); /* Set the key to the cipher */ - silc_cipher_set_key(aes, keymat, 256); + silc_cipher_set_key(aes, keymat, 256, FALSE); /* First, verify the MAC of the private key data */ mac_len = silc_hmac_len(sha1hmac); @@ -1275,7 +1275,7 @@ silc_pkcs_silc_export_private_key_file(void *private_key, silc_hash_final(sha1, keymat + 16); /* Set the key to the cipher */ - silc_cipher_set_key(aes, keymat, 256); + silc_cipher_set_key(aes, keymat, 256, TRUE); /* Encode the buffer to be encrypted. Add padding to it too, at least block size of the cipher. */