crypto/signature: remove domain seperators for now
parent
b4089b97b1
commit
962eed50db
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue