-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathcrypto.h
More file actions
60 lines (48 loc) · 2.65 KB
/
crypto.h
File metadata and controls
60 lines (48 loc) · 2.65 KB
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
52
53
54
55
56
57
58
59
60
#ifndef AWS_CRT_PYTHON_CRYPTO_H
#define AWS_CRT_PYTHON_CRYPTO_H
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include "module.h"
/** Name string for hash capsule. */
extern const char *s_capsule_name_hash;
/** Name string for hmac capsule. */
extern const char *s_capsule_name_hmac;
/** Name string for rsa capsule. */
extern const char *s_capsule_name_rsa;
/** Name string for rsa capsule. */
extern const char *s_capsule_name_ed25519;
PyObject *aws_py_sha1_new(PyObject *self, PyObject *args);
PyObject *aws_py_sha256_new(PyObject *self, PyObject *args);
PyObject *aws_py_sha512_new(PyObject *self, PyObject *args);
PyObject *aws_py_md5_new(PyObject *self, PyObject *args);
PyObject *aws_py_hash_update(PyObject *self, PyObject *args);
PyObject *aws_py_hash_digest(PyObject *self, PyObject *args);
PyObject *aws_py_sha256_hmac_new(PyObject *self, PyObject *args);
PyObject *aws_py_hmac_update(PyObject *self, PyObject *args);
PyObject *aws_py_hmac_digest(PyObject *self, PyObject *args);
PyObject *aws_py_sha256_compute(PyObject *self, PyObject *args);
PyObject *aws_py_md5_compute(PyObject *self, PyObject *args);
PyObject *aws_py_sha256_hmac_compute(PyObject *self, PyObject *args);
PyObject *aws_py_rsa_private_key_from_pem_data(PyObject *self, PyObject *args);
PyObject *aws_py_rsa_public_key_from_pem_data(PyObject *self, PyObject *args);
PyObject *aws_py_rsa_private_key_from_der_data(PyObject *self, PyObject *args);
PyObject *aws_py_rsa_public_key_from_der_data(PyObject *self, PyObject *args);
PyObject *aws_py_rsa_encrypt(PyObject *self, PyObject *args);
PyObject *aws_py_rsa_decrypt(PyObject *self, PyObject *args);
PyObject *aws_py_rsa_sign(PyObject *self, PyObject *args);
PyObject *aws_py_rsa_verify(PyObject *self, PyObject *args);
PyObject *aws_py_ed25519_new_generate(PyObject *self, PyObject *args);
PyObject *aws_py_ed25519_export_public_key(PyObject *self, PyObject *args);
PyObject *aws_py_ed25519_export_private_key(PyObject *self, PyObject *args);
PyObject *aws_py_ec_new_generate(PyObject *self, PyObject *args);
PyObject *aws_py_ec_key_from_der_data(PyObject *self, PyObject *args);
PyObject *aws_py_ec_export_key(PyObject *self, PyObject *args);
PyObject *aws_py_ec_sign(PyObject *self, PyObject *args);
PyObject *aws_py_ec_verify(PyObject *self, PyObject *args);
PyObject *aws_py_ec_encode_signature(PyObject *self, PyObject *args);
PyObject *aws_py_ec_decode_signature(PyObject *self, PyObject *args);
PyObject *aws_py_ec_decode_signature_to_padded_pair(PyObject *self, PyObject *args);
PyObject *aws_py_ec_get_public_coords(PyObject *self, PyObject *args);
#endif /* AWS_CRT_PYTHON_CRYPTO_H */