Skip to main content

Questions tagged [cryptocode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
18 views

Using "cases" inside of cryptocode pseudocodeblock [duplicate]

I'm trying to use "cases" (from the amsmath package) inside of a "pseudocodeblock" (from the cryptocode package). However, this causes errors, apparently because of a clash between ...
Huck Bennett's user avatar
1 vote
1 answer
41 views

How to put a text inside a box within a boxed environment?

I have the following LaTeX code, which makes use of a boxed environment. I want to put some of the text within a dashed and normal box, but it throws an error. Any ideas how to achieve this? \...
pixel's user avatar
  • 1,370
2 votes
0 answers
105 views

Document hangs when compiling when loading breqn (even without using it)

The following document hangs when compiling, seems like I can't load breqn, bracket and cryptocode (or is it tikz?) together… It compiles fine when I unload \usepackage{breqn} but I would like to use ...
tobiasBora's user avatar
  • 8,854
0 votes
1 answer
218 views

Automatically scaling pseudocodeblock to fit in the page

I have an environment (pseudocodeblock from the cryptocode package) that goes into the margin if the content is too large: For now, I can manually resize it using \scalebox and minipage, but I need ...
tobiasBora's user avatar
  • 8,854
1 vote
1 answer
173 views

Cryptocode pseudocode: ignore a single line's column sizes

I'm writing a 2-player protocol with cryptocode's pseudocode, and have a while condition which applies to both players. Since the while condition is long it shifts the other columns far to the right, ...
Benjamin Lieber's user avatar
1 vote
1 answer
683 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 ...
Maeher's user avatar
  • 334
3 votes
1 answer
468 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 ...
VitoShade's user avatar
2 votes
0 answers
177 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 ...
CRTified's user avatar
1 vote
2 answers
404 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 ...
tobiasBora's user avatar
  • 8,854
2 votes
2 answers
220 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 ...
tobiasBora's user avatar
  • 8,854
1 vote
1 answer
298 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/...
Tristan Nemoz's user avatar
0 votes
2 answers
918 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 ...
rpsteiger's user avatar
4 votes
1 answer
263 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{...
Shweta Aggrawal's user avatar
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 ...
riccs_0x's user avatar
  • 1,107
2 votes
1 answer
292 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 ...
tobiasBora's user avatar
  • 8,854
1 vote
0 answers
209 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} ...
jvdh's user avatar
  • 145
2 votes
2 answers
1k 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 ...
CipherX's user avatar
  • 123
1 vote
1 answer
677 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]{...
Kuroi Ryū's user avatar
0 votes
0 answers
154 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\}\\ ...
Kuroi Ryū's user avatar
0 votes
0 answers
195 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. ...
tobiasBora's user avatar
  • 8,854
2 votes
1 answer
160 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{...
tobiasBora's user avatar
  • 8,854