@@ -375,4 +375,48 @@ int cracen_ed25519ph_verify(const uint8_t *pub_key, const char *message, size_t
375
375
376
376
int cracen_ed25519_create_pubkey (const uint8_t * priv_key , uint8_t * pub_key );
377
377
378
+ int be_cmp (const unsigned char * a , const unsigned char * b , size_t sz , int carry );
379
+
380
+ int ecc_create_genpubkey (const char * priv_key , char * pub_key , const struct sx_pk_ecurve * curve );
381
+
382
+ int ecc_create_genprivkey (const struct sx_pk_ecurve * curve , char * priv_key , size_t priv_key_size );
383
+
384
+ int cracen_ecdsa_verify_message (char * pubkey , const struct sxhashalg * hashalg ,
385
+ const uint8_t * message , size_t message_length ,
386
+ const struct sx_pk_ecurve * curve , const uint8_t * signature );
387
+
388
+ int cracen_ecdsa_verify_digest (char * pubkey , const struct sxhashalg * hashalg , const uint8_t * digest ,
389
+ size_t digestsz , const struct sx_pk_ecurve * curve ,
390
+ const uint8_t * signature );
391
+
392
+ int cracen_ecdsa_sign_message (const struct eccsk * privkey , size_t privkey_size ,
393
+ const struct sxhashalg * hashalg , const struct sx_pk_ecurve * curve ,
394
+ const uint8_t * message , size_t message_length , uint8_t * signature ,
395
+ size_t signature_size , size_t * signature_length );
396
+
397
+ int cracen_ecdsa_sign_digest (const struct eccsk * privkey , size_t privkey_size ,
398
+ const struct sxhashalg * hashalg , const struct sx_pk_ecurve * curve ,
399
+ const uint8_t * message , size_t message_length , uint8_t * signature ,
400
+ size_t signature_size , size_t * signature_length );
401
+
402
+ int cracen_ecdsa_sign_message_deterministic (const struct eccsk * privkey , size_t privkey_size ,
403
+ const struct sxhashalg * hashalg ,
404
+ const struct sx_pk_ecurve * curve , const uint8_t * digest ,
405
+ size_t digest_length , uint8_t * signature ,
406
+ size_t signature_size , size_t * signature_length );
407
+
408
+ int cracen_ecdsa_sign_digest_deterministic (const struct eccsk * privkey , size_t privkey_size ,
409
+ const struct sxhashalg * hashalg ,
410
+ const struct sx_pk_ecurve * curve , const uint8_t * digest ,
411
+ size_t digest_length , uint8_t * signature ,
412
+ size_t signature_size , size_t * signature_length );
413
+
414
+ int rndinrange_create (const unsigned char * n , size_t nsz , unsigned char * out );
415
+
416
+ int mac_create_hmac (const struct sxhashalg * hashalg , struct sxhash * hashopctx , const char * key ,
417
+ size_t keysz , char * workmem , size_t workmemsz );
418
+
419
+ int hmac_produce (struct sxhash * hashctx , const struct sxhashalg * hashalg , char * out , size_t sz ,
420
+ char * workmem );
421
+
378
422
#endif /* CRACEN_PSA_H */
0 commit comments