Download Secure Key Box User Guide
Transcript
Secure Key Box User Guide 7 API Reference SKB_Result SKB_Engine_CreateCipher(SKB_Engine* SKB_CipherAlgorithm SKB_CipherDirection unsigned int const void* const SKB_SecureData* SKB_Cipher** self, cipher_algorithm, cipher_direction, cipher_flags, cipher_parameters, cipher_key, cipher); The following table explains the parameters: Parameter Description self Pointer to the pre-initialized engine. cipher_algorithm Algorithm to be used for encrypting or decrypting data. Available algorithms are defined in the SKB_CipherAlgorithm enumeration (see §7.11.3). cipher_direction Parameter that specifies whether the provided data should be encrypted or decrypted. Available directions are defined in the SKB_CipherDirection enumeration (see §7.11.6). Encryption is supported only for the DES, Triple DES, and AES ciphers. cipher_flags Optional flags for the cipher. Currently, the only defined flag is SKB_CIPHER_FLAG_HIGH_SPEED. This flag can be used only for the AES cipher when it is intended to be used with high throughput, for example when used for media content decryption. cipher_parameters Pointer to a structure that provides additional parameters for the cipher. For the SKB_CIPHER_ALGORITHM_AES_128_CTR, SKB_CIPHER_ALGORITHM_AES_192_CTR, and SKB_CIPHER_ALGORITHM_AES_256_CTR ciphers, it must point to the SKB_CtrModeCipherParameters structure (see §7.10.4), or NULL for the default counter size of 16. For the SKB_CIPHER_ALGORITHM_ECC_ELGAMAL cipher, it must point to the SKB_EccParameters structure, which specifies the curve type (see §7.10.22). For all other ciphers, this parameter must be NULL. cipher_key Pointer to the SKB_SecureData object containing the encryption or decryption key. Copyright © 2000-2015, whiteCryption Corporation. All rights reserved. Copyright © 2004-2015, Intertrust Technologies Corporation. All rights reserved. Page 89 of 137