]> git.meshlink.io Git - meshlink/blobdiff - src/gcrypt/cipher.c
Small fixes to make gcrypt routines compile.
[meshlink] / src / gcrypt / cipher.c
index 8920a706aef88a642668de3fbeeeb0c0ca5c3318..71add007dbd543bec79dce6bf2dda2167ace9d33 100644 (file)
@@ -173,7 +173,7 @@ bool cipher_set_key(cipher_t *cipher, void *key, bool encrypt) {
        return true;
 }
 
-bool cipher_set_key(cipher_t *cipher, void *key, size_t len, bool encrypt) {
+bool cipher_set_key_from_rsa(cipher_t *cipher, void *key, size_t len, bool encrypt) {
        memcpy(cipher->key, key + len - cipher->keylen, cipher->keylen + cipher->blklen);
        memcpy(cipher->key + cipher->keylen, key + len - cipher->keylen - cipher->blklen, cipher->blklen);