--- title: "AAL2MigrateBlob" slug: "a3s-cppprg-aal2migrateblob-4-0" updated: 2026-11-11T09:57:24Z published: 2026-11-11T09:57:24Z canonical: "docs.onespan.com/a3s-cppprg-aal2migrateblob-4-0" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # AAL2MigrateBlob ## Function prototype ```cpp aat_int32 AAL2MigrateBlob (                            TDigipassBlob*   DPData,                            TKernelParms*    CallParms,                            aat_int32        DeriveVector,                            aat_int32        StorageDeriveKey1,                            aat_int32        StorageDeriveKey2,                            aat_int32        StorageDeriveKey3,                            aat_int32        StorageDeriveKey4); ``` ## Description This function is used to migrate software protection keys for a given authenticator application BLOB. With a software implementation of Authentication Suite Server SDK, the authenticator application BLOBs in the database are protected with a key which is unique per record because it is derived from the Digipass serial number, the authenticator application name, and a static initial vector. There are two ways to derive this default Authentication Suite Server SDK database protection key with kernel parameters: - using the derive vector (DeriveVector) - using the four storage derive keys (StorageDeriveKey1, StorageDeriveKey2, StorageDeriveKey3, StorageDeriveKey4). ## Parameters | Type | Name | Use | Description | | --- | --- | --- | --- | | TDigipassBlob * | DPData | I/O | authenticator application BLOB. Upon return from the function call, this BLOB must be rewritten to the application database to reflect changes. | | TKernelParms * | CallParms | I | Structure of runtime parameters to use during this function call. Contains the old values of DeriveVector and StorageDeriveKey1, 2, 3, 4. | | aat_int32 | DeriveVector | I | New derive vector to use for the authenticator application BLOB encryption. Values range from 0x00 to 0x7FFFFFFF. | | aat_int32 | StorageDerive Key1 | I | New storage derivation key part 1. | | aat_int32 | StorageDerive Key2 | I | New storage derivation key part 2. | | aat_int32 | StorageDerive Key3 | I | New storage derivation key part 3. | | aat_int32 | StorageDerive Key4 | I | New storage derivation key part 4. | ## Return codes | Code | Meaning | Code | Meaning | | --- | --- | --- | --- | | 0 | Success | 1000 | Function does not support EMV-CAP | | 412 | Invalid checksum | 1100 | Function not supported | | 413 | Invalid Base64 format | 1118 | Unsupported BLOB | | 510 | Invalid Digipass data pointer | -1501 | Memory allocation failed |