Lines Matching refs:tokenHeader
713 byte[] encryptData(WrapToken_v2 token, byte[] confounder, byte[] tokenHeader,
719 return aes128Encrypt(confounder, tokenHeader,
722 return aes256Encrypt(confounder, tokenHeader,
786 int encryptData(WrapToken_v2 token, byte[] confounder, byte[] tokenHeader,
793 ctext = aes128Encrypt(confounder, tokenHeader,
797 ctext = aes256Encrypt(confounder, tokenHeader,
1289 private byte[] aes128Encrypt(byte[] confounder, byte[] tokenHeader,
1295 // WrapToken = { tokenHeader |
1296 // Encrypt (confounder | plaintext | tokenHeader ) | HMAC }
1298 byte[] all = new byte[confounder.length + len + tokenHeader.length];
1301 System.arraycopy(tokenHeader, 0, all, confounder.length+len,
1302 tokenHeader.length);
1358 private byte[] aes256Encrypt(byte[] confounder, byte[] tokenHeader,
1364 // WrapToken = { tokenHeader |
1365 // Encrypt (confounder | plaintext | tokenHeader ) | HMAC }
1367 byte[] all = new byte[confounder.length + len + tokenHeader.length];
1370 System.arraycopy(tokenHeader, 0, all, confounder.length+len,
1371 tokenHeader.length);