summaryrefslogtreecommitdiffstats
path: root/cpukit/libmd/sha256c.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* libmd: Remove extra digest copy in SHA256_Final()Sebastian Huber2022-11-091-1/+0
| | | | | The extra digest copy was introduced by an erroneous merge conflict resolution for commit "crypto routines: Hint minimum buffer sizes to the compiler".
* libmd: Always erase context in _Final method,Xin LI2022-09-081-1/+1
| | | | | | | | | | and when doing it, consistently use explicit_bzero(). Update manual pages to match the behavior. Reviewed by: pfg, allanjude, jmg MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D16316
* Implement SHA2-224 submode of SHA2-256Conrad Meyer2022-09-081-0/+51
| | | | | Like SHA2-384:SHA2-512, SHA2-224 is simply a truncated SHA2-256 with a different initial vector. Add to round out the complete basic SHA2 family.
* Retune SHA2 code for improved performance on CPUsColin Percival2022-09-081-87/+87
| | | | | | | | | | | | | | | with more ILP and a preference for memory load instructions over large code footprints with embedded immediate variables. On amd64 CPUs from 2007-2008 there is not a significant change, but amd64 CPUs from 2009-2010 get roughly 10% more throughput with this code; amd64 CPUs from 2011-2012 get roughly 15% more throughput; and AMD64 CPUs from 2013-2015 get 20-25% more throughput. The Raspberry Pi 2 increases its throughput by 6-8%. Sponsored by: Tarsnap Backup Inc. Performance tested by: allanjude MFC after: 3 weeks
* crypto routines: Hint minimum buffer sizes to the compilerConrad Meyer2022-09-081-2/+3
| | | | | | | | | | | Use the C99 'static' keyword to hint to the compiler IVs and output digest sizes. The keyword informs the compiler of the minimum valid size for a given array. Obviously not every pointer can be validated (i.e., the compiler can produce false negative but not false positive reports). No functional change. No ABI change. Sponsored by: EMC / Isilon Storage Division
* Add SHA256 and SHA512 supportSebastian Huber2014-11-201-0/+297