Lyricdev
GitHub

class Sha256

pub class Sha256 :: [Digest]

Conforms to Digest.

SHA-256 (FIPS 180-4 ยง6.2): 32 bytes of hash over blocks of 64.

Constants

pub static let size: int = 32
pub static let blockSize: int = 64

Methods

pub static fn new(): Sha256
pub mut fn update(bytes: Slice<uint8>): void
pub fn finish(): uint8[]