Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
pkcs11y.h
Go to the documentation of this file.
1/*
2 * Copyright 2015-2018 Yubico AB
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef PKCS11Y_H
18#define PKCS11Y_H
19
20#include "pkcs11.h"
21#include "yubihsm.h"
22
23/* This is an offset for the vendor definitions to avoid clashes */
24#define YUBICO_BASE_VENDOR 0x59554200
25
26#define CKK_YUBICO_AES128_CCM_WRAP \
27 (CKK_VENDOR_DEFINED | YUBICO_BASE_VENDOR | YH_ALGO_AES128_CCM_WRAP)
28#define CKK_YUBICO_AES192_CCM_WRAP \
29 (CKK_VENDOR_DEFINED | YUBICO_BASE_VENDOR | YH_ALGO_AES192_CCM_WRAP)
30#define CKK_YUBICO_AES256_CCM_WRAP \
31 (CKK_VENDOR_DEFINED | YUBICO_BASE_VENDOR | YH_ALGO_AES256_CCM_WRAP)
32
33#define CKM_YUBICO_AES_CCM_WRAP \
34 (CKM_VENDOR_DEFINED | YUBICO_BASE_VENDOR | YH_WRAP_KEY)
35
36#endif