OctetStringImpl

Octet String

Constructors

this
this(string hex_string)

Create a new OctetString

this
this(RandomNumberGenerator rng, size_t len)

Create a new random OctetString

this
this(const(ubyte)* input, size_t len)

Create a new OctetString

this
this(Vector!(ubyte, ALLOC) input)
this(RefCounted!(Vector!(ubyte, ALLOC), ALLOC) input)

Create a new OctetString

Members

Functions

bitsOf
SecureVector!ubyte bitsOf()
end
ubyte* end()
opBinary
OctetString opBinary(OctetString other)

Concatenate two strings

opBinary
OctetString opBinary(OctetString other)

XOR two strings

opCmp
int opCmp(OctetString other)

Compare two strings

opEquals
bool opEquals(OctetString other)

Compare two strings

opOpAssign
OctetString opOpAssign(OctetString other)

XOR the contents of another octet string into this one

opOpAssign
void opOpAssign(OctetString other)

Append another OctetString to this

setOddParity
void setOddParity()

Force to have odd parity

toString
string toString()

Properties

dup
OctetString dup [@property getter]
length
size_t length [@property getter]
ptr
ubyte* ptr [@property getter]

Meta