# Onbekend COSE-algoritme aangetroffen. alg: -257

**URL:** <https://meta.discourse.org/t/unknown-cose-algorithm-encountered-alg-257/180104>\
**Category:** Product Support\
**Created:** [17 februari 2021 om 21:05 UTC](https://meta.discourse.org/t/unknown-cose-algorithm-encountered-alg-257/180104 "2021-02-17T21:05:58Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![SystemZ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/systemz/32/88354_2.png) [@SystemZ](https://meta.discourse.org/u/SystemZ)\
**Post date:** [17 februari 2021 om 21:05 UTC](https://meta.discourse.org/t/unknown-cose-algorithm-encountered-alg-257/180104/1 "2021-02-17T21:05:58Z")

</div>

Hi,

One of my users can’t login with 2FA using hardware key.

After pressing button on key during login, Windows 10 is asking for a PIN.  
After entering PIN he is receiving error “The algorithm used for the security key is not recognized.”. I checked, it’s i18n key `webauthn.validation.unknown_cose_algorithm_error`.

Server logs this as an error:

```plaintext
Unknown COSE algorithm encountered. alg: -257. user_id: <redacted>. params: <ActionController::Parameters {"signature"=>"<redacted>", "clientData"=>"<redacted>", "authenticatorData"=>"<redacted>", "credentialId"=>"<redacted>"} permitted: false>

```

Quick google search only found this:  
[https://review.discourse.org/t/fix-catch-error-when-unknown-cose-algorithm-is-supplied-for-security-key-8649/8074](https://review.discourse.org/t/fix-catch-error-when-unknown-cose-algorithm-is-supplied-for-security-key-8649/8074)

So probably it need to be implemented but strangely somehow user managed to set it on account?  
Not sure if I can fix it from forum’s admin side without code change.

I’m using recommended, standalone Docker install with version `2.7.0.beta3`. I rebuilt forum and updated it less than 1h before creating this thread.

---

_[View the full topic](https://meta.discourse.org/t/unknown-cose-algorithm-encountered-alg-257/180104)._
