Constructor and Description |
---|
HelixKeySpec(byte[] key)
Creates a new HelixKeySpec using the first 32 bytes from
key as the key material for the Helix key.
|
HelixKeySpec(byte[] key,
int offset)
Creates a new HelixKeySpec using the first 32 bytes from
key, beginning at offset (inclusive), as the key material
for the Helix key.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getKey()
Returns the key material for the Helix cryptographic key.
|
public HelixKeySpec(byte[] key)
If key contains less than 32 bytes, only key.length bytes of key material will be used.
key
- the buffer containing Helix key material (bytes are copied to
protect against subsequent modification)public HelixKeySpec(byte[] key, int offset)
A maximum of 32 bytes of key material will be used. In other words, the number of bytes of key material will be the lesser of (key.length - offset) and 32.
key
- the buffer containing Helix key material (bytes are copied to
protect against subsequent modification)offset
- the index into key where the Helix key material beginsCopyright © 2010-2015 Matthew Zipay. All Rights Reserved.