EMSA1BSI

EMSA1_BSI is a variant of EMSA1 specified by the BSI. It accepts only hash values which are less or equal than the maximum key length. The implementation comes from InSiTo

Constructors

this
this(HashFunction hash)

Members

Functions

encodingOf
SecureVector!ubyte encodingOf(SecureVector!ubyte msg, size_t output_bits, RandomNumberGenerator rng)
Undocumented in source. Be warned that the author may not have intended to support it.
rawData
SecureVector!ubyte rawData()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(const(ubyte)* input, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
verify
bool verify(SecureVector!ubyte coded, SecureVector!ubyte raw, size_t key_bits)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From EMSA1

hashOutputLength
size_t hashOutputLength()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update(const(ubyte)* input, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
rawData
SecureVector!ubyte rawData()
Undocumented in source. Be warned that the author may not have intended to support it.
encodingOf
SecureVector!ubyte encodingOf(SecureVector!ubyte msg, size_t output_bits, RandomNumberGenerator rng)
Undocumented in source. Be warned that the author may not have intended to support it.
verify
bool verify(SecureVector!ubyte coded, SecureVector!ubyte raw, size_t key_bits)
Undocumented in source. Be warned that the author may not have intended to support it.
m_hash
Unique!HashFunction m_hash;
Undocumented in source.

From EMSA

update
void update(const(ubyte)* input, size_t length)

Add more data to the signature computation

rawData
SecureVector!ubyte rawData()
encodingOf
SecureVector!ubyte encodingOf(SecureVector!ubyte msg, size_t output_bits, RandomNumberGenerator rng)

Return the encoding of a message

verify
bool verify(SecureVector!ubyte coded, SecureVector!ubyte raw, size_t key_bits)

Verify the encoding

Meta