Code Monkey home page Code Monkey logo

cryptogotchas's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cryptogotchas's Issues

Create section talking about domain separation

People keep messing up domain separation, so we need to talk about it. Things to include are:

  • Using explicitly different keys for different domains
  • Deriving different keys for different domains
  • AAD
  • Having some universally parsable portion of the ciphertext which indicates the domain (this is a bad solution, but works)

Separate from keyed functions:

  • Different algorithms
  • Different prefixes
  • Different salts
  • etc.

Wrote "an" as "and"

If an adversary can get you to use an arbitrary algorithm, then they can select and insecure or completely broken one.

Create a list of topic intro papers

Create a list of papers/articles/blogs which are good introductions to various topics.

(Note to miscellaneous people. If you have good resources for this list, please link them here.)

Public keys really are public

Hi, nice collection of gotchas. Here's another suggestion:

An Australian government org created a cryptosystem called PLAID that tried to treat RSA public keys like secret IDs. RSA doesn't guarantee secrecy of public keys, and figuring out the public key from messages is an example of the German Tank Problem: https://eprint.iacr.org/2014/728.pdf (That whole doc is a good read for analysis of real-world cryptosystems.)

Just a neat example of "Only rely on what your primitives explicitly promise."

Actually, you could do a whole section on misuses of RSA :/

Values derived from secrets are secrets

People cannot assume that values derived from secrets can be made public unless guaranteed by the specification. For example, the hash of a secret key might reveal overly sensitive information about the key.

Update reading list

Reading list is missing things. Use discussed reading list as a starting point for here.

Searchable glossary

There was a similar earlier issue which resulted in the "how to read" page, but we still need an easily searchable glossary.

I need a way to easily find short definitions/descriptions of every cryptographic concept I keep bumping into along with links to references (wiki or articles) to help me learn more.

This should be a raw list (rather than narrative) and easily searchable.

Pull keys out to own section

We need to pull discussion of keys out to their own section. We should definitely touch upon that a key isn't just the literal bytes but also all of the parameters/etc. needed to use it. (Tink takes this philosophy also). We should also talk about types/permissions/etc. as expressed in PKCS#11 and/or the JDK.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.