Java IV Generate generateIV(byte[] iv)

Here you can find the source of generateIV(byte[] iv)

Description

generate IV

License

Apache License

Declaration

private static AlgorithmParameters generateIV(byte[] iv) throws Exception 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.security.AlgorithmParameters;

import javax.crypto.spec.IvParameterSpec;

public class Main {
    private static AlgorithmParameters generateIV(byte[] iv) throws Exception {
        AlgorithmParameters params = AlgorithmParameters.getInstance("AES");
        params.init(new IvParameterSpec(iv));
        return params;
    }//from  ww w  .jav  a 2 s.c  o  m
}

Related

  1. generateIV()
  2. generateIV()
  3. generateIV()
  4. generateIV()
  5. generateIV()