Lines Matching defs:pbk
1352 public_key_obj_t *pbk;
1571 pbk = calloc(1, sizeof (public_key_obj_t));
1572 if (pbk == NULL) {
1577 new_object->object_class_u.public_key = pbk;
1636 KEY_PUB_RSA_MOD_BITS(pbk) = modulus_bits;
1646 KEY_PUB_RSA_MOD(pbk));
1649 KEY_PUB_RSA_PUBEXPO(pbk));
1669 KEY_PUB_RSA_MOD_BITS(pbk) = modulus_bits;
1690 copy_bigint_attr(&pubexpo, KEY_PUB_RSA_PUBEXPO(pbk));
1704 KEY_PUB_DSA_VALUE(pbk));
1722 copy_bigint_attr(&prime, KEY_PUB_DSA_PRIME(pbk));
1724 copy_bigint_attr(&subprime, KEY_PUB_DSA_SUBPRIME(pbk));
1726 copy_bigint_attr(&base, KEY_PUB_DSA_BASE(pbk));
1740 KEY_PUB_DH_VALUE(pbk));
1758 copy_bigint_attr(&prime, KEY_PUB_DH_PRIME(pbk));
1760 copy_bigint_attr(&base, KEY_PUB_DH_BASE(pbk));
1773 KEY_PUB_DH942_VALUE(pbk));
1791 copy_bigint_attr(&prime, KEY_PUB_DH942_PRIME(pbk));
1793 copy_bigint_attr(&base, KEY_PUB_DH942_BASE(pbk));
1795 copy_bigint_attr(&subprime, KEY_PUB_DH942_SUBPRIME(pbk));
1823 copy_bigint_attr(&point, KEY_PUB_EC_POINT(pbk));
5810 free_public_key_attr(public_key_obj_t *pbk, CK_KEY_TYPE key_type)
5812 if (pbk == NULL) {
5818 bigint_attr_cleanup(KEY_PUB_RSA_MOD(pbk));
5819 bigint_attr_cleanup(KEY_PUB_RSA_PUBEXPO(pbk));
5822 bigint_attr_cleanup(KEY_PUB_DSA_PRIME(pbk));
5823 bigint_attr_cleanup(KEY_PUB_DSA_SUBPRIME(pbk));
5824 bigint_attr_cleanup(KEY_PUB_DSA_BASE(pbk));
5825 bigint_attr_cleanup(KEY_PUB_DSA_VALUE(pbk));
5828 bigint_attr_cleanup(KEY_PUB_DH_PRIME(pbk));
5829 bigint_attr_cleanup(KEY_PUB_DH_BASE(pbk));
5830 bigint_attr_cleanup(KEY_PUB_DH_VALUE(pbk));
5833 bigint_attr_cleanup(KEY_PUB_EC_POINT(pbk));
5836 bigint_attr_cleanup(KEY_PUB_DH942_PRIME(pbk));
5837 bigint_attr_cleanup(KEY_PUB_DH942_SUBPRIME(pbk));
5838 bigint_attr_cleanup(KEY_PUB_DH942_BASE(pbk));
5839 bigint_attr_cleanup(KEY_PUB_DH942_VALUE(pbk));
5844 free(pbk);
5852 public_key_obj_t *pbk;
5855 pbk = calloc(1, sizeof (public_key_obj_t));
5856 if (pbk == NULL) {
5862 (void) memcpy(KEY_PUB_RSA(pbk),
5866 rv = copy_bigint(KEY_PUB_RSA_MOD(pbk),
5869 free_public_key_attr(pbk, key_type);
5873 rv = copy_bigint(KEY_PUB_RSA_PUBEXPO(pbk),
5876 free_public_key_attr(pbk, key_type);
5881 (void) memcpy(KEY_PUB_DSA(pbk),
5886 rv = copy_bigint(KEY_PUB_DSA_PRIME(pbk),
5889 free_public_key_attr(pbk, key_type);
5894 rv = copy_bigint(KEY_PUB_DSA_SUBPRIME(pbk),
5897 free_public_key_attr(pbk, key_type);
5902 rv = copy_bigint(KEY_PUB_DSA_BASE(pbk),
5905 free_public_key_attr(pbk, key_type);
5910 rv = copy_bigint(KEY_PUB_DSA_VALUE(pbk),
5913 free_public_key_attr(pbk, key_type);
5918 (void) memcpy(KEY_PUB_DH(pbk),
5923 rv = copy_bigint(KEY_PUB_DH_PRIME(pbk),
5926 free_public_key_attr(pbk, key_type);
5931 rv = copy_bigint(KEY_PUB_DH_BASE(pbk),
5934 free_public_key_attr(pbk, key_type);
5939 rv = copy_bigint(KEY_PUB_DH_VALUE(pbk),
5942 free_public_key_attr(pbk, key_type);
5947 (void) memcpy(KEY_PUB_EC(pbk),
5952 rv = copy_bigint(KEY_PUB_EC_POINT(pbk),
5955 free_public_key_attr(pbk, key_type);
5960 (void) memcpy(KEY_PUB_DH942(pbk),
5965 rv = copy_bigint(KEY_PUB_DH942_PRIME(pbk),
5968 free_public_key_attr(pbk, key_type);
5973 rv = copy_bigint(KEY_PUB_DH942_SUBPRIME(pbk),
5976 free_public_key_attr(pbk, key_type);
5981 rv = copy_bigint(KEY_PUB_DH942_BASE(pbk),
5984 free_public_key_attr(pbk, key_type);
5989 rv = copy_bigint(KEY_PUB_DH942_VALUE(pbk),
5992 free_public_key_attr(pbk, key_type);
5999 *new_pub_key_obj_p = pbk;
6004 free_private_key_attr(private_key_obj_t *pbk, CK_KEY_TYPE key_type)
6006 if (pbk == NULL) {
6012 bigint_attr_cleanup(KEY_PRI_RSA_MOD(pbk));
6013 bigint_attr_cleanup(KEY_PRI_RSA_PUBEXPO(pbk));
6014 bigint_attr_cleanup(KEY_PRI_RSA_PRIEXPO(pbk));
6015 bigint_attr_cleanup(KEY_PRI_RSA_PRIME1(pbk));
6016 bigint_attr_cleanup(KEY_PRI_RSA_PRIME2(pbk));
6017 bigint_attr_cleanup(KEY_PRI_RSA_EXPO1(pbk));
6018 bigint_attr_cleanup(KEY_PRI_RSA_EXPO2(pbk));
6019 bigint_attr_cleanup(KEY_PRI_RSA_COEF(pbk));
6022 bigint_attr_cleanup(KEY_PRI_DSA_PRIME(pbk));
6023 bigint_attr_cleanup(KEY_PRI_DSA_SUBPRIME(pbk));
6024 bigint_attr_cleanup(KEY_PRI_DSA_BASE(pbk));
6025 bigint_attr_cleanup(KEY_PRI_DSA_VALUE(pbk));
6028 bigint_attr_cleanup(KEY_PRI_DH_PRIME(pbk));
6029 bigint_attr_cleanup(KEY_PRI_DH_BASE(pbk));
6030 bigint_attr_cleanup(KEY_PRI_DH_VALUE(pbk));
6033 bigint_attr_cleanup(KEY_PRI_EC_VALUE(pbk));
6036 bigint_attr_cleanup(KEY_PRI_DH942_PRIME(pbk));
6037 bigint_attr_cleanup(KEY_PRI_DH942_SUBPRIME(pbk));
6038 bigint_attr_cleanup(KEY_PRI_DH942_BASE(pbk));
6039 bigint_attr_cleanup(KEY_PRI_DH942_VALUE(pbk));
6044 free(pbk);
6052 private_key_obj_t *pbk;
6054 pbk = calloc(1, sizeof (private_key_obj_t));
6055 if (pbk == NULL) {
6061 (void) memcpy(KEY_PRI_RSA(pbk),
6065 rv = copy_bigint(KEY_PRI_RSA_MOD(pbk),
6068 free_private_key_attr(pbk, key_type);
6072 rv = copy_bigint(KEY_PRI_RSA_PUBEXPO(pbk),
6075 free_private_key_attr(pbk, key_type);
6079 rv = copy_bigint(KEY_PRI_RSA_PRIEXPO(pbk),
6082 free_private_key_attr(pbk, key_type);
6086 rv = copy_bigint(KEY_PRI_RSA_PRIME1(pbk),
6089 free_private_key_attr(pbk, key_type);
6093 rv = copy_bigint(KEY_PRI_RSA_PRIME2(pbk),
6096 free_private_key_attr(pbk, key_type);
6100 rv = copy_bigint(KEY_PRI_RSA_EXPO1(pbk),
6103 free_private_key_attr(pbk, key_type);
6107 rv = copy_bigint(KEY_PRI_RSA_EXPO2(pbk),
6110 free_private_key_attr(pbk, key_type);
6114 rv = copy_bigint(KEY_PRI_RSA_COEF(pbk),
6117 free_private_key_attr(pbk, key_type);
6122 (void) memcpy(KEY_PRI_DSA(pbk),
6127 rv = copy_bigint(KEY_PRI_DSA_PRIME(pbk),
6130 free_private_key_attr(pbk, key_type);
6135 rv = copy_bigint(KEY_PRI_DSA_SUBPRIME(pbk),
6138 free_private_key_attr(pbk, key_type);
6143 rv = copy_bigint(KEY_PRI_DSA_BASE(pbk),
6146 free_private_key_attr(pbk, key_type);
6151 rv = copy_bigint(KEY_PRI_DSA_VALUE(pbk),
6154 free_private_key_attr(pbk, key_type);
6159 (void) memcpy(KEY_PRI_DH(pbk),
6164 rv = copy_bigint(KEY_PRI_DH_PRIME(pbk),
6167 free_private_key_attr(pbk, key_type);
6172 rv = copy_bigint(KEY_PRI_DH_BASE(pbk),
6175 free_private_key_attr(pbk, key_type);
6180 rv = copy_bigint(KEY_PRI_DH_VALUE(pbk),
6183 free_private_key_attr(pbk, key_type);
6188 (void) memcpy(KEY_PRI_EC(pbk),
6193 rv = copy_bigint(KEY_PRI_EC_VALUE(pbk),
6196 free_private_key_attr(pbk, key_type);
6201 (void) memcpy(KEY_PRI_DH942(pbk),
6206 rv = copy_bigint(KEY_PRI_DH942_PRIME(pbk),
6209 free_private_key_attr(pbk, key_type);
6214 rv = copy_bigint(KEY_PRI_DH942_SUBPRIME(pbk),
6217 free_private_key_attr(pbk, key_type);
6222 rv = copy_bigint(KEY_PRI_DH942_BASE(pbk),
6225 free_private_key_attr(pbk, key_type);
6230 rv = copy_bigint(KEY_PRI_DH942_VALUE(pbk),
6233 free_private_key_attr(pbk, key_type);
6240 *new_pri_key_obj_p = pbk;