Home | History | Annotate | Download | only in spec

Lines Matching refs:src

77      * @param src the IV source buffer.  The contents of the buffer are
81 * or {@code src} is null.
83 public GCMParameterSpec(int tLen, byte[] src) {
84 if (src == null) {
85 throw new IllegalArgumentException("src array is null");
88 init(tLen, src, 0, src.length);
97 * @param src the IV source buffer. The contents of the
99 * @param offset the offset in {@code src} where the IV starts
103 * {@code src} is null, {@code len} or {@code offset} is negative,
105 * length of the {@code src} byte array.
107 public GCMParameterSpec(int tLen, byte[] src, int offset, int len) {
108 init(tLen, src, offset, len);
114 private void init(int tLen, byte[] src, int offset, int len) {
122 if ((src == null) ||(len < 0) || (offset < 0)
123 || ((len + offset) > src.length)) {
128 System.arraycopy(src, offset, iv, 0, len);