Home | History | Annotate | Download | only in key_blob_utils

Lines Matching refs:userKey

450 static void AES_128_Key_Expansion(const unsigned char* userkey, void* key) {
453 kp[0] = x0 = _mm_loadu_si128((__m128i*)userkey);
477 static void AES_192_Key_Expansion(const unsigned char* userkey, void* key) {
479 kp[0] = x0 = _mm_loadu_si128((__m128i*)userkey);
480 tmp = x3 = _mm_loadu_si128((__m128i*)(userkey + 16));
488 static void AES_256_Key_Expansion(const unsigned char* userkey, void* key) {
490 kp[0] = x0 = _mm_loadu_si128((__m128i*)userkey);
491 kp[1] = x3 = _mm_loadu_si128((__m128i*)(userkey + 16));
521 static int AES_set_encrypt_key(const unsigned char* userKey, const int bits, AES_KEY* key) {
523 AES_128_Key_Expansion(userKey, key);
525 AES_192_Key_Expansion(userKey, key);
527 AES_256_Key_Expansion(userKey, key);
547 static int AES_set_decrypt_key(const unsigned char* userKey, const int bits, AES_KEY* key) {
549 AES_set_encrypt_key(userKey, bits, &temp_key);