Debian Codegraph @

crt/aws-c-cal/source/shared/ed25519_noop.c

raw symbols SCIP
1 /**
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0.
4 */
5
6 #include <aws/cal/ed25519.h>
7
8 struct aws_ed25519_key_pair_impl;
9
10 void aws_ed25519_key_pair_destroy_impl(struct aws_ed25519_key_pair_impl *key_pair) {
11 AWS_FATAL_ASSERT(key_pair == NULL);
12 return;
13 }
14
15 struct aws_ed25519_key_pair_impl *aws_ed25519_key_pair_new_generate_impl(struct aws_allocator *allocator) {
16 (void)allocator;
17 aws_raise_error(AWS_ERROR_CAL_UNSUPPORTED_ALGORITHM);
18 return NULL;
19 }
20
21 int aws_ed25519_key_pair_get_public_key_impl(
22 const struct aws_ed25519_key_pair_impl *key_pair,
23 enum aws_ed25519_key_export_format format,
24 struct aws_byte_buf *out) {
25 (void)key_pair;
26 (void)format;
27 (void)out;
28 return aws_raise_error(AWS_ERROR_CAL_UNSUPPORTED_ALGORITHM);
29 }
30
31 size_t aws_ed25519_key_pair_get_public_key_size_impl(enum aws_ed25519_key_export_format format) {
32 (void)format;
33 AWS_FATAL_ASSERT(0);
34 return 0;
35 }
36
37 int aws_ed25519_key_pair_get_private_key_impl(
38 const struct aws_ed25519_key_pair_impl *key_pair,
39 enum aws_ed25519_key_export_format format,
40 struct aws_byte_buf *out) {
41 (void)key_pair;
42 (void)format;
43 (void)out;
44 return aws_raise_error(AWS_ERROR_CAL_UNSUPPORTED_ALGORITHM);
45 }
46
47 size_t aws_ed25519_key_pair_get_private_key_size_impl(enum aws_ed25519_key_export_format format) {
48 (void)format;
49 AWS_FATAL_ASSERT(0);
50 return 0;
51 }