Структура симметричного секретного ключа определена в 6.5.1 [1].
SecretKeyType ::= CHOICE {
genericSecretKey SecretKeyObject {GenericSecretKeyAttributes}, rc2key [0] SecretKeyObject {GenericSecretKeyAttributes}, rc4key [1] SecretKeyObject {GenericSecretKeyAttributes}, desKey [2] SecretKeyObject {GenericSecretKeyAttributes}, des2Key [3] SecretKeyObject {GenericSecretKeyAttributes}, des3Key [4] SecretKeyObject {GenericSecretKeyAttributes}, castKey [5] SecretKeyObject {GenericSecretKeyAttributes}, cast3Key [6] SecretKeyObject {GenericSecretKeyAttributes}, cast128Key [7] SecretKeyObject {GenericSecretKeyAttributes}, rc5Key [8] SecretKeyObject {GenericSecretKeyAttributes}, ideaKey [9] SecretKeyObject {GenericSecretKeyAttributes}, skipjackKey [10] SecretKeyObject {GenericSecretKeyAttributes}, batonKey [11] SecretKeyObject {GenericSecretKeyAttributes}, juniperKey [12] SecretKeyObject {GenericSecretKeyAttributes}, rc6Key [13] SecretKeyObject {GenericSecretKeyAttributes}, otherKey [14] OtherKey, ... -- For future extensions |
}
SecretKeyObject {KeyAttributes} ::= PKCS15Object {
CommonKeyAttributes, CommonSecretKeyAttributes, KeyAttributes}
Для хранения симметричного ключа для алгоритма ГОСТ 28147-89 в структуру SecretKeyType введен тип: