public class GMacUtil extends Object
| 构造器和说明 |
|---|
GMacUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
getCounter0(byte[] iv,
byte[] H)
calculate CTR0 according to iv
|
static byte[] |
GHASH(byte[] x,
byte[] H)
GHASH function refer to: nistspecialpublication800-38d
|
static byte[] |
moveRightOneBit(byte[] input)
shifts the 16-byte byte array one bit to the right
|
static byte[] |
mult(byte[] x,
byte[] y)
Multiplication Operation on Blocks refer to: nistspecialpublication800-38d
|
private static SM4Util sm4
public static byte[] getCounter0(byte[] iv,
byte[] H)
iv - ivH - The result of encrypting the all-zero inputpublic static byte[] GHASH(byte[] x,
byte[] H)
x - H - public static byte[] mult(byte[] x,
byte[] y)
x - y - public static byte[] moveRightOneBit(byte[] input)
input - Copyright © 2024. All rights reserved.