func Nid2ShortName(nid NID) (string, error) { sn := C.OBJ_nid2sn(C.int(nid)) if sn == nil { return "", fmt.Errorf("NID %d not found", nid) } return C.GoString(sn), nil }
func (self *CipherCtx) name() string { name_p := C.OBJ_nid2sn(C.int(self.nid())) return C.GoString(name_p) }
func getCurveName(curve *C.EC_GROUP) string { return C.GoString(C.OBJ_nid2sn(C.EC_GROUP_get_curve_name(curve))) }
func (self *Digest) Name() string { return C.GoString(C.OBJ_nid2sn(C.int(self.Type()))) }
func CipherByNid(nid int) *Cipher { return newCipher(C.EVP_get_cipherbyname(C.OBJ_nid2sn(C.int(nid)))) }