fix
This commit is contained in:
parent
6d81a1cc09
commit
fdcc750eee
@ -56,7 +56,7 @@ public enum KeyUsage {
|
||||
|
||||
|
||||
public static boolean hasUsage(int nowUsage, KeyUsage usage) {
|
||||
return (nowUsage & usage.value) > 0;
|
||||
return (nowUsage & usage.value) >= usage.value;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>chsm-model</artifactId>
|
||||
<artifactId>chsm-params</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
Loading…
Reference in New Issue
Block a user