Cookie Policy

About this cookie policy This Cookie Policy explains what cookies are and how we use them. You should read this policy to understand what cookies are, how we use them, the types of cookies we use i.e, the information we collect using cookies and how that information is used and how to control the cookie preferences. For further information on how we use, store and keep your personal data secure, see our Privacy Policy. ...

April 14, 2019 · 4 min · msoos

CryptoMiniSat FAQ

Is CryptoMiniSat just MiniSat with some hacks? No. MiniSat’s “core” version, from which CryptoMiniSat was originally developed, contained about 1,500 lines of code. CryptoMiniSat today contains over 55,000 lines of code. Is CryptoMiniSat only good to solve cryptographic instances? No. Naturally, it was one of the program’s aims, but it also performs well on other instances. XORs, one of the major features of CryptoMiniSat, also come up in model counting, sampling, and software verification, for example. It is the SAT solver used by our approximate model counter ApproxMC and our almost-uniform sampler UniGen, and our fast sampler CMSGen is built on it. ...

July 10, 2013 · 4 min · msoos

XOR clauses

One of the most challenging problems when trying to describe cryptographic primitives in SAT solvers is the XOR function that is used very often in cryptography. MiniSat (and most DPLL-based SAT solvers) only understands the Conjunctive Normal Form, or CNF for short. However, to describe a XOR function in CNF you need to have 2^{n-1} clauses, where n is the size of your XOR function. To overcome this exponential explosion, XOR functions are cut up into manageable sizes (6-7) and then implemented in 2^5–2^6 clauses each. This is not only tedious, uses a lot of memory and slow, but also makes it impossible to do interesting operations on XORs directly, such as XOR-ing two XORs to knock out variables. Note that CryptoMiniSat 2.0 and above can recover the XOR clauses from the CNF, but it is still of considerable interest in using the XOR notation described below. ...

January 4, 2011 · 2 min · msoos