public class SM4Padding extends Object
| 构造器和说明 |
|---|
SM4Padding() |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
fill(byte[] input)
fill the input data
|
byte[] |
fill(byte[] input,
int offset,
int len)
fill the input data
|
String |
getPadding() |
boolean |
isFilled(byte[] input)
determine if the input data has been padded
|
byte[] |
recover(byte[] input)
remove the filling
|
void |
setPadding(String padding) |
String padding
public String getPadding()
public void setPadding(String padding)
public byte[] fill(byte[] input)
input - public byte[] fill(byte[] input,
int offset,
int len)
input - offset - start index of inputlen - public byte[] recover(byte[] input)
throws BadPaddingException
input - BadPaddingExceptionpublic boolean isFilled(byte[] input)
input - Copyright © 2024. All rights reserved.