SHA.put

Use this to feed the digest with data. Also implements the std.range.OutputRange interface for ubyte and const(ubyte)[].

struct SHA(int blockSize, int digestSize)
@trusted nothrow pure
void
put
(
scope const(ubyte)[] input...
)

Examples

typeof(this) dig;
dig.put(cast(ubyte)0); //single ubyte
dig.put(cast(ubyte)0, cast(ubyte)0); //variadic
ubyte[10] buf;
dig.put(buf); //buffer

Meta