-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
并发执行加密函数encode会导致失败 #23
Comments
奇怪,应该不会这样子啊。你确定吗? |
是我代码里有static的字段吗, 我太久没看这个仓库了。如果有你试着改改。最近几天我上不了网。 |
同步调用encode就没有问题,所以应该是并发引起的 确实有static字段: |
解决了,将 |
Okay, Can u give me a pull request? Thanx a lot. |
If u have more suggestions for this repository, I can add you to an organization and we will maintain it together. |
好的,正在整理 |
帮我设置为开发者吧,一直提示我没有权限push AESJniEncrypt forest$ git push origin develop Please make sure you have the correct access rights |
From 889c28113ffdc90e29541a711750308c5b2af635 Mon Sep 17 00:00:00 2001 aesjni/src/main/cpp/aes.c | 74 +++++++++++++++++++++++------------------------ diff --git a/aesjni/src/main/cpp/aes.c b/aesjni/src/main/cpp/aes.c // The array that stores the round keys. // The Key input to the AES Program // This function produces Nb(Nr+1) round keys. The round keys are used in each round to decrypt the states. // This function adds the round key to state. // The SubBytes Function Substitutes the values in the @@ -281,7 +281,7 @@ static uint8_t xtime(uint8_t x) // MixColumns function mixes the columns of the state matrix // The SubBytes Function Substitutes the values in the -static void InvShiftRows(void) @@ -382,54 +382,54 @@ static void InvShiftRows(void) // Cipher is the main function that encrypts the PlainText. // Add the First round key to the state before starting the rounds.
// The last round is given below.
-static void InvCipher(void) // Add the First round key to the state before starting the rounds.
// The last round is given below.
static void BlockCopy(uint8_t* output, uint8_t* input)
void AES128_ECB_decrypt(uint8_t* input, const uint8_t* key, uint8_t *output)
/**2.13.2 |
sorry,the reply is late. |
Sorry ever one, AES is no longer supported. |
实际测试发现并发执行encode后,程序异常,解密失败,定位后发现是并发调用encode,encode能支持并发吗?
The text was updated successfully, but these errors were encountered: