diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2019-09-18 22:13:59 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2019-09-18 22:13:59 +1000 |
commit | 70adc64632dde9359c8c1c23d01ef7f68d51382e (patch) | |
tree | 4a2773f14dde1e47f4920f0d3fb094e3cfba1415 /providers/default/ciphers/cipher_seed.h | |
parent | 9a92bf1bffad15ede5ac97d1f1705c3e2c249a98 (diff) |
Add SEED ciphers to default provider
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9932)
Diffstat (limited to 'providers/default/ciphers/cipher_seed.h')
-rw-r--r-- | providers/default/ciphers/cipher_seed.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/providers/default/ciphers/cipher_seed.h b/providers/default/ciphers/cipher_seed.h new file mode 100644 index 0000000000..093cd3bb5d --- /dev/null +++ b/providers/default/ciphers/cipher_seed.h @@ -0,0 +1,24 @@ +/* + * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved. + * + * Licensed under the Apache License 2.0 (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + +#include <openssl/seed.h> +#include "internal/ciphers/ciphercommon.h" + +typedef struct prov_seed_ctx_st { + PROV_CIPHER_CTX base; /* Must be first */ + union { + OSSL_UNION_ALIGN; + SEED_KEY_SCHEDULE ks; + } ks; +} PROV_SEED_CTX; + +const PROV_CIPHER_HW *PROV_CIPHER_HW_seed_cbc(size_t keybits); +const PROV_CIPHER_HW *PROV_CIPHER_HW_seed_ecb(size_t keybits); +const PROV_CIPHER_HW *PROV_CIPHER_HW_seed_ofb128(size_t keybits); +const PROV_CIPHER_HW *PROV_CIPHER_HW_seed_cfb128(size_t keybits); |