head	1.1;
branch	1.1.1;
access;
symbols
	netbsd-11-0-RC4:1.1.1.1
	netbsd-11-0-RC3:1.1.1.1
	netbsd-11-0-RC2:1.1.1.1
	netbsd-11-0-RC1:1.1.1.1
	perseant-exfatfs-base-20250801:1.1.1.1
	netbsd-11:1.1.1.1.0.18
	netbsd-11-base:1.1.1.1
	netbsd-10-1-RELEASE:1.1.1.1
	perseant-exfatfs-base-20240630:1.1.1.1
	perseant-exfatfs:1.1.1.1.0.16
	perseant-exfatfs-base:1.1.1.1
	netbsd-9-4-RELEASE:1.1.1.1
	netbsd-10-0-RELEASE:1.1.1.1
	netbsd-10-0-RC6:1.1.1.1
	netbsd-10-0-RC5:1.1.1.1
	netbsd-10-0-RC4:1.1.1.1
	netbsd-10-0-RC3:1.1.1.1
	netbsd-10-0-RC2:1.1.1.1
	netbsd-10-0-RC1:1.1.1.1
	netbsd-10:1.1.1.1.0.14
	netbsd-10-base:1.1.1.1
	netbsd-9-3-RELEASE:1.1.1.1
	cjep_sun2x-base1:1.1.1.1
	cjep_sun2x:1.1.1.1.0.12
	cjep_sun2x-base:1.1.1.1
	cjep_staticlib_x-base1:1.1.1.1
	netbsd-9-2-RELEASE:1.1.1.1
	cjep_staticlib_x:1.1.1.1.0.10
	cjep_staticlib_x-base:1.1.1.1
	netbsd-9-1-RELEASE:1.1.1.1
	phil-wifi-20200421:1.1.1.1
	phil-wifi-20200411:1.1.1.1
	is-mlppp:1.1.1.1.0.8
	is-mlppp-base:1.1.1.1
	phil-wifi-20200406:1.1.1.1
	netbsd-9-0-RELEASE:1.1.1.1
	netbsd-9-0-RC2:1.1.1.1
	netbsd-9-0-RC1:1.1.1.1
	phil-wifi-20191119:1.1.1.1
	netbsd-9:1.1.1.1.0.6
	netbsd-9-base:1.1.1.1
	phil-wifi:1.1.1.1.0.4
	phil-wifi-20190609:1.1.1.1
	pgoyette-compat-merge-20190127:1.1.1.1.2.2
	pgoyette-compat-20190127:1.1.1.1
	pgoyette-compat:1.1.1.1.0.2
	pgoyette-compat-20190118:1.1.1.1
	TPM_TOOLS1_3_9_1:1.1.1.1
	TROUSERS:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2019.01.07.15.37.42;	author christos;	state Exp;
branches
	1.1.1.1;
next	;
commitid	4MkYRYj7o0ZZHR6B;

1.1.1.1
date	2019.01.07.15.37.42;	author christos;	state Exp;
branches
	1.1.1.1.2.1
	1.1.1.1.4.1;
next	;
commitid	4MkYRYj7o0ZZHR6B;

1.1.1.1.2.1
date	2019.01.07.15.37.42;	author pgoyette;	state dead;
branches;
next	1.1.1.1.2.2;
commitid	Lmlzg3OVT2cd6f8B;

1.1.1.1.2.2
date	2019.01.18.08.48.26;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.1.1.1.4.1
date	2019.01.07.15.37.42;	author christos;	state dead;
branches;
next	1.1.1.1.4.2;
commitid	jtc8rnCzWiEEHGqB;

1.1.1.1.4.2
date	2019.06.10.21.42.08;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;


desc
@@


1.1
log
@Initial revision
@
text
@=head1 NAME

tpm_nvwrite

=head1 SYNOPSIS

B<tpm_nvwrite [OPTIONS]>

=head1 DESCRIPTION

