On 06/12/2011 09:27 PM, Crypto User wrote: > On Jun 11, 5:57 am, Nelson B Bolyard <nel...@bolyard.me> wrote: >> On 2011-06-10 16:43 PDT, Crypto User wrote: >> >> >> >>> On May 25, 11:33 am, Crypto User <cryptou...@gmail.com> wrote: >>>> Hi , >>>> I am trying to use this method to move my symmetric key to the key >>>> for wrapping. >>>> when I use this method , I get >>>> undefined reference to `PK11_CopyToSlot' collect2: ld returned 1 exit >>>> status >>>> which is linker error. >>>> I am including the pk11priv.h file. >>>> I have the latest nss library after using >>>> su -c 'yum update nss' on my fedora linux. >>>> What Can I do to get rid of this error? >>>> Thanks >>>> -A >>> Is this function not exportedin the libnss3.so files. >>> I did nm -D libnss*.so |grep PK11_CopyToSlot , which returned >>> nothinfg. >>> Which version of .so files will contain this function? >> I see no function by that name in the NSS source files. >> >> http://mxr.mozilla.org/security/search?string=PK11_CopyToSlot&case=on >> >> shows nothing. On the other hand, there is a function named >> pk11_CopyToSlot (notice the difference in capitalization). As the >> capitalization suggests, it is a private function of pk11wrap, not >> exported. See >> >> http://mxr.mozilla.org/security/search?string=PK11_CopyToSlot >> >> -- >> /Nelson Bolyard > In that case is there any alternative to moving a key to different > slot. > THe doc at > http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn5.html > tells -To move a Symmetric key > PK11SymKey *destSymKey = pk11_CopyToSlot(destslot, wrapMech, > CKA_UNWRAP?, origSymKey); > Thanks PK11_MoveSymKey... signature found in pk11pub.h.
bob
-- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto