Lines Matching refs:userKey
538 int ossl_aria_set_encrypt_key(const unsigned char *userKey, const int bits, in ossl_aria_set_encrypt_key() argument
548 if (userKey == NULL || key == NULL) { in ossl_aria_set_encrypt_key()
559 w0[0] = GET_U32_BE(userKey, 0); in ossl_aria_set_encrypt_key()
560 w0[1] = GET_U32_BE(userKey, 1); in ossl_aria_set_encrypt_key()
561 w0[2] = GET_U32_BE(userKey, 2); in ossl_aria_set_encrypt_key()
562 w0[3] = GET_U32_BE(userKey, 3); in ossl_aria_set_encrypt_key()
572 w1[0] = GET_U32_BE(userKey, 4); in ossl_aria_set_encrypt_key()
573 w1[1] = GET_U32_BE(userKey, 5); in ossl_aria_set_encrypt_key()
575 w1[2] = GET_U32_BE(userKey, 6); in ossl_aria_set_encrypt_key()
576 w1[3] = GET_U32_BE(userKey, 7); in ossl_aria_set_encrypt_key()
670 int ossl_aria_set_decrypt_key(const unsigned char *userKey, const int bits, in ossl_aria_set_decrypt_key() argument
679 const int r = ossl_aria_set_encrypt_key(userKey, bits, key); in ossl_aria_set_decrypt_key()
1122 int ossl_aria_set_encrypt_key(const unsigned char *userKey, const int bits, in ossl_aria_set_encrypt_key() argument
1128 if (!userKey || !key) in ossl_aria_set_encrypt_key()
1130 memcpy(w0.c, userKey, sizeof(w0)); in ossl_aria_set_encrypt_key()
1147 memcpy(kr.c, userKey + ARIA_BLOCK_SIZE, sizeof(kr) / 2); in ossl_aria_set_encrypt_key()
1156 memcpy(kr.c, userKey + ARIA_BLOCK_SIZE, sizeof(kr)); in ossl_aria_set_encrypt_key()
1195 int ossl_aria_set_decrypt_key(const unsigned char *userKey, const int bits, in ossl_aria_set_decrypt_key() argument
1199 const int r = ossl_aria_set_encrypt_key(userKey, bits, &ek); in ossl_aria_set_decrypt_key()