B<tpm_nvwrite> writes data to an NVRAM area.
The user must provide the index of the NVRAM area as well as the data to
write into the NVRAM area. Optionally an offset into the NVRAM
area can be given where the writing of the data is to start. Similarly
the use may provide the number of bytes to write into the
NVRAM area. Some NVRAM areas only allow write sizes of zero, i.e., NVRAM
area index 0.
If the NVRAM area has permission bits set that require owner or NVRAM area
authentication, then the password must be provided via the password option.

The following options are supported:

=over 4

=item B<-h, --help>

Display command usage info.

=item B<-v, --version>

Display command version info.

=item B<-l, --log [none|error|info|debug]>

Set logging level.

=item B<-u, --unicode>

Use TSS UNICODE encoding for passwords to comply with applications
using TSS popup boxes

=item B<-z, --well-known>

Use a secret of all zeros (20 bytes of zeros) as either the NVRAM area or owner secret.

=item B<-p, --password>

Depending on what type of authentication is required for the NVRAM area, this must either
be the NVRAM area or owner password.

A password may be directly provided for example by using '--password=password' or
-ppassword. If no password is provided then the program will prompt the user for the
password.

=item B<-i, --index> (optional parameter)

The index of the NVRAM area.
The parameter may either be a decimal number or a hexadecimal number starting with '0x'.

=item B<-s, --size>

The number of bytes to write to the NVRAM area. This parameter may be used to truncating
the data that are for example read from a file.
The parameter may either be a decimal number or a hexadecimal number starting with '0x'.

=item B<-n, --offset> (optional parameter)

The offset into the NVRAM area where to start writing.
The parameter may either be a decimal number or a hexadecimal number starting with '0x'.

=item B<-f, --filename> (optional parameter)

The name of a file from which to read data and copy them into the NVRAM area.

=item B<-d, --data> (optional parameter)

The data to write into the NVRAM area passed in the command line.

=item B<-m, --fill-value> (optional parameter)

The byte to fill the NVRAM area with.

=back

=head1 SEE ALSO

B<tpm_nvdefine>(8), B<tpm_nvinfo>(8), B<tpm_nvread>(8), B<tpm_nvrelease>(8)

=head1 REPORTING BUGS

Report bugs to <trousers-users@@lists.sourceforge.net>
@


1.1.1.1
log
@tpm-tools (1.3.9.1)

    - Builds with openssl 1.1.0
    - Align code properly so gcc-6 does not complain
    - update symbol file.
    - drop 02-cflags-errors-unused.patch, -Werror is gone.
    - update 03-fix-bool-error-parseStringWithValues.patch, different fix
      upstream, does not look right.

tpm-tools (1.3.8.2)

  * Add patch 03 to fix FTBFS with gcc-5
  * Merge patch 04 to fix FTBFS with clang
    Thanks to Alexander <email address hidden> for the patch.
  * Bump Standards Version to 3.9.6
@
text
@@


1.1.1.1.4.1
log
@file tpm_nvwrite.pod was added on branch phil-wifi on 2019-06-10 21:42:08 +0000
@
text
@d1 91
@


1.1.1.1.4.2
log
@Sync with HEAD
@
text
@a0 91
=head1 NAME

tpm_nvwrite

=head1 SYNOPSIS

B<tpm_nvwrite [OPTIONS]>

=head1 DESCRIPTION

B<tpm_nvwrite> writes data to an NVRAM area.
The user must provide the index of the NVRAM area as well as the data to
write into the NVRAM area. Optionally an offset into the NVRAM
area can be given where the writing of the data is to start. Similarly
the use may provide the number of bytes to write into the
NVRAM area. Some NVRAM areas only allow write sizes of zero, i.e., NVRAM
area index 0.
If the NVRAM area has permission bits set that require owner or NVRAM area
authentication, then the password must be provided via the password option.

The following options are supported:

=over 4

=item B<-h, --help>

Display command usage info.

=item B<-v, --version>

Display command version info.

=item B<-l, --log [none|error|info|debug]>

Set logging level.

=item B<-u, --unicode>

Use TSS UNICODE encoding for passwords to comply with applications
using TSS popup boxes

=item B<-z, --well-known>

Use a secret of all zeros (20 bytes of zeros) as either the NVRAM area or owner secret.

