mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Update the ARM asm files with a missing initialization for SHA2-256 and
the AesCtrSetKey function for AES-CTR.
This commit is contained in:
@@ -5719,6 +5719,12 @@ int wc_AesCtrEncrypt(Aes* aes, byte* out, const byte* in, word32 sz)
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int wc_AesCtrSetKey(Aes* aes, const byte* key, word32 len,
|
||||||
|
const byte* iv, int dir)
|
||||||
|
{
|
||||||
|
return wc_AesSetKey(aes, key, len, iv, AES_ENCRYPTION);
|
||||||
|
}
|
||||||
#endif /* WOLFSSL_AES_COUNTER */
|
#endif /* WOLFSSL_AES_COUNTER */
|
||||||
|
|
||||||
#ifdef HAVE_AESCCM
|
#ifdef HAVE_AESCCM
|
||||||
|
@@ -85,6 +85,10 @@ static int InitSha256(wc_Sha256* sha256)
|
|||||||
sha256->loLen = 0;
|
sha256->loLen = 0;
|
||||||
sha256->hiLen = 0;
|
sha256->hiLen = 0;
|
||||||
|
|
||||||
|
#ifdef WOLFSSL_HASH_FLAGS
|
||||||
|
sha256->flags = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1575,6 +1579,9 @@ int wc_Sha256Transform(wc_Sha256* sha256, const unsigned char* data)
|
|||||||
sha224->loLen = 0;
|
sha224->loLen = 0;
|
||||||
sha224->hiLen = 0;
|
sha224->hiLen = 0;
|
||||||
|
|
||||||
|
#ifdef WOLFSSL_HASH_FLAGS
|
||||||
|
sha224->flags = 0;
|
||||||
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user