aws_encryption_sdk.internal.crypto.elliptic_curve

Contains elliptic curve functionality.

Functions

generate_ecc_signing_key(algorithm) Returns an ECC signing key.
aws_encryption_sdk.internal.crypto.elliptic_curve.generate_ecc_signing_key(algorithm)

Returns an ECC signing key.

Parameters:algorithm (aws_encryption_sdk.identifiers.Algorithm) – Algorithm object which determines what signature to generate
Returns:Generated signing key
Raises:NotSupportedError – if signing algorithm is not supported on this platform
aws_encryption_sdk.internal.crypto.elliptic_curve.int_from_bytes()

int.from_bytes(bytes, byteorder, *, signed=False) -> int

Return the integer represented by the given array of bytes.

The bytes argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

The byteorder argument determines the byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.

The signed keyword-only argument indicates whether two’s complement is used to represent the integer.