sharplispers / ironclad

A cryptographic toolkit written in Common Lisp
BSD 3-Clause "New" or "Revised" License
166 stars 28 forks source link

Why aren't key classes exported? #28

Closed stylewarning closed 4 years ago

stylewarning commented 4 years ago

I want to specialize GFs on key types, like private/public keys. Why isn't, for example, IRONCLAD::RSA-PRIVATE-KEY exported? Should consumers of these keys be agnostic to the kind of key?

glv2 commented 4 years ago

The public/private key types could indeed be useful for users' generic functions. Done in commit b37613704605685a8c80579ebfb18a5363232407.

stylewarning commented 4 years ago

Thanks! This is useful so that, for instance, a generic function can't accidentally accept a public key for signage, or a private key for verification.