Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lwc
/
candidates
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5da2389f
authored
Nov 03, 2021
by
Ferdinand Bachmann
Committed by
Sebastian Renner
Nov 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new ascon
parent
0f49c046
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
129 additions
and
0 deletions
+129
-0
ascon/Implementations/crypto_aead/ascon128av12/asm_esp32/api.h
+5
-0
ascon/Implementations/crypto_aead/ascon128av12/asm_esp32/ascon.S
+0
-0
ascon/Implementations/crypto_aead/ascon128av12/asm_esp32/ascon.h
+7
-0
ascon/Implementations/crypto_aead/ascon128av12/asm_esp32/decrypt.c
+17
-0
ascon/Implementations/crypto_aead/ascon128av12/asm_esp32/encrypt.c
+13
-0
ascon/Implementations/crypto_aead/ascon128av12/asm_esp32/implementors
+1
-0
ascon/Implementations/crypto_aead/ascon128v12/asm_esp32/api.h
+5
-0
ascon/Implementations/crypto_aead/ascon128v12/asm_esp32/ascon.S
+0
-0
ascon/Implementations/crypto_aead/ascon128v12/asm_esp32/ascon.h
+7
-0
ascon/Implementations/crypto_aead/ascon128v12/asm_esp32/decrypt.c
+17
-0
ascon/Implementations/crypto_aead/ascon128v12/asm_esp32/encrypt.c
+13
-0
ascon/Implementations/crypto_aead/ascon128v12/asm_esp32/implementors
+1
-0
ascon/Implementations/crypto_aead/ascon80pqv12/asm_esp32/api.h
+5
-0
ascon/Implementations/crypto_aead/ascon80pqv12/asm_esp32/ascon.S
+0
-0
ascon/Implementations/crypto_aead/ascon80pqv12/asm_esp32/ascon.h
+7
-0
ascon/Implementations/crypto_aead/ascon80pqv12/asm_esp32/decrypt.c
+17
-0
ascon/Implementations/crypto_aead/ascon80pqv12/asm_esp32/encrypt.c
+13
-0
ascon/Implementations/crypto_aead/ascon80pqv12/asm_esp32/implementors
+1
-0
No files found.
ascon/Implementations/crypto_aead/ascon128av12/asm_esp32/api.h
0 → 100644
View file @
5da2389f
#define CRYPTO_KEYBYTES 16
#define CRYPTO_NSECBYTES 0
#define CRYPTO_NPUBBYTES 16
#define CRYPTO_ABYTES 16
#define CRYPTO_NOOVERLAP 1
ascon/Implementations/crypto_aead/ascon128av12/asm_esp32/ascon.S
0 → 100644
View file @
5da2389f
This diff is collapsed.
Click to expand it.
ascon/Implementations/crypto_aead/ascon128av12/asm_esp32/ascon.h
0 → 100644
View file @
5da2389f
#include "api.h"
int
ascon_core
(
unsigned
char
*
outptr
,
const
unsigned
char
*
inptr
,
unsigned
int
inlen
,
const
unsigned
char
*
adptr
,
unsigned
int
adlen
,
const
unsigned
char
*
nptr
,
const
unsigned
char
*
kptr
,
unsigned
char
mode
);
ascon/Implementations/crypto_aead/ascon128av12/asm_esp32/decrypt.c
0 → 100644
View file @
5da2389f
#include "ascon.h"
int
crypto_aead_decrypt
(
unsigned
char
*
m
,
unsigned
long
long
*
mlen
,
unsigned
char
*
nsec
,
const
unsigned
char
*
c
,
unsigned
long
long
clen
,
const
unsigned
char
*
ad
,
unsigned
long
long
adlen
,
const
unsigned
char
*
npub
,
const
unsigned
char
*
k
)
{
if
(
clen
<
CRYPTO_ABYTES
)
{
*
mlen
=
0
;
return
-
1
;
}
*
mlen
=
clen
-
CRYPTO_ABYTES
;
(
void
)
nsec
;
return
ascon_core
(
m
,
c
,
*
mlen
,
ad
,
adlen
,
npub
,
k
,
-
1
);
}
ascon/Implementations/crypto_aead/ascon128av12/asm_esp32/encrypt.c
0 → 100644
View file @
5da2389f
#include "ascon.h"
int
crypto_aead_encrypt
(
unsigned
char
*
c
,
unsigned
long
long
*
clen
,
const
unsigned
char
*
m
,
unsigned
long
long
mlen
,
const
unsigned
char
*
ad
,
unsigned
long
long
adlen
,
const
unsigned
char
*
nsec
,
const
unsigned
char
*
npub
,
const
unsigned
char
*
k
)
{
*
clen
=
mlen
+
CRYPTO_ABYTES
;
(
void
)
nsec
;
return
ascon_core
(
c
,
m
,
mlen
,
ad
,
adlen
,
npub
,
k
,
1
);
}
ascon/Implementations/crypto_aead/ascon128av12/asm_esp32/implementors
0 → 100644
View file @
5da2389f
Ferdinand Bachmann
ascon/Implementations/crypto_aead/ascon128v12/asm_esp32/api.h
0 → 100644
View file @
5da2389f
#define CRYPTO_KEYBYTES 16
#define CRYPTO_NSECBYTES 0
#define CRYPTO_NPUBBYTES 16
#define CRYPTO_ABYTES 16
#define CRYPTO_NOOVERLAP 1
ascon/Implementations/crypto_aead/ascon128v12/asm_esp32/ascon.S
0 → 100644
View file @
5da2389f
This diff is collapsed.
Click to expand it.
ascon/Implementations/crypto_aead/ascon128v12/asm_esp32/ascon.h
0 → 100644
View file @
5da2389f
#include "api.h"
int
ascon_core
(
unsigned
char
*
outptr
,
const
unsigned
char
*
inptr
,
unsigned
int
inlen
,
const
unsigned
char
*
adptr
,
unsigned
int
adlen
,
const
unsigned
char
*
nptr
,
const
unsigned
char
*
kptr
,
unsigned
char
mode
);
ascon/Implementations/crypto_aead/ascon128v12/asm_esp32/decrypt.c
0 → 100644
View file @
5da2389f
#include "ascon.h"
int
crypto_aead_decrypt
(
unsigned
char
*
m
,
unsigned
long
long
*
mlen
,
unsigned
char
*
nsec
,
const
unsigned
char
*
c
,
unsigned
long
long
clen
,
const
unsigned
char
*
ad
,
unsigned
long
long
adlen
,
const
unsigned
char
*
npub
,
const
unsigned
char
*
k
)
{
if
(
clen
<
CRYPTO_ABYTES
)
{
*
mlen
=
0
;
return
-
1
;
}
*
mlen
=
clen
-
CRYPTO_ABYTES
;
(
void
)
nsec
;
return
ascon_core
(
m
,
c
,
*
mlen
,
ad
,
adlen
,
npub
,
k
,
-
1
);
}
ascon/Implementations/crypto_aead/ascon128v12/asm_esp32/encrypt.c
0 → 100644
View file @
5da2389f
#include "ascon.h"
int
crypto_aead_encrypt
(
unsigned
char
*
c
,
unsigned
long
long
*
clen
,
const
unsigned
char
*
m
,
unsigned
long
long
mlen
,
const
unsigned
char
*
ad
,
unsigned
long
long
adlen
,
const
unsigned
char
*
nsec
,
const
unsigned
char
*
npub
,
const
unsigned
char
*
k
)
{
*
clen
=
mlen
+
CRYPTO_ABYTES
;
(
void
)
nsec
;
return
ascon_core
(
c
,
m
,
mlen
,
ad
,
adlen
,
npub
,
k
,
1
);
}
ascon/Implementations/crypto_aead/ascon128v12/asm_esp32/implementors
0 → 100644
View file @
5da2389f
Ferdinand Bachmann
ascon/Implementations/crypto_aead/ascon80pqv12/asm_esp32/api.h
0 → 100644
View file @
5da2389f
#define CRYPTO_KEYBYTES 20
#define CRYPTO_NSECBYTES 0
#define CRYPTO_NPUBBYTES 16
#define CRYPTO_ABYTES 16
#define CRYPTO_NOOVERLAP 1
ascon/Implementations/crypto_aead/ascon80pqv12/asm_esp32/ascon.S
0 → 100644
View file @
5da2389f
This diff is collapsed.
Click to expand it.
ascon/Implementations/crypto_aead/ascon80pqv12/asm_esp32/ascon.h
0 → 100644
View file @
5da2389f
#include "api.h"
int
ascon_core
(
unsigned
char
*
outptr
,
const
unsigned
char
*
inptr
,
unsigned
int
inlen
,
const
unsigned
char
*
adptr
,
unsigned
int
adlen
,
const
unsigned
char
*
nptr
,
const
unsigned
char
*
kptr
,
unsigned
char
mode
);
ascon/Implementations/crypto_aead/ascon80pqv12/asm_esp32/decrypt.c
0 → 100644
View file @
5da2389f
#include "ascon.h"
int
crypto_aead_decrypt
(
unsigned
char
*
m
,
unsigned
long
long
*
mlen
,
unsigned
char
*
nsec
,
const
unsigned
char
*
c
,
unsigned
long
long
clen
,
const
unsigned
char
*
ad
,
unsigned
long
long
adlen
,
const
unsigned
char
*
npub
,
const
unsigned
char
*
k
)
{
if
(
clen
<
CRYPTO_ABYTES
)
{
*
mlen
=
0
;
return
-
1
;
}
*
mlen
=
clen
-
CRYPTO_ABYTES
;
(
void
)
nsec
;
return
ascon_core
(
m
,
c
,
*
mlen
,
ad
,
adlen
,
npub
,
k
,
-
1
);
}
ascon/Implementations/crypto_aead/ascon80pqv12/asm_esp32/encrypt.c
0 → 100644
View file @
5da2389f
#include "ascon.h"
int
crypto_aead_encrypt
(
unsigned
char
*
c
,
unsigned
long
long
*
clen
,
const
unsigned
char
*
m
,
unsigned
long
long
mlen
,
const
unsigned
char
*
ad
,
unsigned
long
long
adlen
,
const
unsigned
char
*
nsec
,
const
unsigned
char
*
npub
,
const
unsigned
char
*
k
)
{
*
clen
=
mlen
+
CRYPTO_ABYTES
;
(
void
)
nsec
;
return
ascon_core
(
c
,
m
,
mlen
,
ad
,
adlen
,
npub
,
k
,
1
);
}
ascon/Implementations/crypto_aead/ascon80pqv12/asm_esp32/implementors
0 → 100644
View file @
5da2389f
Ferdinand Bachmann
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment