• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

libOctavo / octavo / 228
92%

Build:
DEFAULT BRANCH: master
Ran 15 Nov 2015 09:44PM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
228

push

travis-ci

homu
Auto merge of #55 - libOctavo:sha-512-224-and-256, r=hauleth

Add SHA-512/224 and SHA-512/256 hash functions

SHA2-512/224 and SHA-512/256 implemented, using existing macros for sha2 functions. However, SHA2-512/224 has 224 bits, and that is not a multiple of 64. Thus, `write_u64()` used for writing state to resulting `out` slice cannot be used directly (as it would copy 4 bytes to few to out, or 4 to many).

Because of that a *proxy* struct `_Sha512_224` which outputs 256 bits is created, and its methods are simply called by proper `Sha512_224` struct. In the `result()` method a new vec, `res` is created, result is written to it, and then 28 first bytes are copied to `out` using a simple for loop.

SHA2-512/256 is implemented with just `impl_sha!(high Sha512_256, SHA512_256_INIT, 256)`.

It closes #47.
Source Files on build 228
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #228
  • 6767b05a on github
  • Prev Build on master (#221)
  • Next Build on master (#241)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc