Searched refs:plaintextKeyLength (Results 1 – 2 of 2) sorted by relevance
144 size_t FwdLockGlue_GetEncryptedKeyLength(size_t plaintextKeyLength) { in FwdLockGlue_GetEncryptedKeyLength() argument145 return ((plaintextKeyLength / AES_BLOCK_SIZE) + 2) * AES_BLOCK_SIZE; in FwdLockGlue_GetEncryptedKeyLength()149 size_t plaintextKeyLength, in FwdLockGlue_EncryptKey() argument153 assert(encryptedKeyLength == FwdLockGlue_GetEncryptedKeyLength(plaintextKeyLength)); in FwdLockGlue_EncryptKey()157 size_t padding = AES_BLOCK_SIZE - (plaintextKeyLength % AES_BLOCK_SIZE); in FwdLockGlue_EncryptKey()159 memcpy(pEncryptedKey, pPlaintextKey, plaintextKeyLength); in FwdLockGlue_EncryptKey()160 memset((unsigned char *)pEncryptedKey + plaintextKeyLength, (int)padding, padding); in FwdLockGlue_EncryptKey()
49 size_t FwdLockGlue_GetEncryptedKeyLength(size_t plaintextKeyLength);62 size_t plaintextKeyLength,