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