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

1 {
2           typeof(this) dig;
3           dig.put(cast(ubyte)0); //single ubyte
4           dig.put(cast(ubyte)0, cast(ubyte)0); //variadic
5           ubyte[10] buf;
6           dig.put(buf); //buffer

Meta