Displaying 20 results from an estimated 114 matches for "rsa_key".
2019 Jul 03
3
[PATCH v2 06/35] crypto: Use kmemdup rather than duplicating its implementation
...caampkc.c b/drivers/crypto/caam/caampkc.c
index fe24485274e1..a03464b4c019 100644
--- a/drivers/crypto/caam/caampkc.c
+++ b/drivers/crypto/caam/caampkc.c
@@ -816,7 +816,7 @@ static int caam_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key,
return ret;
/* Copy key in DMA zone */
- rsa_key->e = kzalloc(raw_key.e_sz, GFP_DMA | GFP_KERNEL);
+ rsa_key->e = kmemdup(raw_key.e, raw_key.e_sz, GFP_DMA | GFP_KERNEL);
if (!rsa_key->e)
goto err;
@@ -838,8 +838,6 @@ static int caam_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key,
rsa_key->e_sz = raw_key.e_sz;...
2019 Jul 03
3
[PATCH v2 06/35] crypto: Use kmemdup rather than duplicating its implementation
...caampkc.c b/drivers/crypto/caam/caampkc.c
index fe24485274e1..a03464b4c019 100644
--- a/drivers/crypto/caam/caampkc.c
+++ b/drivers/crypto/caam/caampkc.c
@@ -816,7 +816,7 @@ static int caam_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key,
return ret;
/* Copy key in DMA zone */
- rsa_key->e = kzalloc(raw_key.e_sz, GFP_DMA | GFP_KERNEL);
+ rsa_key->e = kmemdup(raw_key.e, raw_key.e_sz, GFP_DMA | GFP_KERNEL);
if (!rsa_key->e)
goto err;
@@ -838,8 +838,6 @@ static int caam_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key,
rsa_key->e_sz = raw_key.e_sz;...
2019 Jul 03
0
[PATCH 05/30] crypto: Use kmemdup rather than duplicating its implementation
...caampkc.c b/drivers/crypto/caam/caampkc.c
index fe24485274e1..a03464b4c019 100644
--- a/drivers/crypto/caam/caampkc.c
+++ b/drivers/crypto/caam/caampkc.c
@@ -816,7 +816,7 @@ static int caam_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key,
return ret;
/* Copy key in DMA zone */
- rsa_key->e = kzalloc(raw_key.e_sz, GFP_DMA | GFP_KERNEL);
+ rsa_key->e = kmemdup(raw_key.e, raw_key.e_sz, GFP_DMA | GFP_KERNEL);
if (!rsa_key->e)
goto err;
@@ -838,8 +838,6 @@ static int caam_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key,
rsa_key->e_sz = raw_key.e_sz;...
2019 Jul 03
0
[PATCH v2 06/35] crypto: Use kmemdup rather than duplicating its implementation
...c
> index fe24485274e1..a03464b4c019 100644
> --- a/drivers/crypto/caam/caampkc.c
> +++ b/drivers/crypto/caam/caampkc.c
> @@ -816,7 +816,7 @@ static int caam_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key,
> return ret;
>
> /* Copy key in DMA zone */
> - rsa_key->e = kzalloc(raw_key.e_sz, GFP_DMA | GFP_KERNEL);
> + rsa_key->e = kmemdup(raw_key.e, raw_key.e_sz, GFP_DMA | GFP_KERNEL);
> if (!rsa_key->e)
> goto err;
>
> @@ -838,8 +838,6 @@ static int caam_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key,
> rsa_k...
2006 Nov 24
1
What's wrong in these configurations?
Hi guys!!
I've followed the windows 2000/xp tutorial and not only, but it seems
not to work! I've for sure committed some errors...
PC (under NAT)
files:
tinc/vpn/tinc.conf
tinc/vpn/rsa_key.priv
tinc/vpn/hosts/elegos
tinc/vpn/hosts/shadowkrad
tinc.conf:
Name = elegos
ConnectTo = shadowkrad
TCPOnly = yes
Interface = VPN
(TCPOnly as under a NAT)
rsa_key.priv:
-----BEGIN RSA PRIVATE KEY-----
*cut*
-----END RSA PRIVATE KEY-----
elegos:
Address = 1.27.***.74
Subnet = 1.1.1.1/32
-----BE...
2010 Mar 17
1
Check public/private RSA keypairs
...thout having to vnc to them for ages.
To do this easier, i wanted to have a possibility to check somehow if
the public key stored on the server mathes the provate key on the
client, or if it needs to be regenerated.
Now i figured i can output the public key to a private one by using
openssl rsa -in rsa_key.priv -pubout
this one will print out a public key in the same format as the public
key stored in the hosts file, i tested it with some clients, and every
private key will generate a pubkey different to the one in the hostfile,
but each of these clients do work in my vpn, so the public/private
keypa...
2019 Nov 24
4
Warning: old key(s) found and disabled.
...rying to set up
keys for a new network:
# tincd -n existing_net -K
Generating 2048 bits keys:
............................................+++++ p
..................................................................+++++ q
Done.
Please enter a file to save private RSA key to
[/etc/tinc/existing_net/rsa_key.priv]:
Warning: old key(s) found and disabled.
Please enter a file to save public RSA key to
[/etc/tinc/existing_net/hosts/host_on_existing_net]: ^C
I realized my error when tinc warned me, thus the ^C.
Now /etc/tinc/existing_net/rsa_key.priv has been replaced, while
/etc/tinc/existing_net/hosts...
2002 Aug 15
4
tinc-1.0pre7-i386-1.tgz
...alleerd met SuSe 7.3, daar de klanten dit ook hebben. De computers zijn
verbonden met een switch.
Dit is de inhoud van mijn bestanden:
Op computer 1 genaamd suse met ip 192.168.0.99 netmask 255.255.255.0
/etc/tinc/tinc.conf:
Name = suse
TapDevice = /dev/tun
PrivateKeyFile = /etc/tinc/test-vpn/rsa_key.priv
ConnectTo = Arnout
Hostnames = no
KeyExpire = 3600
PingTimeout = 60
/etc/tinc/test-vpn/tinc-up
#!/bin/sh
ifconfig eth0 down
ifconfig eth0 hw ether fe:fd:00:00:00:00
ifconfig eth0 192.168.0.99 netmask 255.255.255.0
ifconfig eth0 -arp
/etc/tinc/test-vpn/tinc.conf
Name = suse
TapDevice = /de...
2001 Nov 21
1
Connection problems
...1312249 (1.2 Mb) TX bytes:8034730 (7.6 Mb)
Now I want to create a VPN between 192.168.1.0/24 on routerA and 192.168.2.0/24 on routerB.
Here is what my config files look like on routerA:
--- tinc.conf ---
Name = routerA
TapDevice = /dev/net/tun
KeyExpire = 30000000
PrivateKeyFile = /etc/tinc/vpn/rsa_key.priv
---------------------
--- tinc-up ---
#!/bin/sh
/sbin/ifconfig vpn hw ether fe:fd:0:0:0:0
/sbin/ifconfig vpn 192.168.1.1 netmask 255.255.0.0 -arp
------------------
--- hosts/routerA ---
Address = 123.123.123.123
Subnet = 192.168.1.0/24
-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBAKz4+UIgS849Y1vgzd...
2002 Dec 27
1
Bug in tinc manual
I found the following error in tinc manual
in http://tinc.nl.linux.org/documentation/tinc_4.html
PrivateKey = /etc/tinc/company/rsa_key.priv
should be:
PrivateKeyFile = /etc/tinc/company/rsa_key.priv
Tinc: Discussion list about the tinc VPN daemon
Archive: http://mail.nl.linux.org/lists/
Tinc site: http://tinc.nl.linux.org/
2019 Nov 09
3
Fwd: Error during key creation
...-K 4096
Cannot open config file /usr/local/etc/tinc/linodeVPN/tinc.conf: No such
file or directory
Failed to read `/usr/local/etc/tinc/linodeVPN/tinc.conf': No such file or
directory
Generating 4096 bits keys:
Done.
Please enter a file to save private RSA key to
[/usr/local/etc/tinc/linodeVPN/rsa_key.priv]:
Error opening file `/usr/local/etc/tinc/linodeVPN/rsa_key.priv': No such
file or directory
Any ideas what went wrong and how can I fix it?
Regards,
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachment...
2003 Oct 19
2
Tinc doesn't respond in Windows XP.
...install
I have the following in my home (Win XP with tinc-1.0.1-install.exe):
------------------------------------------------------------------------
C:\Program Files\tinc\vpn>type tinc.conf
AddressFamily = ipv4
Name = home
ConnectTo = office
Interface = VPN
C:\Program Files\tinc\vpn>type rsa_key.priv
-----BEGIN RSA PRIVATE KEY-----
MIICXgIBAAKBgQDSedLmhH6lK3wJv6Q6QUEFNg6xAvBQY9ISRq3ivGdbqrX8o0iu
(ommited)
gvT9fxMDhfu94PoSG08s+fEzAEKLmSoYzYBusUNuEh1dqg==
-----END RSA PRIVATE KEY-----
C:\Program Files\tinc\vpn>cd hosts
C:\Program Files\tinc\vpn\hosts>type office
Address = 143.106.50....
2002 Apr 25
1
Routing between two tunnels
...U 0 0 0 eth0
192.168.0.0 * 255.255.0.0 U 0 0 0 tap0
default 172.17.255.254 0.0.0.0 UG 0 0 0 eth0
:: tinc.conf ::
Name=glenn
Device=/dev/tap0
ConnectTo = melc
KeyExpire = 30000000
PrivateKeyFile = /etc/tinc/boppen/rsa_key.priv
:: tinc-up ::
#!/bin/sh
ifconfig tap0 hw ether fe:fd:00:00:00:00
ifconfig tap0 192.168.5.250 netmask 255.255.0.0
ifconfig tap0 -arp
::hosts/melc ::
Subnet = 192.168.1.0/24
Address = 194.165.252.37
Port = 655
TCPOnly = yes
-----BEGIN RSA PUBLIC KEY-----
...
::hosts/glenn
Subnet = 192.168.5.0...
2019 Nov 25
0
Warning: old key(s) found and disabled.
...:
>
> # tincd -n existing_net -K
> Generating 2048 bits keys:
> ............................................+++++ p
> ..................................................................+++++ q
> Done.
> Please enter a file to save private RSA key to
> [/etc/tinc/existing_net/rsa_key.priv]:
> Warning: old key(s) found and disabled.
> Please enter a file to save public RSA key to
> [/etc/tinc/existing_net/hosts/host_on_existing_net]: ^C
>
> I realized my error when tinc warned me, thus the ^C.
> Now /etc/tinc/existing_net/rsa_key.priv has been replaced, while...
2010 Dec 28
1
Trouble adding 2nd vpn
...tworks to be started on system
startup.
vpn
alan
#
donald at Donald-TincVM:/etc/tinc$ ls -la ./vpn
total 24
drwxr-xr-x 3 root root 4096 2010-12-27 07:33 .
drwxr-xr-x 4 root root 4096 2010-12-27 16:02 ..
drwxr-xr-x 2 root root 4096 2010-12-27 07:32 hosts
-rwxr-xr-x 1 root root 887 2010-03-07 11:09 rsa_key.priv
-rwxr-xr-x 1 root root 138 2010-12-27 07:33 tinc.conf
-rwxr-xr-x 1 root root 274 2010-12-26 12:26 tinc-up
donald at Donald-TincVM:/etc/tinc$ ls -la ./alan
total 24
drwxr-xr-x 3 root root 4096 2010-12-26 12:26 .
drwxr-xr-x 4 root root 4096 2010-12-27 16:02 ..
drwxr-xr-x 2 root root 4096 2010...
2001 Nov 04
8
Connection problem
...configuration files on LocationB
tinc-up
~~~~~~~~~~~~
#!/bin/sh
ifconfig $NETNAME hw ether fe:fd:00:00:00:00
ifconfig $NETNAME 192.168.1.1 netmask 255.255.0.0
ifconfig $NETNAME -arp
~~~~~~~~~~~~
tinc.conf
~~~~~~~~~~~~
Name = LocationB
ConnectTo = LocationA
PrivateKey = /usr/local/etc/tinc/ourvpn/rsa_key.priv
TapDevice = /dev/tun
~~~~~~~~~~~~
rsa_key.priv
~~~~~~~~~~~~
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQCiVD55i0HmftAPExWpnRbKMRiyXfRqQWNcN8IXa5Yzi76b9God
-SNIP-
I2nKxx2M4CpDhKHu2sNexfMiaNqR1Uc0uuiuPKpN0VA=
-----END RSA PRIVATE KEY-----
hosts/LocationA
~~~~~~~~~~~~
Subnet = 192.168.0.0/2...
2009 Dec 16
2
Response time on Tinc VPNs, Bandwith on Tinc-VPN
...s which is very slow.
I use 3 Windows XP and one Windows Vista Notebooks as client and a Windows Small Business Server 2008 as server. On the client-side the config-file looks like this:
Interface=Tinc-VPN
AddressFamily=ipv4
Mode=switch
Name=TincKnoten_PM1860NB
PrivateKeyFile=C:/Programme/tinc/ESV/rsa_key.priv
ConnectTo=TincKnoten_remote
TCPOnly=yes
The "tinc-up.bat"-file looks like this:
netsh interface ip set address %INTERFACE% static 192.168.19.1 255.255.255.0
The file "TincKnoten_remote" on the client looks like this (without public key):
Address=Server's DNS-Name
Port...
2018 Mar 11
1
Problem connecting two home networks (Windows/Linux)
...rs) and the Raspberry
(net.ipv4.ip_forward = 1).
Port forwarding for port 54321 is enabled on both routers.
Configuration files:
NodeVienna:
tinc.conf:
--
Name = NodeVienna
ConnectTo = NodeBerlin
Interface = vpn-dev
AddressFamily = ipv4
PrivateKeyFile=C:\Program Files\tinc\MyTincVPN\rsa_key.priv
Mode = router
--
IP config for the TAP-device (Version Windows 9.21.2) vpn-dev:
Static IP: 192.168.3.1 / Subnet mask 255.255.0.0
Firewall exception in place for tinc.exe
--
NodeBerlin:
Tinc.conf
--
Device=/dev/net/tun
Interface=MyTincVPN-dev
Mode=router
Name=NodeBerlin
AddressFa...
2015 Jan 12
1
SIMPLE TINC template example
...FOR MORE COMPLEX VPN setups
######Templatewriter.sh
#!/bin/bash
SDIR=$1
NODENAME=$2
PORT=$3
MASK=$4
LISTIP=$5
OPNIP=$6
VPNIP=$7
CONN1=$8
CONN2=$9
CONN3=${10}
#READING IN THE RSA AND 25519 KEYS CAUSES ALL SORTS OF HEADACHES WITH SED
#JUST KEEP THEM IN THE TEMPLATES AS IS
#RSAKEY=$(cat "/tinc/rsa_key.pub")
#ED25519KEY=$(cat "/tinc/ed25519_key.pub")
echo "-------------TEMPLATE WRITER VARIABLES-----------"
echo "DIR: ${SDIR}"
echo "NODENAME: ${NODENAME}"
echo "PORT: ${PORT}"
echo "MASK: ${MASK}"
echo "LISTIP: ${LISTIP}"
e...
2016 Feb 02
1
dual gateway with routing issues and tinc-up and host-up scripts for windows clients?
...----------------
echo -----BEGIN RSA PUBLIC KEY----- >> powercraft01/hosts/client02
...
echo -----END RSA PUBLIC KEY----- >> powercraft01/hosts/client02
#-----------------------------------------------------------------------
echo -----BEGIN RSA PRIVATE KEY----- >> powercraft01/rsa_key.priv
...
echo -----END RSA PRIVATE KEY----- >> powercraft01/rsa_key.priv
# todo: set permissions for rsa_key.priv file windows, this may not be needed
#-----------------------------------------------------------------------
# install tap device
C:\Program Files\tinc>tap-win32\addtap.bat...