Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Darby Sager
    @linkwoman
    Hi. How do I install cryptonite on mac?
    Timothy Klim
    @TimothyKlim
    Hi @linkwoman , try to install cryptonite with http://docs.haskellstack.org/en/stable/README.html
    Ruud van Asseldonk
    @ruuda
    Hi. I want to verify a HMAC that I receive as hexadecimal text. How can I go from Text/String/ByteString (but containing ascii 0-F, not the raw digest bytes) to a HMAC, in order to compare it in constant time to the computed one?
    Nicolas Di Prima
    @NicolasDP
    Hi, I think you would need to decode your hexadecimal encoded digest into a ByteString
    and then to use digestFromByteString
    and then to build your HMAC from the Digest
    This message was deleted
    something like:
    maybe (error "not a digest of the right size") HMAC $ digestFromByteString . fromHexadecimal
    Ruud van Asseldonk
    @ruuda
    And fromHexadecimal is not something built-in, is it?
    Nicolas Di Prima
    @NicolasDP
    the memory package will have the tool you need: http://hackage.haskell.org/package/memory
    Ruud van Asseldonk
    @ruuda
    Thanks!
    Anon Ray
    @ecthiender
    Hello, I'm using the generate function from https://hackage.haskell.org/package/cryptonite-0.25/docs/Crypto-PubKey-RSA.html to generate a keypair to be used as SSH keys.
    The first question, is my usage of the function correct? I want to finally be able to use these RSA key pair as openssh SSH key pairs.
    Second, generating a 2048 bit key pair takes around 3-4 minutes. Is that normal?
    Anon Ray
    @ecthiender
    4096 bit generation was taking way too longer. I did not let it complete.
    Anon Ray
    @ecthiender
    Fair disclaimer: I'm not even remotely related to crypto. I know, at a high-level, how public crypto works - but that's all. And I want to generate a SSH key pair in the application that I'm writing.
    Sibi
    @psibi
    So, In one of my projects - I need to compute Fletcher's checksum. Is cryptonite open to the addition of this checksum ?
    Vincent Hanquez
    @vincenthz
    @psibi the bar is usually pretty low, but it doesn't strike me as cryptographic
    Sibi
    @psibi
    @vincenthz Yeah, It's not cryptographic from the limited reading I have done so far. Is there any other package suited for this kind of functionality ?
    I would like to add to any existing package, if possible.
    Vincent Hanquez
    @vincenthz
    maybe basement or memory ?