/*
* Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* Public domain version is distributed above.
*/
-/* ====================================================================
- * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved.
- */
-
#include <openssl/e_os2.h>
#include "internal/aria.h"
{
register uint32_t reg0, reg1, reg2, reg3;
int Nr;
-
- const ARIA_u128 *rk = key->rd_key;
+ const ARIA_u128 *rk;
if (in == NULL || out == NULL || key == NULL) {
return;
}
+ rk = key->rd_key;
Nr = key->rounds;
if (Nr != 12 && Nr != 14 && Nr != 16) {
uint32_t w0[4], w1[4], w2[4], w3[4];
const uint32_t *ck;
- ARIA_u128 *rk = key->rd_key;
+ ARIA_u128 *rk;
int Nr = (bits + 256) / 32;
if (userKey == NULL || key == NULL) {
return -2;
}
+ rk = key->rd_key;
key->rounds = Nr;
ck = &Key_RC[(bits - 128) / 64][0];