File tree 1 file changed +4
-11
lines changed
1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 211
211
212
212
(defclass document () ((pk :reader pk :initarg :pk )))
213
213
(defun make-document (hdk doc salt index)
214
- (make-instance ' document
215
- :pk (blind-public-key (bl hdk)
216
- (pk doc)
217
- (derive-blind-key (bl hdk) salt)
218
- (create-context hdk index))))
214
+ (make-instance ' document :pk (apply-all hdk index (pk doc) salt)))
219
215
220
216
(defclass app ()
221
217
((hdk :reader hdk :initarg :hdk )
242
238
(nth-value 2 (fold-hdk app hdk))))
243
239
(defun accept-key (app hdk kh index pk-expected)
244
240
(let* ((salt (decap (kem (hdk app)) kh (delegate-key-creation app hdk)))
245
- (pk-bl (get-key-info app hdk))
246
- (bk (derive-blind-key (bl (hdk app)) salt))
247
- (ctx (create-context (hdk app) index)))
248
- (let ((pk-blinded (blind-public-key (bl (hdk app)) pk-bl bk ctx)))
249
- (assert (crypto :ec-point-equal pk-expected pk-blinded)))
250
- (append hdk (list kh index))))
241
+ (pk (apply-all (hdk app) index (get-key-info app hdk) salt)))
242
+ (assert (crypto :ec-point-equal pk-expected pk)))
243
+ (append hdk (list kh index)))
251
244
252
245
(defconstant +hdk-root+ ' (0 ))
253
246
(defclass unit ()
You can’t perform that action at this time.
0 commit comments