Lines Matching full:ec
720 * Internal data structure for EC implementation. The contents is specific
728 * Internal data structure for EC implementation to represent a point. The
737 * Returns: Pointer to EC context or %NULL on failure
743 * @e: EC context from crypto_ec_init()
749 * @e: EC context from crypto_ec_init()
756 * @e: EC context from crypto_ec_init()
763 * @e: EC context from crypto_ec_init()
769 * crypto_ec_get_prime - Get prime defining an EC group
770 * @e: EC context from crypto_ec_init()
776 * crypto_ec_get_order - Get order of an EC group
777 * @e: EC context from crypto_ec_init()
783 * crypto_ec_get_a - Get 'a' coefficient of an EC group's curve
784 * @e: EC context from crypto_ec_init()
790 * crypto_ec_get_b - Get 'b' coeffiecient of an EC group's curve
791 * @e: EC context from crypto_ec_init()
797 * crypto_ec_get_generator - Get generator point of the EC group's curve
798 * @e: EC context from crypto_ec_init()
804 * crypto_ec_point_init - Initialize data for an EC point
805 * @e: EC context from crypto_ec_init()
806 * Returns: Pointer to EC point data or %NULL on failure
811 * crypto_ec_point_deinit - Deinitialize EC point data
812 * @p: EC point data from crypto_ec_point_init()
813 * @clear: Whether to clear the EC point value from memory
819 * @e: EC context from crypto_ec_init()
820 * @p: EC point data
828 * crypto_ec_point_to_bin - Write EC point value as binary data
829 * @e: EC context from crypto_ec_init()
830 * @p: EC point data from crypto_ec_point_init()
835 * This function can be used to write an EC point as binary data in a format
843 * crypto_ec_point_from_bin - Create EC point from binary data
844 * @e: EC context from crypto_ec_init()
845 * @val: Binary data to read the EC point from
846 * Returns: Pointer to EC point data or %NULL on failure
848 * This function readers x and y coordinates of the EC point from the provided
857 * @e: EC context from crypto_ec_init()
869 * @e: EC context from crypto_ec_init()
870 * @p: EC point
872 * @res: EC point; used to store the result of b * p
880 * crypto_ec_point_invert - Compute inverse of an EC point
881 * @e: EC context from crypto_ec_init()
882 * @p: EC point to invert (and result of the operation)
889 * @e: EC context from crypto_ec_init()
898 * crypto_ec_point_is_at_infinity - Check whether EC point is neutral element
899 * @e: EC context from crypto_ec_init()
900 * @p: EC point
901 * Returns: 1 if the specified EC point is the neutral element of the group or
908 * crypto_ec_point_is_on_curve - Check whether EC point is on curve
909 * @e: EC context from crypto_ec_init()
910 * @p: EC point
911 * Returns: 1 if the specified EC point is on the curve or 0 if not
917 * crypto_ec_point_cmp - Compare two EC points
918 * @e: EC context from crypto_ec_init()
919 * @a: EC point
920 * @b: EC point
928 * crypto_ec_point_debug_print - Dump EC point to debug log
929 * @e: EC context from crypto_ec_init()
930 * @p: EC point
931 * @title: Name of the EC point in the trace
940 * Internal data structure for EC key pair. The contents is specific to the used
964 * given EC key
967 * @own_key: Our own EC Key
1008 * crypto_ec_key_parse_priv - Initialize EC key pair from ECPrivateKey ASN.1
1011 * Returns: EC key or %NULL on failure
1016 * crypto_ec_key_set_priv - Initialize EC key pair from raw key data
1020 * Returns: EC key or %NULL on failure
1026 * crypto_ec_key_parse_pub - Initialize EC key pair from SubjectPublicKeyInfo ASN.1
1029 * Returns: EC key or %NULL on failure
1034 * crypto_ec_key_set_pub - Initialize an EC public key from EC point coordinates
1039 * Returns: EC key or %NULL on failure
1041 * This function initialize an EC key from public key coordinates, in big endian
1048 * crypto_ec_key_set_pub_point - Initialize an EC public key from EC point
1049 * @e: EC context from crypto_ec_init()
1051 * Returns: EC key or %NULL on failure
1058 * crypto_ec_key_gen - Generate EC key pair
1060 * Returns: EC key or %NULL on failure
1065 * crypto_ec_key_deinit - Free EC key
1066 * @key: EC key from crypto_ec_key_parse_pub/priv() or crypto_ec_key_gen()
1071 * crypto_ec_key_get_subject_public_key - Get SubjectPublicKeyInfo ASN.1 for an EC key
1072 * @key: EC key from crypto_ec_key_parse/set_pub/priv() or crypto_ec_key_gen()
1079 * crypto_ec_key_get_ecprivate_key - Get ECPrivateKey ASN.1 for a EC key
1080 * @key: EC key from crypto_ec_key_parse_priv() or crypto_ec_key_gen()
1089 * @key: EC key from crypto_ec_key_parse/set_pub() or crypto_ec_key_parse_priv()
1099 * crypto_ec_key_get_public_key - Get EC public key as an EC point
1100 * @key: EC key from crypto_ec_key_parse/set_pub() or crypto_ec_key_parse_priv()
1101 * Returns: Public key as an EC point or %NULL on failure
1109 * crypto_ec_key_get_private_key - Get EC private key as a bignum
1110 * @key: EC key from crypto_ec_key_parse/set_pub() or crypto_ec_key_parse_priv()
1119 * crypto_ec_key_sign - Sign a buffer with an EC key
1120 * @key: EC key from crypto_ec_key_parse_priv() or crypto_ec_key_gen()
1129 * crypto_ec_key_sign_r_s - Sign a buffer with an EC key
1130 * @key: EC key from crypto_ec_key_parse_priv() or crypto_ec_key_gen()
1142 * @key: EC key from crypto_ec_key_parse/set_pub() or crypto_ec_key_gen()
1154 * @key: EC key from crypto_ec_key_parse/set_pub() or crypto_ec_key_gen()
1171 * crypto_ec_key_group - Get IANA group identifier for an EC key
1172 * @key: EC key from crypto_ec_key_parse/set_pub/priv() or crypto_ec_key_gen()
1178 * crypto_ec_key_cmp - Compare two EC public keys
1186 * crypto_ec_key_debug_print - Dump EC key to debug log
1187 * @key: EC key from crypto_ec_key_parse/set_pub/priv() or crypto_ec_key_gen()
1188 * @title: Name of the EC point in the trace
1198 * For now it is assumed that only an EC public key can be used
1243 * @key: EC public key to set as public key in the CSR
1286 * @key: Private key to sign the CSR (for now ony EC key are supported)