public interface DerivationAlgorithm
| Modifier and Type | Method and Description |
|---|---|
byte[] |
deriveKey(byte[] secret,
byte[] otherInfo,
int offset,
long keyLength)
Derives a key from the given secret and other info.
|
default byte[] |
deriveKey(byte[] secret,
byte[] otherInfo,
long keyLength)
Derives a key from the given secret and other info.
|
byte[] deriveKey(byte[] secret,
byte[] otherInfo,
int offset,
long keyLength)
throws XMLSecurityException
secret - The "shared" secret to use for key derivation (e.g. the secret key)otherInfo - as specified in [SP800-56A] the optional attributes: AlgorithmID, PartyUInfo, PartyVInfo, SuppPubInfo and SuppPrivInfo attributes are concatenated to form a bit string “OtherInfo” that is used with the key derivation function.offset - the starting position in derived keying material of size: offset + keyLengthkeyLength - The length of the key to deriveXMLSecurityException - if something goes wrong during the key derivationdefault byte[] deriveKey(byte[] secret,
byte[] otherInfo,
long keyLength)
throws XMLSecurityException
secret - The "shared" secret to use for key derivation (e.g. the secret key)otherInfo - as specified in [SP800-56A] the optional attributes: AlgorithmID, PartyUInfo, PartyVInfo, SuppPubInfo and SuppPrivInfo attributes are concatenated to form a bit string “OtherInfo” that is used with the key derivation function.keyLength - The length of the key to deriveXMLSecurityException - if something goes wrong during the key derivationCopyright © 2000–2024 The Apache Software Foundation. All rights reserved.