Giter Site home page Giter Site logo

skein-arm's Introduction

Skein for ARMv7 with NEON

This is an implementation of the Skein hash function, as described in The Skein Hash Function Family, version 1.3.

The implementation is targeted towards the ARM Cortex-A8 processor, and uses the NEON SIMD instructions to perform 64-bit operations, where possible in parallel.

There are also Skein-256 and Skein-512 implementations that do not require NEON support.

The code is based on the optimized C version written by Doug Whiting, with the block functions rewritten in ARM assembly language.

Performance

For long messages the implementation reaches the following speeds in cycles per byte when tested on a Cortex-A8 processor:

Skein-256 20.3
Skein-512 15.4
Skein-1024 20.2

Without NEON:

Skein-256 21.7
Skein-512 25.2

See performance_test.txt for more detailed test output.

Compiling and running the test program

The Skein test program can be compiled using GCC as follows:

gcc *.c skein_block_cortexa8.S -DSKEIN_USE_ASM=256+512+1024

Or without NEON:

gcc *.c skein_block_noneon.S -DSKEIN_USE_ASM=256+512

In order for the performance test to have an accurate timer, you will need to enable user mode access to the ARM performance monitor registers.

One way to do this is to use the kernel module included in the userperf folder.

skein-arm's People

Contributors

unbounded avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

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.