BPFromBytes

Cryptography

Description

Loads a big-endian byte string into a Brainpool big-integer value

Syntax

Delphi

Function BPFromBytes(Out V: TBPValue; Const Bytes: AnsiString): Boolean;

Parameters

VReceives the decoded value; zeroed before decoding starts
Bytes1 to 64 bytes, most significant byte first

Return values

TrueThe bytes were decoded
FalseThe input is empty or longer than 64 bytes; V stays zeroed

Remarks

Companion of BPToBytes for moving curve coordinates in and out of BPLoadCurve arithmetic

See also

BPToBytes, BPLoadCurve, BPKeyGen, BPSignFixedK