aws-lc-fips-sys 0.14.1

AWS-LC is a general-purpose cryptographic library maintained by the AWS Cryptography team for AWS and their customers. This is the FIPS validated version of AWS-LC.
1
2
3
4
5
6
7
8
9
10
11
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC

#include <openssl/ctrdrbg.h>

#include "internal.h"

int snapsafe_fallback_get_seed(uint8_t seed[CTR_DRBG_ENTROPY_LEN]) {
    CRYPTO_sysrand(seed, CTR_DRBG_ENTROPY_LEN);
    return 1;
}