java.lang.Object
org.apache.kerby.kerberos.kerb.crypto.util.Nfold

public class Nfold extends Object
Based on RFC3961, with ref. MIT krb5 nfold.c
  • 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 that k>=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 bytes
      size - The size
      Returns:
      The output byte