Home | History | Annotate | Download | only in keymaster

Lines Matching refs:userKey

449 static void AES_128_Key_Expansion(const unsigned char* userkey, void* key) {
452 kp[0] = x0 = _mm_loadu_si128((__m128i*)userkey);
476 static void AES_192_Key_Expansion(const unsigned char* userkey, void* key) {
478 kp[0] = x0 = _mm_loadu_si128((__m128i*)userkey);
479 tmp = x3 = _mm_loadu_si128((__m128i*)(userkey + 16));
487 static void AES_256_Key_Expansion(const unsigned char* userkey, void* key) {
489 kp[0] = x0 = _mm_loadu_si128((__m128i*)userkey);
490 kp[1] = x3 = _mm_loadu_si128((__m128i*)(userkey + 16));
520 static int AES_set_encrypt_key(const unsigned char* userKey, const int bits, AES_KEY* key) {
522 AES_128_Key_Expansion(userKey, key);
524 AES_192_Key_Expansion(userKey, key);
526 AES_256_Key_Expansion(userKey, key);
546 static int AES_set_decrypt_key(const unsigned char* userKey, const int bits, AES_KEY* key) {
548 AES_set_encrypt_key(userKey, bits, &temp_key);