class

Beryl::Crypto::V1::SecureHashWith64BitWords

Inherits Beryl::Crypto::V1::BlockHashFunction < Digest < Reference < Object

The SHA-2 compression function on 64-bit words (FIPS 180-4 §6.4), shared by SHA-384, SHA-512 and SHA-512/256, which differ only in their initial state and in how much of the final state they output.

Constants

BLOCK_SIZE = 128

The number of bytes the compression function consumes per step.

HAS_VECTOR_MESSAGE_SCHEDULE = ProcessorFeatures::HAS_AVX2 && ProcessorFeatures::HAS_BIT_MANIPULATION_INSTRUCTIONS
ROUND_CONSTANTS = {4794697086780616226_u64, 8158064640168781261_u64, 13096744586834688815_u64, 16840607885511220156_u64, 4131703408338449720_u64, 6480981068601479193_u64, 10538285296894168987_u64, 12329834152419229976_u64, 15566598209576043074_u64, 1334009975649890238_u64, 2608012711638119052_u64, 6128411473006802146_u64, 8268148722764581231_u64, 9286055187155687089_u64, 11230858885718282805_u64, 13951009754708518548_u64, 16472876342353939154_u64, 17275323862435702243_u64, 1135362057144423861_u64, 2597628984639134821_u64, 3308224258029322869_u64, 5365058923640841347_u64, 6679025012923562964_u64, 8573033837759648693_u64, 10970295158949994411_u64, 12119686244451234320_u64, 12683024718118986047_u64, 13788192230050041572_u64, 14330467153632333762_u64, 15395433587784984357_u64, 489312712824947311_u64, 1452737877330783856_u64, 2861767655752347644_u64, 3322285676063803686_u64, 5560940570517711597_u64, 5996557281743188959_u64, 7280758554555802590_u64, 8532644243296465576_u64, 9350256976987008742_u64, 10552545826968843579_u64, 11727347734174303076_u64, 12113106623233404929_u64, 14000437183269869457_u64, 14369950271660146224_u64, 15101387698204529176_u64, 15463397548674623760_u64, 17586052441742319658_u64, 1182934255886127544_u64, 1847814050463011016_u64, 2177327727835720531_u64, 2830643537854262169_u64, 3796741975233480872_u64, 4115178125766777443_u64, 5681478168544905931_u64, 6601373596472566643_u64, 7507060721942968483_u64, 8399075790359081724_u64, 8693463985226723168_u64, 9568029438360202098_u64, 10144078919501101548_u64, 10430055236837252648_u64, 11840083180663258601_u64, 13761210420658862357_u64, 14299343276471374635_u64, 14566680578165727644_u64, 15097957966210449927_u64, 16922976911328602910_u64, 17689382322260857208_u64, 500013540394364858_u64, 748580250866718886_u64, 1242879168328830382_u64, 1977374033974150939_u64, 2944078676154940804_u64, 3659926193048069267_u64, 4368137639120453308_u64, 4836135668995329356_u64, 5532061633213252278_u64, 6448918945643986474_u64, 6902733635092675308_u64, 7801388544844847127_u64}

The eighty round constants of FIPS 180-4 §4.2.3.

Class methods

compression_in_use

Names the code compress runs on this processor, for benchmarks and test logs.

Source

Instance methods

block_size

Returns the number of bytes the compression function consumes per step.

Source
initial_state

Returns the eight initial state words of the concrete hash function.

Source