summaryrefslogtreecommitdiffstats
path: root/providers (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Structure alignment macro.Pauli2019-05-011-2/+4
| | | | | | | | Introduce a macro that allows all structure alignment tricks to be rolled up into a single place. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8845)
* Replumbing: give the possibility for the provider to create a contextRichard Levitte2019-04-305-5/+8
| | | | | | | | | | | | | | | OSSL_provider_init() gets another output parameter, holding a pointer to a provider side context. It's entirely up to the provider to define the context and what it's being used for. This pointer is passed back to other provider functions, typically the provider global get_params and set_params functions, and also the diverse algorithm context creators, and of course, the teardown function. With this, a provider can be instantiated more than once, or be re-loaded as the case may be, while maintaining instance state. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8848)
* Replumbing: make the oneshot proider cipher function like the othersRichard Levitte2019-04-301-2/+9
| | | | | | | | | The OP_cipher_final function takes a return output size and an output buffer size argument. The oneshot OP_cipher_cipher function should do the same. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8849)
* Create provider errors and use themMatt Caswell2019-04-197-32/+207
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
* Fix the S390X support for the basic AES ciphersMatt Caswell2019-04-193-215/+152
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
* Add forward declarations of the AES dispatch table functionsMatt Caswell2019-04-191-0/+21
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
* Add a maximum output length to update and final callsMatt Caswell2019-04-191-5/+19
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
* Add iv length and key length params to the cipher init callsMatt Caswell2019-04-191-10/+24
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
* Implement AES CTR ciphers in the default providerMatt Caswell2019-04-193-0/+17
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
* Implement AES CFB ciphers in the default providerMatt Caswell2019-04-193-0/+42
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
* Implement AES OFB ciphers in the default providerMatt Caswell2019-04-193-15/+72
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
* Implement AES CBC ciphers in the default providerMatt Caswell2019-04-193-72/+92
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
* Add support in the default provider for 192/128 bit AES ECBMatt Caswell2019-04-193-0/+68
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
* Add the provider_algs.h internal header fileMatt Caswell2019-04-195-7/+18
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
* Implement support for AES-256-ECB in the default providerMatt Caswell2019-04-197-1/+1374
| | | | | | | We also lay the ground work for various of other the basic AES ciphers. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
* Make EVP_Encrypt*/EVP_Decrypt* and EVP_Cipher* provider awareMatt Caswell2019-04-192-2/+2
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8700)
* providers/common/digests/sha2.c: forward declare all dispatched functionsRichard Levitte2019-04-151-0/+16
| | | | | | | | Forward declare the dispatched functions using typedefs from core_numbers.h. This will ensure that they have correct signatures. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8747)
* Providers: for the digest_final operation, pass a output buffer sizeRichard Levitte2019-04-151-3/+5
| | | | | | | | | | | | This allows the provider digest_final operation to check that it doesn't over-run the output buffer. The EVP_DigestFinal_ex function doesn't take that same parameter, so it will have to assume that the user provided a properly sized buffer, but this leaves better room for future enhancements of the public API. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8747)
* Add a legacy provider and put MD2 in itMatt Caswell2019-04-095-0/+183
| | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8541)
* Create a FIPS provider and put SHA256 in itMatt Caswell2019-04-054-1/+115
| | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8537)
* Support EVP_MD_block_size() with providersMatt Caswell2019-04-031-0/+6
| | | | | | | Fixes #8565 Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8604)
* Implement SHA256 in the default providerMatt Caswell2019-03-215-1/+88
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8513)
* Add a skeleton default providerMatt Caswell2019-03-213-0/+85
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8513)