Tabnine Logo
HMACT64.engineReset
Code IndexAdd Tabnine to your IDE (free)

How to use
engineReset
method
in
jcifs.util.HMACT64

Best Java code snippets using jcifs.util.HMACT64.engineReset (Showing top 6 results out of 315)

origin: jcifs/jcifs

/**
 * Creates an HMACT64 instance which uses the given secret key material.
 *
 * @param key The key material to use in hashing.
 */
public HMACT64(byte[] key) {
  super("HMACT64");
  int length = Math.min(key.length, BLOCK_LENGTH);
  for (int i = 0; i < length; i++) {
    ipad[i] = (byte) (key[i] ^ IPAD);
    opad[i] = (byte) (key[i] ^ OPAD);
  }
  for (int i = length; i < BLOCK_LENGTH; i++) {
    ipad[i] = IPAD;
    opad[i] = OPAD;
  }
  try {
    md5 = MessageDigest.getInstance("MD5");
  } catch (Exception ex) {
    throw new IllegalStateException(ex.getMessage());
  }
  engineReset();
}
origin: com.jaeksoft/jcifs-krb5-jdk7

/**
 * Creates an HMACT64 instance which uses the given secret key material.
 *
 * @param key The key material to use in hashing.
 */
public HMACT64(byte[] key) {
  super("HMACT64");
  int length = Math.min(key.length, BLOCK_LENGTH);
  for (int i = 0; i < length; i++) {
    ipad[i] = (byte) (key[i] ^ IPAD);
    opad[i] = (byte) (key[i] ^ OPAD);
  }
  for (int i = length; i < BLOCK_LENGTH; i++) {
    ipad[i] = IPAD;
    opad[i] = OPAD;
  }
  try {
    md5 = MessageDigest.getInstance("MD5");
  } catch (Exception ex) {
    throw new IllegalStateException(ex.getMessage());
  }
  engineReset();
}
origin: kohsuke/jcifs

/**
 * Creates an HMACT64 instance which uses the given secret key material.
 *
 * @param key The key material to use in hashing.
 */
public HMACT64(byte[] key) {
  super("HMACT64");
  int length = Math.min(key.length, BLOCK_LENGTH);
  for (int i = 0; i < length; i++) {
    ipad[i] = (byte) (key[i] ^ IPAD);
    opad[i] = (byte) (key[i] ^ OPAD);
  }
  for (int i = length; i < BLOCK_LENGTH; i++) {
    ipad[i] = IPAD;
    opad[i] = OPAD;
  }
  try {
    md5 = MessageDigest.getInstance("MD5");
  } catch (Exception ex) {
    throw new IllegalStateException(ex.getMessage());
  }
  engineReset();
}
origin: org.samba.jcifs/jcifs

/**
 * Creates an HMACT64 instance which uses the given secret key material.
 *
 * @param key The key material to use in hashing.
 */
public HMACT64(byte[] key) {
  super("HMACT64");
  int length = Math.min(key.length, BLOCK_LENGTH);
  for (int i = 0; i < length; i++) {
    ipad[i] = (byte) (key[i] ^ IPAD);
    opad[i] = (byte) (key[i] ^ OPAD);
  }
  for (int i = length; i < BLOCK_LENGTH; i++) {
    ipad[i] = IPAD;
    opad[i] = OPAD;
  }
  try {
    md5 = MessageDigest.getInstance("MD5");
  } catch (Exception ex) {
    throw new IllegalStateException(ex.getMessage());
  }
  engineReset();
}
origin: org.codelibs/jcifs

/**
 * Creates an HMACT64 instance which uses the given secret key material.
 *
 * @param key
 *            The key material to use in hashing.
 */
public HMACT64 ( byte[] key ) {
  super("HMACT64");
  int length = Math.min(key.length, BLOCK_LENGTH);
  for ( int i = 0; i < length; i++ ) {
    this.ipad[ i ] = (byte) ( key[ i ] ^ IPAD );
    this.opad[ i ] = (byte) ( key[ i ] ^ OPAD );
  }
  for ( int i = length; i < BLOCK_LENGTH; i++ ) {
    this.ipad[ i ] = IPAD;
    this.opad[ i ] = OPAD;
  }
  this.md5 = Crypto.getMD5();
  engineReset();
}
origin: AgNO3/jcifs-ng

/**
 * Creates an HMACT64 instance which uses the given secret key material.
 *
 * @param key
 *            The key material to use in hashing.
 */
public HMACT64 ( byte[] key ) {
  super("HMACT64");
  int length = Math.min(key.length, BLOCK_LENGTH);
  for ( int i = 0; i < length; i++ ) {
    this.ipad[ i ] = (byte) ( key[ i ] ^ IPAD );
    this.opad[ i ] = (byte) ( key[ i ] ^ OPAD );
  }
  for ( int i = length; i < BLOCK_LENGTH; i++ ) {
    this.ipad[ i ] = IPAD;
    this.opad[ i ] = OPAD;
  }
  this.md5 = Crypto.getMD5();
  engineReset();
}
jcifs.utilHMACT64engineReset

Popular methods of HMACT64

  • <init>
    Creates an HMACT64 instance which uses the given secret key material.
  • digest
  • update

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JOptionPane (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now