Package ca.carleton.gcrc.security.kdf

Examples of ca.carleton.gcrc.security.kdf.KDFCounterMode.deriveKey()


    }
  }
 
  static private SecretKeySpec deriveKey(byte[] productionKey, byte[] context) throws Exception {
    KDFCounterMode kdf = new KDFCounterModeImpl();
    byte[] raw = kdf.deriveKey(productionKey, LABEL, context, 16);
    SecretKeySpec encryptionKey = new SecretKeySpec(raw, "AES");
    return encryptionKey;
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.