Class Nfold
java.lang.Object
org.apache.kerby.kerberos.kerb.crypto.util.Nfold
Based on RFC3961, with ref. MIT krb5 nfold.c
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]nfold(byte[] inBytes, int size) representation: msb first, assume n and k are multiples of 8, and thatk>=16.
-
Constructor Details
-
Nfold
public Nfold()
-
-
Method Details
-
nfold
public static byte[] nfold(byte[] inBytes, int size) representation: msb first, assume n and k are multiples of 8, and thatk>=16. this is the case of all the cryptosystems which are likely to be used. this function can be replaced if that assumption ever fails.- Parameters:
inBytes- The input bytessize- The size- Returns:
- The output byte
-