Each key created in a database, including the default key, has an entry in the database-specific system catalog sysencryptkeys.
The columns for sysencryptkeys are:
Field |
Type |
Description |
---|---|---|
id |
int |
Encryption key ID. |
ekalgorithm |
int |
Encryption algorithm. |
type |
smallint |
Identifies the key type. The values are:
|
status |
int |
Internal status information. The bit representations are:
|
eklen |
smallint |
User-specified length of key. |
value |
varbinary(1282) |
Encrypted value of a key. Contains a symmetric encryption of the key. To encrypt keys, Adaptive Server uses AES with a 128-bit key from the system encryption, user-specified, or login password. |
uid |
int null |
User ID of key copy assignee. |
eksalt |
varbinary(20) |
Random values used to validate decryption of the encryption key. |
ekpairid |
int null |
Not used. |
pwdate |
datetime null |
Date the password was last changed. |
expdate |
int null |
Not used. |
ekpwdwarn |
int null |
Not used. |
The status bits for sysencryptkeys.
Decimal |
Hex |
Status |
---|---|---|
0x00000004 |
EK_KEYRECOVERY() – keys encrypted for lost password protection. |
|
0x00000008 |
EK_LOGINACCESS() – key encrypted for login access |
|
0x00000010 |
EK_LOGINPASS () – key encrypted with login password |
|
0x00000100 |
EK_USERPWD() – keys encrypted with user-encryption passwords |