Software APIs
sw
device
lib
crypto
impl
x25519.c
1
// Copyright lowRISC contributors (OpenTitan project).
2
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3
// SPDX-License-Identifier: Apache-2.0
4
5
#include "
sw/device/lib/crypto/include/x25519.h
"
6
7
#include "sw/device/lib/crypto/impl/status.h"
8
#include "
sw/device/lib/crypto/include/datatypes.h
"
9
10
// Module ID for status codes.
11
#define MODULE_ID MAKE_MODULE_ID('x', '2', '5')
12
13
otcrypto_status_t
otcrypto_x25519_keygen
(
otcrypto_blinded_key_t
*private_key,
14
otcrypto_unblinded_key_t
*public_key) {
15
// TODO: Connect X25519 operations to API.
16
return
OTCRYPTO_NOT_IMPLEMENTED;
17
}
18
19
otcrypto_status_t
otcrypto_x25519
(
const
otcrypto_blinded_key_t
*private_key,
20
const
otcrypto_unblinded_key_t
*public_key,
21
otcrypto_blinded_key_t
*shared_secret) {
22
// TODO: Connect X25519 operations to API.
23
return
OTCRYPTO_NOT_IMPLEMENTED;
24
}
25
26
otcrypto_status_t
otcrypto_x25519_keygen_async_start
(
27
const
otcrypto_blinded_key_t
*private_key) {
28
// TODO: X25519 is not yet implemented.
29
return
OTCRYPTO_NOT_IMPLEMENTED;
30
}
31
32
otcrypto_status_t
otcrypto_x25519_keygen_async_finalize
(
33
otcrypto_blinded_key_t
*private_key,
otcrypto_unblinded_key_t
*public_key) {
34
// TODO: X25519 is not yet implemented.
35
return
OTCRYPTO_NOT_IMPLEMENTED;
36
}
37
38
otcrypto_status_t
otcrypto_x25519_async_start
(
39
const
otcrypto_blinded_key_t
*private_key,
40
const
otcrypto_unblinded_key_t
*public_key) {
41
// TODO: X25519 is not yet implemented.
42
return
OTCRYPTO_NOT_IMPLEMENTED;
43
}
44
45
otcrypto_status_t
otcrypto_x25519_async_finalize
(
46
otcrypto_blinded_key_t
*shared_secret) {
47
// TODO: X25519 is not yet implemented.
48
return
OTCRYPTO_NOT_IMPLEMENTED;
49
}
Return to
OpenTitan Documentation