crypto/signature: remove domain seperators for now

cute-signatures
Aydin Mercan 2022-08-13 13:37:50 +03:00
parent b4089b97b1
commit 962eed50db
Signed by: jaiden
SSH Key Fingerprint: SHA256:vy6hjzotbn/MWZAbjzURNk3NL62EPkjoHsJ5xr/s7nk
2 changed files with 0 additions and 14 deletions

View File

@ -284,7 +284,6 @@ void apk_public_key_free(struct apk_public_key *pub)
int apk_verify_digest_start(struct apk_digest_ctx *dctx, uint16_t signature_type)
{
const uint8_t domain_seperator[5] = {'q', 't', 's', 'e', 'p'};
uint8_t digest;
switch (signature_type) {
@ -306,12 +305,6 @@ int apk_verify_digest_start(struct apk_digest_ctx *dctx, uint16_t signature_type
return -APKE_CRYPTO_ERROR;
}
if (signature_type == APK_SIGNATURE_CUTE) {
if (apk_digest_ctx_update(dctx, domain_seperator, 5) != 0) {
return -APKE_CRYPTO_ERROR;
}
}
return 0;
}

View File

@ -280,7 +280,6 @@ void apk_secret_key_free(struct apk_secret_key *sec)
int apk_sign_digest_start(struct apk_digest_ctx *dctx, uint16_t signature_type)
{
const uint8_t domain_seperator[5] = {'q', 't', 's', 'e', 'p'};
uint8_t digest;
switch (signature_type) {
@ -302,12 +301,6 @@ int apk_sign_digest_start(struct apk_digest_ctx *dctx, uint16_t signature_type)
return -APKE_CRYPTO_ERROR;
}
if (signature_type == APK_SIGNATURE_CUTE) {
if (apk_digest_ctx_update(dctx, domain_seperator, 5) != 0) {
return -APKE_CRYPTO_ERROR;
}
}
return 0;
}