public class FastUtil extends Object
| Constructor and Description |
|---|
FastUtil() |
| Modifier and Type | Method and Description |
|---|---|
static EncryptionKey |
cf2(EncryptionKey key1,
String pepper1,
EncryptionKey key2,
String pepper2) |
static EncryptionKey |
makeArmorKey(EncryptionKey subkey,
EncryptionKey ticketKey)
Make an encryption key for armoring.
|
static EncryptionKey |
makeReplyKey(EncryptionKey strengthenKey,
EncryptionKey existingKey)
Make an encryption key for replying.
|
static byte[] |
prfPlus(EncryptionKey key,
String pepper,
int keyBytesLen)
Call the PRF function multiple times with the pepper prefixed with
a count byte to get enough bits of output.
|
public static byte[] prfPlus(EncryptionKey key, String pepper, int keyBytesLen) throws KrbException
key - The encryption keypepper - The pepperkeyBytesLen - The key bytes lengthKrbException - epublic static EncryptionKey cf2(EncryptionKey key1, String pepper1, EncryptionKey key2, String pepper2) throws KrbException
KrbExceptionpublic static EncryptionKey makeReplyKey(EncryptionKey strengthenKey, EncryptionKey existingKey) throws KrbException
strengthenKey - The strengthen keyexistingKey - The existing keyKrbException - epublic static EncryptionKey makeArmorKey(EncryptionKey subkey, EncryptionKey ticketKey) throws KrbException
subkey - The sub keyticketKey - The ticket keyKrbException - eCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.