Debian Codegraph @

source/crypto.h

raw symbols SCIP
1 #ifndef AWS_CRT_PYTHON_CRYPTO_H
2 #define AWS_CRT_PYTHON_CRYPTO_H
3 /**
4 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
5 * SPDX-License-Identifier: Apache-2.0.
6 */
7 #include "module.h"
8
9 /** Name string for hash capsule. */
10 extern const char *s_capsule_name_hash;
11 /** Name string for hmac capsule. */
12 extern const char *s_capsule_name_hmac;
13 /** Name string for rsa capsule. */
14 extern const char *s_capsule_name_rsa;
15 /** Name string for rsa capsule. */
16 extern const char *s_capsule_name_ed25519;
17
18 PyObject *aws_py_sha1_new(PyObject *self, PyObject *args);
19 PyObject *aws_py_sha256_new(PyObject *self, PyObject *args);
20 PyObject *aws_py_md5_new(PyObject *self, PyObject *args);
21
22 PyObject *aws_py_hash_update(PyObject *self, PyObject *args);
23 PyObject *aws_py_hash_digest(PyObject *self, PyObject *args);
24
25 PyObject *aws_py_sha256_hmac_new(PyObject *self, PyObject *args);
26
27 PyObject *aws_py_hmac_update(PyObject *self, PyObject *args);
28 PyObject *aws_py_hmac_digest(PyObject *self, PyObject *args);
29
30 PyObject *aws_py_sha256_compute(PyObject *self, PyObject *args);
31 PyObject *aws_py_md5_compute(PyObject *self, PyObject *args);
32 PyObject *aws_py_sha256_hmac_compute(PyObject *self, PyObject *args);
33
34 PyObject *aws_py_rsa_private_key_from_pem_data(PyObject *self, PyObject *args);
35 PyObject *aws_py_rsa_public_key_from_pem_data(PyObject *self, PyObject *args);
36
37 PyObject *aws_py_rsa_private_key_from_der_data(PyObject *self, PyObject *args);
38 PyObject *aws_py_rsa_public_key_from_der_data(PyObject *self, PyObject *args);
39
40 PyObject *aws_py_rsa_encrypt(PyObject *self, PyObject *args);
41 PyObject *aws_py_rsa_decrypt(PyObject *self, PyObject *args);
42 PyObject *aws_py_rsa_sign(PyObject *self, PyObject *args);
43 PyObject *aws_py_rsa_verify(PyObject *self, PyObject *args);
44
45 PyObject *aws_py_ed25519_new_generate(PyObject *self, PyObject *args);
46 PyObject *aws_py_ed25519_export_public_key(PyObject *self, PyObject *args);
47 PyObject *aws_py_ed25519_export_private_key(PyObject *self, PyObject *args);
48
49 PyObject *aws_py_ec_new_generate(PyObject *self, PyObject *args);
50 PyObject *aws_py_ec_key_from_der_data(PyObject *self, PyObject *args);
51 PyObject *aws_py_ec_export_key(PyObject *self, PyObject *args);
52 PyObject *aws_py_ec_sign(PyObject *self, PyObject *args);
53 PyObject *aws_py_ec_verify(PyObject *self, PyObject *args);
54 PyObject *aws_py_ec_encode_signature(PyObject *self, PyObject *args);
55 PyObject *aws_py_ec_decode_signature(PyObject *self, PyObject *args);
56 PyObject *aws_py_ec_decode_signature_to_padded_pair(PyObject *self, PyObject *args);
57 PyObject *aws_py_ec_get_public_coords(PyObject *self, PyObject *args);
58
59 #endif /* AWS_CRT_PYTHON_CRYPTO_H */