mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Add XXX_PROCESS_ALT mecchanism
This commit is contained in:
parent
26c9f90cae
commit
427b672551
9 changed files with 52 additions and 4 deletions
|
|
@ -129,6 +129,7 @@ void sha256_starts( sha256_context *ctx, int is224 )
|
|||
ctx->is224 = is224;
|
||||
}
|
||||
|
||||
#if !defined(POLARSSL_SHA256_PROCESS_ALT)
|
||||
void sha256_process( sha256_context *ctx, const unsigned char data[64] )
|
||||
{
|
||||
uint32_t temp1, temp2, W[64];
|
||||
|
|
@ -259,6 +260,7 @@ void sha256_process( sha256_context *ctx, const unsigned char data[64] )
|
|||
ctx->state[6] += G;
|
||||
ctx->state[7] += H;
|
||||
}
|
||||
#endif /* !POLARSSL_SHA256_PROCESS_ALT */
|
||||
|
||||
/*
|
||||
* SHA-256 process buffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue