V3HeaderSignature
in package
V3 IronCore header signature
Table of Contents
- $gcmTag : Bytes
- $iv : Bytes
- __construct() : mixed
- fromBytes() : V3HeaderSignature
- Constructs header signature from raw bytes.
- getIv() : Bytes
- Gets the header's IV.
- getSignatureBytes() : Bytes
- Gets IronCore signature bytes. Consists of the IV concatenated with the GCM tag.
Properties
$gcmTag
private
Bytes
$gcmTag
$iv
private
Bytes
$iv
Methods
__construct()
public
__construct(Bytes $iv, Bytes $gcmTag) : mixed
Parameters
Return values
mixed —fromBytes()
Constructs header signature from raw bytes.
public
static fromBytes(Bytes $bytes) : V3HeaderSignature
Parameters
- $bytes : Bytes
-
Raw signature bytes
Return values
V3HeaderSignature —V3 IronCore header signature
getIv()
Gets the header's IV.
public
getIv() : Bytes
Return values
Bytes —Header IV
getSignatureBytes()
Gets IronCore signature bytes. Consists of the IV concatenated with the GCM tag.
public
getSignatureBytes() : Bytes
Return values
Bytes —IronCore signature bytes