public abstract class BaseCryptCodecHandler extends Object implements com.healthmarketscience.jackcess.impl.CodecHandler
Modifier and Type | Field and Description |
---|---|
static boolean |
CIPHER_DECRYPT_MODE |
static boolean |
CIPHER_ENCRYPT_MODE |
Modifier and Type | Method and Description |
---|---|
static byte[] |
applyPageNumber(byte[] key,
int offset,
int pageNumber)
Returns a copy of the given key with the bytes of the given pageNumber
applied at the given offset using XOR.
|
static byte[] |
fill(byte[] bytes,
int value)
Fills the given array with the given value and returns it.
|
static byte[] |
fixToLength(byte[] bytes,
int len) |
static byte[] |
fixToLength(byte[] bytes,
int len,
int padByte) |
static byte[] |
hash(Digest digest,
byte[] bytes)
Hashes the given bytes using the given digest and returns the result.
|
static byte[] |
hash(Digest digest,
byte[] bytes1,
byte[] bytes2)
Hashes the given bytes1 and bytes2 using the given digest and returns the
result.
|
static byte[] |
hash(Digest digest,
byte[] bytes1,
byte[] bytes2,
int resultLen)
Hashes the given bytes1 and bytes2 using the given digest and returns the
hash fixed to the given length.
|
static byte[] |
hash(Digest digest,
byte[] bytes,
int resultLen)
Hashes the given bytes using the given digest and returns the hash fixed
to the given length.
|
String |
toString() |
static ByteBuffer |
wrap(byte[] bytes) |
public static final boolean CIPHER_DECRYPT_MODE
public static final boolean CIPHER_ENCRYPT_MODE
public static byte[] applyPageNumber(byte[] key, int offset, int pageNumber)
public static byte[] hash(Digest digest, byte[] bytes)
public static byte[] hash(Digest digest, byte[] bytes1, byte[] bytes2)
public static byte[] hash(Digest digest, byte[] bytes, int resultLen)
public static byte[] hash(Digest digest, byte[] bytes1, byte[] bytes2, int resultLen)
public static byte[] fixToLength(byte[] bytes, int len)
public static byte[] fixToLength(byte[] bytes, int len, int padByte)
public static ByteBuffer wrap(byte[] bytes)
public static byte[] fill(byte[] bytes, int value)
Copyright © 2010–2022 OpenHMS. All rights reserved.