import { KmipStruct } from "../json/KmipStruct"; import { EncodingOption } from "../types/EncodingOption"; import { EncryptionKeyInformation } from "../types/EncryptionKeyInformation"; import { MacSignatureKeyInformation } from "../types/MacSignatureKeyInformation"; import { WrappingMethod } from "../types/WrappingMethod"; /** * The Key Block MAY also supply OPTIONAL information about a cryptographic key wrapping mechanism used to wrap the Key * Value. This consists of a Key Wrapping Data structure. It is only used inside a Key Block. This structure contains * fields for: * * Value Description * * Wrapping Method Indicates the method used to wrap the Key Value. * * Encryption Key Information Contains the Unique Identifier value of the encryption key and associated cryptographic * parameters. * * MAC/Signature Key Information Contains the Unique Identifier value of the MAC/signature key and associated * cryptographic parameters. * * MAC/Signature Contains a MAC or signature of the Key Value * * IV/Counter/Nonce If REQUIRED by the wrapping method. * * Encoding Option Specifies the encoding of the Key Material within the Key Value structure of the Key Block that has * been wrapped. If No Encoding is specified, then the Key Value structure SHALL NOT contain any attributes. * * If wrapping is used, then the whole Key Value structure is wrapped unless otherwise specified by the Wrapping Method. * The algorithms used for wrapping are given by the Cryptographic Algorithm attributes of the encryption key and/or * MAC/signature key; the block-cipher mode, padding method, and hashing algorithm used for wrapping are given by the * Cryptographic Parameters in the Encryption Key Information and/or MAC/Signature Key Information, or, if not present, * from the Cryptographic Parameters attribute of the respective key(s). Either the Encryption Key Information or the * MAC/Signature Key Information (or both) in the Key Wrapping Data structure SHALL be specified. */ export declare class KeyWrappingData implements KmipStruct { private _wrapping_method; private _encryption_key_information?; private _mac_or_signature_key_information?; private _mac_or_signature?; private _iv_counter_nonce?; /** * Specifies the encoding of the Key Value Byte String. If not present, the wrapped Key Value structure SHALL be * TTLV encoded. */ private _encoding_option?; constructor(wrapping_method: WrappingMethod, encryption_key_information?: EncryptionKeyInformation, mac_or_signature_key_information?: MacSignatureKeyInformation, mac_or_signature?: Uint8Array, iv_counter_nonce?: Uint8Array, encoding_option?: EncodingOption); get wrapping_method(): WrappingMethod; set wrapping_method(value: WrappingMethod); get encryption_key_information(): EncryptionKeyInformation | undefined; set encryption_key_information(value: EncryptionKeyInformation | undefined); get mac_or_signature_key_information(): MacSignatureKeyInformation | undefined; set mac_or_signature_key_information(value: MacSignatureKeyInformation | undefined); get mac_or_signature(): Uint8Array | undefined; set mac_or_signature(value: Uint8Array | undefined); get iv_counter_nonce(): Uint8Array | undefined; set iv_counter_nonce(value: Uint8Array | undefined); get encoding_option(): EncodingOption | undefined; set encoding_option(value: EncodingOption | undefined); equals(o: any): boolean; toString(): string; } //# sourceMappingURL=KeyWrappingData.d.ts.map