33
33
</ center >
34
34
<!-- Ascon variants -->
35
35
< label for ="variants "> variant</ label >
36
- < select name ="variants " onchange ="change_variant(document.getElementsByName('variants')[0].value) " id =" variants ">
37
- < option value ="Ascon-128 "> Ascon-128</ option >
38
- < option value ="Ascon-128a "> Ascon-128a</ option >
39
- < option value ="Ascon-XOF "> Ascon-XOF</ option >
40
- < option value ="Ascon-XOFa "> Ascon-XOFa</ option >
36
+ < select name ="variants " id =" variants " onchange ="change_variant(document.getElementsByName('variants')[0].value) ">
37
+ < option value ="Ascon-128 "> Ascon-128</ option >
38
+ < option value ="Ascon-128a "> Ascon-128a</ option >
39
+ < option value ="Ascon-XOF "> Ascon-XOF</ option >
40
+ < option value ="Ascon-XOFa "> Ascon-XOFa</ option >
41
41
</ select >
42
42
43
43
< p id ="note "> note: key & nonce must be entered in hexadecimal.</ p >
@@ -49,6 +49,10 @@ <h4 style="text-decoration-line: underline;">Extendible Output Function (XOF)</h
49
49
< p > ***</ p >
50
50
</ center >
51
51
< label for ="message "> message: </ label >
52
+ < select name ="data_format " id ="data_format " onchange ="data_format() ">
53
+ < option value ="raw "> raw</ option >
54
+ < option value ="hex "> hex</ option >
55
+ </ select >
52
56
< textarea id ="message " type ="text " placeholder ="text to be authenticated " rows ="4 " cols ="50 "> </ textarea >
53
57
< br > < br >
54
58
< label for ="hashlength "> output length (bytes):</ label >
@@ -72,8 +76,13 @@ <h4 style="text-decoration-line: underline;">Encrypt</h4>
72
76
< input id ="nonce " type ="text " size ="33 " placeholder ="128-bits "> < button onclick ="document.getElementById('nonce').value = get_random_bytes(16) "> generate random nonce</ button >
73
77
< br > < br >
74
78
< label for ="plaintext "> plaintext:</ label >
79
+ < select name ="data_format " id ="data_format " onchange ="data_format() ">
80
+ < option value ="raw "> raw</ option >
81
+ < option value ="hex "> hex</ option >
82
+ </ select >
75
83
< textarea id ="plaintext " type ="text " placeholder ="text to be encrypted " rows ="4 " cols ="50 "> </ textarea > < label for ="lang "> Non-English</ label > < input id ="lang " type ="checkbox " onclick ="non_eng() ">
76
84
< br > < br >
85
+ < br > < br >
77
86
< label for ="associateddata "> associated data:</ label >
78
87
< textarea id ="associateddata " type ="text " placeholder ="text to be authenticated " rows ="4 " cols ="50 "> </ textarea >
79
88
< br > < br >
0 commit comments