Permalink
Switch branches/tags
Commits on Jun 20, 2015
  1. Use sh instead of bash in config.sh

    essen committed Jun 20, 2015
    As far as I can tell there's no need to use bash explicitly.
    
    This change allows systems without bash installed to compile
    the project.
Commits on May 25, 2015
  1. ARMv7l (RPi Model-B) CFLAGS do not support -m32 flag

    radekg committed with vinoski May 15, 2015
    Adjust associated -m64 settings as well.
    
    Update version to 2.2.1, and update docs with new version number.
Commits on Jan 27, 2015
  1. Update to version 2.2.

    vinoski committed Jan 27, 2015
    New version 2.2 denotes change to use erlang:nif_error/1 in hmac.erl
    to indicate a NIF loading error.
  2. Add .d files to .gitignore

    vinoski committed Jan 27, 2015
    Newer versions of rebar generate .d files for dependency
    tracking. Ignore them.
    
    Also fix URL of rebar mentioned in a Makefile comment.
Commits on May 24, 2014
  1. replace hmac:hexlify with a NIF

    vinoski committed May 24, 2014
    In pull request 9, @bosky101 showed that the performance of hmac:hexlify/1
    could be increased in pure Erlang code, but my further experimentation
    showed that even better performance could be achieved by replacing
    hmac:hexlify/1 with a NIF, an approach that fits well with erlsha2's
    existing use of NIFs.
    
    Also add hmac:hexlify/2 to allow the caller to specify the function's
    return value as either a string or a binary and with either uppercase or
    lowercase alphabetic hex digits. For backward compatibility, the default is
    to return an uppercase string, same as hmac:hexlify/1.
    
    Add tests for hmac:hexlify/2 and update the docs.
    
    Update version to 2.1.
    
    Many thanks to @bosky101 for finding this performance issue and also for
    suggesting adding support for both string and binary hexlify return values.
  2. update edown usage and generated docs

    vinoski committed May 24, 2014
    Use of edown for documentation was out of date with respect to edown
    itself. Use edown rebar.config.script and associated priv/*.script files to
    add edown as a dependency when building the doc target.
    
    Also update generated erlsha2 documentation.
Commits on Nov 19, 2013
  1. fix issue #8: compile warnings on R16B and greater

    vinoski committed Nov 19, 2013
    R16B and greater deprecated the crypto:sha_mac/2 function; on those
    versions, use crypto:hmac/3 instead.
Commits on Mar 13, 2013
  1. add edown-generated docs

    vinoski committed Mar 13, 2013
Commits on Feb 7, 2013
  1. Merge pull request #7 from stefanrusek/master

    vinoski committed Feb 7, 2013
    fix erlsha2 on arm platforms
  2. Fix rebar.config so for arm

    stefanrusek committed Feb 7, 2013
    -m32 is not a valid gcc param on arm
Commits on Mar 30, 2012
Commits on Mar 28, 2012
Commits on Mar 12, 2012
  1. fix rebar deprecation warnings

    vinoski committed Mar 12, 2012
    The rebar build tool has undergone changes over the past few months,
    deprecating some features that erlsha2 happens to use and replacing
    them with new features. Update rebar.config to the new features,
    thereby avoiding deprecation warnings.
Commits on Oct 3, 2011
  1. use new edown_make script to generate documentation

    vinoski committed Oct 3, 2011
    To eliminate the rebar dependency on edown, change the "make edoc"
    target to use the new edown_make script to generate documentation.
Commits on Oct 1, 2011
  1. fix previous commit: add hmac doc and remove rebar

    vinoski committed Oct 1, 2011
    The previous commit added the hmac module and was supposed to include
    hmac documentation, but by accident it didn't. Add hmac specs and
    doc.
    
    Also remove local copy of rebar -- rebar is popular enough now that
    erlang developers generally need a copy on their system, and we don't
    want to have to keep updating a local copy here every time the rebar
    devs make a change.
Commits on Sep 29, 2011
  1. add support for HMAC

    jflatow committed with vinoski Aug 3, 2011
    Add support for HMAC of various sizes. Add documentation for new hmac
    module. Add tests for new hmac functions. Add Makefile. Update
    rebar.config to latest rebar.
Commits on Aug 4, 2011
  1. comment out edown dependency in rebar.config

    vinoski committed Aug 4, 2011
    The edown tool is needed only for generating documentation, so comment
    out its rebar.config lines by default. Uncomment them if you need to
    generate documentation.
Commits on May 6, 2011
  1. code clarifications in c_src/config.sh

    vinoski committed May 6, 2011
    Use [[ ]] tests everywhere, and fix the test of the CC env var to make
    it clear what it's checking for.
Commits on May 3, 2011
  1. Fix rebar deprecation warnings

    tuncer committed May 3, 2011
Commits on Mar 25, 2011
  1. add missing edown pretty_printer option

    vinoski committed Mar 25, 2011
    The doc/erlsha2.md file generated by edown previously needed a lot of
    hand-editing to make it right. Ulf Wiger found the pretty printing
    option missing from the edown directives in rebar.config. Add that
    option, delete the hand-edited doc/erlsha2.md, and restore the edown
    doc generation directives in rebar.config.
Commits on Mar 23, 2011
  1. hand-edit edown-generated doc/erlsha2.md

    vinoski committed Mar 23, 2011
    Hand-edit doc/erlsha2.md generated by edown to clean up HTML
    artifacts. Modify rebar.config to comment out the edown rules so
    they're not run by default (since they'd overwrite doc/erlsha2.md).
Commits on Mar 11, 2011
  1. add more update tests

    vinoski committed Mar 11, 2011
Commits on Mar 9, 2011
  1. return value of ok from init/0

    vinoski committed Mar 9, 2011
    The original return value of ok from init/0 got dropped accidentally
    in a previous commit. Always return ok so that we fall back to the
    Erlang variants of the hash functions if NIF loading fails.
Commits on Mar 2, 2011
  1. change NIF resource handling to avoid leaks

    vinoski committed Mar 2, 2011
    NIF resources could leak if a caller invoked one of the sha*_init
    functions without ever passing it to the corresponding sha*_final
    function. Resources are now freed immediately after creating resource
    terms that are returned to callers. Also, add a Context destructor to
    free the contained binary if it's never been returned to the caller.
Commits on Feb 22, 2011
  1. keep code within 80 columns

    vinoski committed Feb 22, 2011
Commits on Feb 21, 2011
  1. fix NIF badarg handling

    vinoski committed Feb 21, 2011
    Change the NIF internal update functions to return a boolean instead
    of a term to allow the caller to determine whether a badarg should be
    returned or not.
    
    Add new unit tests to verify badarg is received when expected.
  2. fix URL typos

    vinoski committed Feb 21, 2011
Commits on Feb 20, 2011
  1. merge tuncer's rebar.config simplications

    vinoski committed Feb 20, 2011
    Merge branch 'rebar' of https://github.com/tuncer/erlsha2
  2. Simplify rebar.config

    tuncer committed Feb 20, 2011