11 Commits

Author SHA1 Message Date
Michael Weghorn
22edc2a228 Port from PyCrypto to PyCroptodome
As the PyCrypto website says [1]:

> PyCrypto 2.x is unmaintained, obsolete, and contains security
> vulnerabilities.

Therefore, switch to PyCryptodome, a maintained PyCrypto fork
which is listed there as the recommended alternative for
existing software that depends on PyCrypto.

Notes on the port:

1) As the PyCryptodome introduction documentation [2] says,
there are 2 alternative projects/namespaces that can be
used:

* pycryptodome, which uses the `Crypto` package
  that PyCrypto also uses, so is almost a drop-in
  replacement for Pycrypto

* pycryptodomex, which uses the `Cryptodome` package

It also mentions that the use of pycryptodome
"is therefore recommended only when you are
sure that the whole application is deployed in a virtualenv".

Since it isn't sure that the application is deployed in a
virtualenv, to make it more explicit that PyCryptodome
is being used and because Linux distros like Debian
package the `Cryptodome` package [3], the port is done to
the `pycryptodomex` library that uses the `Cryptodome`
package name.

2) As the "Compatibility with PyCrypto" page in the PyCryptodome
doc [4] says:

> The following packages, modules and functions have been removed:
>
> * Crypto.Random.OSRNG, Crypto.Util.winrandom and Crypto.Random.randpool.
>   You should use Crypto.Random only.

The `PublicKey.RSA.generate` method already uses
`Crypto.Random.get_random_bytes()` as default [5],
so just drop the second parameter using `RandomPool.getBytes`
in `virtualsmartcard/src/vpicc/virtualsmartcard/cards/cryptoflex.py`.

[1] https://www.pycrypto.org/
[2] https://www.pycryptodome.org/src/introduction
[3] https://packages.debian.org/bullseye/python3-pycryptodome
[4] https://pycryptodome.readthedocs.io/en/latest/src/vs_pycrypto.html
[5] https://pycryptodome.readthedocs.io/en/latest/src/public_key/rsa.html
2022-09-17 22:15:39 +02:00
Frank Morgner
27b3dfb62b regenerated documentation 2021-04-28 02:13:40 +02:00
Ludovic Rousseau
c05106aa12 Update PCSC-lite URL
The website moved from alioth.debian.org to apdu.fr
2021-04-17 18:44:41 +02:00
Ludovic Rousseau
5ae3cf820e Update CCID driver URL
The website moved from alioth.debian.org to apdu.fr
2021-04-17 18:37:58 +02:00
David Ward
bc8b237c5a ccid-emulator: Build libopensc from source code
There is no longer an external (or stable) interface for libopensc.
Linking this program with an existing version of libopensc that is
pre-installed in the system library paths is not practical.

However, a specific snapshot of the OpenSC source code is embedded
here as a Git submodule (and included in the source distributions).
Build libopensc from this and statically link it into this program.
(Options such as '--enable-openpace' that are passed to ./configure
will be forwarded to control the build configuration of libopensc.)

Remove code that existed for compatibility when dynamically linking
with older versions of libopensc.
2020-04-11 10:09:27 -04:00
Frank Morgner
7e70c87dde added documentation about TCardEmulator
rebuilt docs with 'pdf2svg' for tizk images
2017-01-16 01:29:58 +01:00
Frank Morgner
df93f67299 Updated documentation 2017-01-08 23:02:30 +01:00
Frank Morgner
564b939078 rebuilt docs 2017-01-05 00:14:10 +01:00
Frank Morgner
6b13057200 updated documentation
- use a more compact summary
- remove libnpa from the navigation
2016-10-12 17:37:00 +02:00
Frank Morgner
5bc798fd31 rebuilt documentation 2016-10-10 12:25:54 +02:00
Frank Morgner
1a86f1ebe0 use vsmartcard/docs for website 2016-10-10 10:32:24 +02:00