Skip to content

Commit c9f1c40

Browse files
committed
Allow signing raw messages in keystore
Add NONE to the allowed digests so that the keys can be used to sign messages that are already hashed.
1 parent f5c7633 commit c9f1c40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/termux-keystore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ generate_key () {
109109

110110
# purpose 12 is SIGN+VERIFY
111111
$CMD_BASE -e command generate -e alias "$ALIAS" -e algorithm "$ALGORITHM" \
112-
--ei purposes 12 --esa digests SHA-1,SHA-256,SHA-384,SHA-512 \
112+
--ei purposes 12 --esa digests NONE,SHA-1,SHA-256,SHA-384,SHA-512 \
113113
--ei size "$SIZE" -e curve "$CURVE" --ei validity "$VALIDITY"
114114
}
115115

0 commit comments

Comments
 (0)