Tag: python

GPG-Agent Socket Paths

Written by Dominik Pantůček on 2024-12-19

Originally working on a YubiKey support for Crypt4GH stream processing library turned out to become a work to fully support GnuPG at least on UNIX platforms. In recent GnuPG versions everything is handled by gpg-agent but an interesting problem arose - how to find its socket when using alternative GnuPG homedir?

...

LibAssuan Binary S-Expressions

Written by Dominik Pantůček on 2024-11-21

Faced with the requirement of computing symmetric key from the result of Elliptic-Curve Diffie-Hellman key exchange according to a specification, the primary ingredient for such calculation is the result itself. Read on to see how Interesting things you may find if you need to use YubiKey's OpenPGP Card application as a foundational component of any solution.

...

Python Cryptography Testing and Coverage

Written by Dominik Pantůček on 2024-09-26

Working on a cryptographic library comes with certain challenges - like testing all the functions with (ideally all) incorrect inputs. In our recent project we leveraged Python's testing framework pytest with its support for coverage reporting to ensure we get to handle various - but very specific - kinds of corrupted input.

...

Python, mkdocs and mkdocstrings

Written by Dominik Pantůček on 2024-09-12

When creating a library with some rather uncommon features, it is vital to ensure its users will be able to correctly use it by providing a useful documentation. Turns out this is possible even for Python projects.

...

Code emulation with Ghidra SRE

Written by Jiří Keresteš on 2021-04-08

Did you know that Ghidra SRE has the ability to emulate code? If you want to know how we use it to save time when reversing firmware binaries, read on!

...