=item B<-p, --password>

Depending on what type of authentication is required for the NVRAM area, this must either
be the NVRAM area or owner password.

A password may be directly provided for example by using '--password=password' or
-ppassword. If no password is provided then the program will prompt the user for the
password.

=item B<-i, --index> (optional parameter)

The index of the NVRAM area.
The parameter may either be a decimal number or a hexadecimal number starting with '0x'.

=item B<-s, --size>

The number of bytes to write to the NVRAM area. This parameter may be used to truncating
the data that are for example read from a file.
The parameter may either be a decimal number or a hexadecimal number starting with '0x'.

=item B<-n, --offset> (optional parameter)

The offset into the NVRAM area where to start writing.
The parameter may either be a decimal number or a hexadecimal number starting with '0x'.

=item B<-f, --filename> (optional parameter)

The name of a file from which to read data and copy them into the NVRAM area.

=item B<-d, --data> (optional parameter)

The data to write into the NVRAM area passed in the command line.

=item B<-m, --fill-value> (optional parameter)

The byte to fill the NVRAM area with.

=back

=head1 SEE ALSO

B<tpm_nvdefine>(8), B<tpm_nvinfo>(8), B<tpm_nvread>(8), B<tpm_nvrelease>(8)

=head1 REPORTING BUGS

Report bugs to <trousers-users@@lists.sourceforge.net>
@


1.1.1.1.2.1
log
@file tpm_nvwrite.pod was added on branch pgoyette-compat on 2019-01-18 08:48:26 +0000
@
text
@d1 91
@


1.1.1.1.2.2
log
@Synch with HEAD
@
text
@a0 91
=head1 NAME

tpm_nvwrite

=head1 SYNOPSIS

B<tpm_nvwrite [OPTIONS]>

=head1 DESCRIPTION

B<tpm_nvwrite> writes data to an NVRAM area.
The user must provide the index of the NVRAM area as well as the data to
write into the NVRAM area. Optionally an offset into the NVRAM
area can be given where the writing of the data is to start. Similarly
the use may provide the number of bytes to write into the
NVRAM area. Some NVRAM areas only allow write sizes of zero, i.e., NVRAM
area index 0.
If the NVRAM area has permission bits set that require owner or NVRAM area
authentication, then the password must be provided via the password option.

The following options are supported:

=over 4

=item B<-h, --help>

Display command usage info.

=item B<-v, --version>

Display command version info.

=item B<-l, --log [none|error|info|debug]>

Set logging level.

=item B<-u, --unicode>

Use TSS UNICODE encoding for passwords to comply with applications
using TSS popup boxes

=item B<-z, --well-known>

Use a secret of all zeros (20 bytes of zeros) as either the NVRAM area or owner secret.

=item B<-p, --password>

Depending on what type of authentication is required for the NVRAM area, this must either
be the NVRAM area or owner password.

A password may be directly provided for example by using '--password=password' or
-ppassword. If no password is provided then the program will prompt the user for the
password.

=item B<-i, --index> (optional parameter)

The index of the NVRAM area.
The parameter may either be a decimal number or a hexadecimal number starting with '0x'.

=item B<-s, --size>

The number of bytes to write to the NVRAM area. This parameter may be used to truncating
the data that are for example read from a file.
The parameter may either be a decimal number or a hexadecimal number starting with '0x'.

=item B<-n, --offset> (optional parameter)

The offset into the NVRAM area where to start writing.
The parameter may either be a decimal number or a hexadecimal number starting with '0x'.

=item B<-f, --filename> (optional parameter)

The name of a file from which to read data and copy them into the NVRAM area.

=item B<-d, --data> (optional parameter)

The data to write into the NVRAM area passed in the command line.

=item B<-m, --fill-value> (optional parameter)

The byte to fill the NVRAM area with.

=back

=head1 SEE ALSO

B<tpm_nvdefine>(8), B<tpm_nvinfo>(8), B<tpm_nvread>(8), B<tpm_nvrelease>(8)

=head1 REPORTING BUGS

Report bugs to <trousers-users@@lists.sourceforge.net>
@


