_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c11500
// Free deallocates the memory reserved for the HSM to write back the actual IV. // // This must be called after the entire operation is complete, i.e. after // Encrypt or EncryptFinal. It is safe to call Free multiple times.
c11501
// NewPSSParams creates a CK_RSA_PKCS_PSS_PARAMS structure and returns it as a byte array for use with the CKM_RSA_PKCS_PSS mechanism.
c11502
// NewOAEPParams creates a CK_RSA_PKCS_OAEP_PARAMS structure suitable for use with the CKM_RSA_PKCS_OAEP mechanism.
c11503
// NewECDH1DeriveParams creates a CK_ECDH1_DERIVE_PARAMS structure suitable for use with the CKM_ECDH1_DERIVE mechanism.
c11504
// Initialize initializes the Cryptoki library.
c11505
// Finalize indicates that an application is done with the Cryptoki library.
c11506
// GetInfo returns general information about Cryptoki.
c11507
// GetSlotList obtains a list of slots in the system.
c11508
// GetSlotInfo obtains information about a particular slot in the system.
c11509
// GetTokenInfo obtains information about a particular token // in the system.
c11510
// GetMechanismList obtains a list of mechanism types supported by a token.
c11511
// GetMechanismInfo obtains information about a particular // mechanism possibly supported by a token.
c11512
// InitToken initializes a token. The label must be 32 characters // long, it is blank padded if it is not. If it is longer it is capped // to 32 characters.
c11513
// InitPIN initializes the normal user's PIN.
c11514
// SetPIN modifies the PIN of the user who is logged in.
c11515
// CloseAllSessions closes all sessions with a token.
c11516
// GetSessionInfo obtains information about the session.
c11517
// GetOperationState obtains the state of the cryptographic operation in a session.
c11518
// SetOperationState restores the state of the cryptographic operation in a session.
c11519
// Login logs a user into a token.
c11520
// Logout logs a user out from a token.
c11521
// CreateObject creates a new object.
c11522
// GetObjectSize gets the size of an object in bytes.
c11523
// SetAttributeValue modifies the value of one or more object attributes
c11524
// FindObjects continues a search for token and session // objects that match a template, obtaining additional object // handles. Calling the function repeatedly may yield additional results until // an empty slice is returned. // // The returned boolean value is deprecated and should be ignored.
c11525
// Encrypt encrypts single-part data.
c11526
// DecryptFinal finishes a multiple-part decryption operation.
c11527
// DigestInit initializes a message-digesting operation.
c11528
// DigestUpdate continues a multiple-part message-digesting operation.
c11529
// DigestKey continues a multi-part message-digesting // operation, by digesting the value of a secret key as part of // the data already digested.
c11530
// DigestFinal finishes a multiple-part message-digesting operation.
c11531
// SignRecover signs data in a single operation, where the data can be recovered from the signature.
c11532
// VerifyUpdate continues a multiple-part verification // operation, where the signature is an appendix to the data, // and plaintext cannot be recovered from the signature.
c11533
// VerifyFinal finishes a multiple-part verification // operation, checking the signature.
c11534
// VerifyRecover verifies a signature in a single-part // operation, where the data is recovered from the signature.
c11535
// DecryptDigestUpdate continues a multiple-part decryption and digesting operation.
c11536
// SignEncryptUpdate continues a multiple-part signing and encryption operation.
c11537
// DeriveKey derives a key from a base key, creating a new key object.
c11538
// SeedRandom mixes additional seed material into the token's // random number generator.
c11539
// GenerateRandom generates random data.
c11540
// Info returns information about the Slot.
c11541
// TokenInfo returns information about the token in a Slot, if applicable.
c11542
// Mechanisms returns a list of Mechanisms available on the token in this // slot.
c11543
// Info returns information about this mechanism.
c11544
// Sign signs the input with a given mechanism.
c11545
// Verify verifies a signature over a message with a given mechanism.
c11546
// Encrypt encrypts a plaintext with a given mechanism.
c11547
// cBBool converts a bool to a CK_BBOOL.
c11548
// NewAttribute allocates a Attribute and returns a pointer to it. // Note that this is merely a convenience function, as values returned // from the HSM are not converted back to Go values, those are just raw // byte slices.
c11549
// cAttribute returns the start address and the length of an attribute list.
c11550
// NewMechanism returns a pointer to an initialized Mechanism.
c11551
// Label returns the label of an object.
c11552
// Set sets exactly one attribute on this object.
c11553
// Copy makes a copy of this object, with the attributes in template applied on // top of it, if possible.
c11554
// Destroy destroys this object.
c11555
// Slots returns all available Slots that have a token present.
c11556
// Write the supplied directory entry intto the given buffer in the format // expected in fuseops.ReadFileOp.Data, returning the number of bytes written. // Return zero if the entry would not fit.
c11557
// Convert an absolute cache expiration time to a relative time from now for // consumption by the fuse kernel module.
c11558
// Update attributes from non-nil parameters.
c11559
// Init performs the work necessary to cause the mount process to complete.
c11560
// Read the next message from the kernel. The message must later be destroyed // using destroyInMessage.
c11561
// Write the supplied message to the kernel.
c11562
// Skip errors that happen as a matter of course, since they spook users.
c11563
// Make sure that the header and payload are contiguous.
c11564
// Reset resets m so that it's ready to be used again. Afterward, the contents // are solely a zeroed fusekernel.OutHeader struct.
c11565
// Grow grows m's buffer by the given number of bytes, returning a pointer to // the start of the new segment, which is guaranteed to be zeroed. If there is // insufficient space, it returns nil.
c11566
// GrowNoZero is equivalent to Grow, except the new segment is not zeroed. Use // with caution!
c11567
// AppendString is like Append, but accepts string input.
c11568
// Bytes returns a reference to the current contents of the buffer, including // the leading header.
c11569
// Initialize with the data read by a single call to r.Read. The first call to // Consume will consume the bytes directly after the fusekernel.InHeader // struct.
c11570
// Return a reference to the header read in the most recent call to Init.
c11571
// Consume the next n bytes from the message, returning a nil pointer if there // are fewer than n bytes available.
c11572
// Equivalent to Consume, except returns a slice of bytes. The result will be // nil if Consume would fail.
c11573
// Decide on the name of the given op.
c11574
// Mount attempts to mount a file system on the given directory, using the // supplied Server to serve connection requests. It blocks until the file // system is successfully mounted.
c11575
// Create a map containing all of the key=value mount options to be given to // the mount helper.
c11576
// Create an options string suitable for passing to the mount helper.
c11577
// Get an element from the freelist, returning nil if empty.
c11578
// Contribute an element back to the freelist.
c11579
// LT returns whether a is less than b.
c11580
// GE returns whether a is greater than or equal to b.
c11581
// Mount the file system and initialize the other exported fields of the // struct. Panics on error.
c11582
// Implementation detail of getToolPath.
c11583
// Build the mount_sample tool if it has not yet been built for this process. // Return its contents.
c11584
// NewLineScanner creates a new line scanner from r
c11585
// Scan advances to next line.
c11586
// Scan scans the next token. Return true if there's a new one
c11587
// hasDatarace checks if there's a data race warning in the line
c11588
// numStatus returns the number of tests in status
c11589
// HasFailures return true is there's at least one failing suite
c11590
// Push adds a node to the stack.
c11591
// Pop removes and returns a node from the stack in last to first order.
c11592
// NewGtParser return a new gotest parser
c11593
// validateArgs validates command line arguments
c11594
// getInput return input io.File from file name, if file name is - it will // return os.Stdin
c11595
// getInput return output io.File from file name, if file name is - it will // return os.Stdout
c11596
// getIO returns input and output streams from file names
c11597
// calcTotals calculates grand total for all suites
c11598
// WriteXML exits xunit XML of tests to out
c11599
// Report sends telemetry information to checkpoint