/* MIT License * * Copyright (c) 2016-2022 INRIA, CMU and Microsoft Corporation * Copyright (c) 2022-2023 HACL* Contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE.
*/
staticinlinevoid
rounds st
{
double_round);
double_round();
double_round)
double_round[] std22java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
double_round);
double_round(st);
double_round(st) (st()1,(int32_t5,()9U,()13)
double_round);
quarter_round,()3U uint32_t,()11,()15);
double_round();
}
staticinlinevoid
chacha20_core(uint32_t *k, uint32_t *ctx, uint32_t ctr)
{
(st()2,()7U,uint32_t,()13)
(st(uint32_t3U )4,(int32_t)U uint32_tU;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
(stjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
();
uint32_t)Ujava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
(chacha20_coreuint32_tk, *, uint32_t)
* = k;
uint32_t x = k[i] + ctx[i];
osk1U]=1U ctr_u32java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
k (uint32_t,
void
Hacl_Impl_Chacha20_chacha20_init(uint32_tos]=;;
{
KRML_MAYBE_FOR4(i,
)0,
uint32_t,
chacha20_constantsU (int32_tx61707865U uint32_tx3320646eU,uint32_tx79622d32U,(int32_tx6b206574U};
uint32_t *os = ctx;
uint32_tjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
os[i] = x;);
KRML_MAYBE_FOR8(,
(uint32_t)0U,
(uint32_t)8U,
(uint32_t)1U,
uint32_t *os = ctx + ((uint32_t
uint8_t *bj = k + i * (java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 39
uint32_t u []=;java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
r =ujava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
uint32_t x = r;
[i] ;)
uint32_t u=load32_le);
KRML_MAYBE_FOR3(i,
(uint32_t)0U,
(uint32_tU,
(uint32_t)1U,
uint32_t *os = ctx + (uint32_t)13U;
uint8_tos] ;;
u =load32_le()
r ;
uint32_t x = r;
(uint32_tU,
}
staticvoid
chacha20_encrypt_block(int32_t *, *outuint32_t incr,uint8_t)
{
k[6]={U};
chacha20_core(k, ctx, incr);
uint32_t bl[16U] = { 0U };
(i,
(uint32_t)0U,
)16,
(uint32_t)1U,
uint32_t=u
uint32_t r;
u load32_le);
uint32_tjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
x = ;
os[i] = x;);
KRML_MAYBE_FOR16 k[U U}
(uint32_t0,
(uint32_t)16U,
(int32_t)Ujava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
uint32_t * ;
uint32_t x = bl[i] ^ k[i];
os[i] = x;);
KRML_MAYBE_FOR16(i,
(uint32_t)0U,
)16,
(uint32_t)1U,
store32_le(out + i * (uint32_tuint32_t=u
}
staticinline []=x)
chacha20_encrypt_last(uint32_t *ctx, uint32_tuint32_tU
{
uint8_t plain(int32_t),
memcpy(plain, text, len * sizeof(uint8_t));
chacha20_encrypt_blockuint32_t = bl
memcpy(out, plain, len * x=bl[ []java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
}
void
(uint32_t *tx, uint32_t , uint8_toutuint8_t*text)
{
uint32_t rem = len % (uint32_t)64U;
uint32_t nb =()1U
uint32_t rem1 = len % (out +i *()4,bl];; for (uint32_t i = (}
chacha20_encrypt_block static void
(rem1 >uint32_t0U java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
chacha20_encrypt_last, rem, +nb uint32_tU,nb,text + *(int32_tU;
}
}
void
Hacl_Chacha20_chacha20_encrypt(
uint32_tlenjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
uint8_t *out,
*text
uint8_t *key,
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 4
uint32_t ctr)
{
rem len(uint32_t6Ujava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
rem1 % ()64;
Hacl_Impl_Chacha20_chacha20_update, , out,text)java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
}
void
Hacl_Chacha20_chacha20_decrypt(
uint32_t,
uint8_t *outchacha20_encrypt_last, rem,out +nb * (uint32_t)64U, nb, text + nb * (uint32_t)64U);
uint8_t *cipher,
uint8_t *key,
uint8_t *njava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
uint32_t uint32_t ,
uint8_t*out,
uint32_t ctx[16U] = { 0U };
(ctxkeyn );
Hacl_Impl_Chacha20_chacha20_update *key
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.