Questions tagged [cryptocode]
The cryptocode tag has no usage guidance.
16
questions
0
votes
1
answer
65
views
Centering a pchstack environment that is wider than \textwidth
I have a pchstack environment from the cryptocode package that is slightly too wide to fit within the text width. I want to center it anyway such that it encroaches on both margins. A minimal example ...
3
votes
1
answer
147
views
Cryptographic protocol, execution example
Is there an easy (or even hard) way to draw an execution example of a cryptographic protocol? I'm trying to write about BB84 in my master's thesis, i'm looking for something like this:
or this:
I ...
2
votes
0
answers
58
views
Cryptocode breaks multi-column matrices
I am using the package cryptocode to typeset some algorithms. There, I need to write a 2x2 matrix, but using & breaks the compilation with pdflatex, xelatex and lualatex.
Here is a minimal example ...
0
votes
2
answers
65
views
Cryptocode/falign: spacing between lines
I'm using cryptocode to display some crypto-related things in a memoir document, but I'd like to decrease the default spacing, which is huge (especially when using one half spacing in the rest of the ...
2
votes
2
answers
58
views
Cryptocode: Cref should link to a game, and write its name
I'm using \cryptocode to display codes like:
By default, it seems that it's not floating. However, when the games are big I'd prefer to make them float. Moreover, to refer to them, I'd like to just ...
1
vote
1
answer
94
views
How to remove the etex warning when using cryptocode with the llncs document class?
When using the cryptocode package along with the llncs document class, as provided by the Overleaf template, etex complains with the following warning:
/usr/local/texlive/2020/texmf-dist/tex/latex/...
0
votes
2
answers
118
views
How can I create an alice/bob (crypto) protocol diagram with arrows
This image is taken from Boyd's book 'Protocols for Authentication and Key Establishment'. How can I create something similar? The arrows are important to me, since they allow to denote that User A ...
4
votes
1
answer
134
views
Text running out of fbox
I have the following piece of Latex code. I want the text to be inside that box but it is running outside. Can someone please help?
\documentclass[]{article}
\usepackage{varwidth}
\usepackage{...
7
votes
6
answers
1k
views
How to fill a Vigenère square?
Im trying to do a Vigenère square, but I have to modify it several times, so
is there any way to fill it with multido or any other method, instead of tabular and by hand.
UPDATE
All are great answers ...
2
votes
1
answer
79
views
Cryptocode: first line number with label instead of hardcoded
In cryptocode, it is possible to define the first line number of a block using something like lnstart=3. However, most of the time I want to set this number depending on the position of a specific ...
1
vote
0
answers
91
views
cryptocode sign doesn't work
For some reason /sign does not work for me, while other cryptocode operators work without problem.
\documentclass[11pt]{article}
\usepackage[primitives]{cryptocode} % crypto diagrams
\begin{document}
...
2
votes
2
answers
432
views
cryptocode 2 columns
I am working with the cryptocode packet in a contribution with two columns on Overleaf. I have the following sample code, but I have some problem to fix the overlap with the second column. Here the ...
1
vote
1
answer
446
views
Cryptocode: how to place the oracle and place its arrows?
How the result should look like:
How it looks like right now:
I marked the problem with yellow on both images. Here is my MWE:
\documentclass[a4paper]{article}
\usepackage{mathtools}
\usepackage[T1]{...
0
votes
0
answers
80
views
Cryptocode: multiple items on arrow bbroracleqry(from/to) and how to place them
Hope some of you can help!
MWE:
\begin{bbrenv}{A}
\begin{bbrbox}[name=$\mathcal{C}$]
\pseudocode{%
((N,e),d) \leftarrow \gen(1^n)\\
b \leftarrow^r \{0,1\}\\
...
0
votes
0
answers
99
views
Cryptocode: remove annoying margins around figures
I would like to chain some boxes using the cryptocode package. But I can't find how to do it efficiently. I tried to change the style, look at the code... but I can't find the origin of this spacing. ...
2
votes
1
answer
92
views
Cryptocode package: dashed arrow
I'd like to add a dashed arrow for the one annoted c in this drawing:
However, I can't find how to do, the style property does not work apparently for this kind of arrow...
MWE:
\documentclass{...